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

Loading…
Cancel
Save