feat: finish extensions (#20)

* finish extensions

* pick luozhus advice

* chore: 使用中文逗号

Co-authored-by: youngjuning <youngjuning@aliyun.com>
pull/26/head
潘小安 3 years ago committed by GitHub
parent 549583781e
commit f404b40894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
vscode.d.ts vendored

@ -13254,11 +13254,9 @@ export namespace debug {
}
/**
* Namespace for dealing with installed extensions. Extensions are represented
* by an {@link Extension}-interface which enables reflection on them.
* {@link Extension}
*
* Extension writers can provide APIs to other extensions by returning their API public
* surface from the `activate`-call.
* activate API API
*
* ```javascript
* export function activate(context: vscode.ExtensionContext) {
@ -13274,9 +13272,9 @@ export namespace debug {
* return api;
* }
* ```
* When depending on the API of another extension add an `extensionDependencies`-entry
* to `package.json`, and use the {@link extensions.getExtension getExtension}-function
* and the {@link Extension.exports exports}-property, like below:
* `API` `依赖的扩展`
* `package.json`使 {@link extensions.getExtension getExtension}
* {@link Extension.exports exports}
*
* ```javascript
* let mathExt = extensions.getExtension('genius.math');

Loading…
Cancel
Save