Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extension API for extending functionality of code-d in Visual Studio Code

License

NotificationsYou must be signed in to change notification settings

Pure-D/code-d-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extendcode-d in vscode with custom features.

This API provides:

  • support for registering custom snippets depending on installed DUB dependencies

Usage

Add code-d as dependency to your vscode extension inside the package.json:

"extensionDependencies":["webfreak.code-d"]

To use, simply get the extension using this code:

import*ascodedfrom"code-d-api";exportfunctionactivate(context:vscode.ExtensionContext){letapi:coded.CodedAPI|undefined;constcodedExtension=vscode.extensions.getExtension<coded.CodedAPI>(coded.codedExtensionId);if(codedExtension){api=codedExtension.exports;// do your API stuff}}

If you only want to optionally depend on code-d, make sure you use the.activate() call instead of.exports and await it or use it with a.then(() => {}) clause.

About

Extension API for extending functionality of code-d in Visual Studio Code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp