mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 13:43:07 +00:00
some extension namespace doc.
This commit is contained in:
parent
10ce73b0c9
commit
debef0a8f3
1 changed files with 21 additions and 8 deletions
27
src/vs/vscode.d.ts
vendored
27
src/vs/vscode.d.ts
vendored
|
@ -2638,10 +2638,22 @@ declare namespace vscode {
|
||||||
export function setLanguageConfiguration(language: string, configuration: LanguageConfiguration): Disposable;
|
export function setLanguageConfiguration(language: string, configuration: LanguageConfiguration): Disposable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Namespace to retrieve installed extensions.
|
||||||
|
*/
|
||||||
export namespace extensions {
|
export namespace extensions {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get an extension by id.
|
||||||
|
*
|
||||||
|
* @param extensionId An extension identifier in the form of: `publisher.name`.
|
||||||
|
* @return An extension or `undefined`.
|
||||||
|
*/
|
||||||
export function getExtension(extensionId: string): Extension<any>;
|
export function getExtension(extensionId: string): Extension<any>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see [[extensions.getExtension]]
|
||||||
|
*/
|
||||||
export function getExtension<T>(extensionId: string): Extension<T>;
|
export function getExtension<T>(extensionId: string): Extension<T>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2651,6 +2663,14 @@ declare namespace vscode {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TS 1.6 & node_module
|
||||||
|
export = vscode;
|
||||||
|
|
||||||
|
// when used for JS*
|
||||||
|
// declare module 'vscode' {
|
||||||
|
// export = vscode;
|
||||||
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thenable is a common denominator between ES6 promises, Q, jquery.Deferred, WinJS.Promise,
|
* Thenable is a common denominator between ES6 promises, Q, jquery.Deferred, WinJS.Promise,
|
||||||
* and others. This API makes no assumption about what promise libary is being used which
|
* and others. This API makes no assumption about what promise libary is being used which
|
||||||
|
@ -2754,10 +2774,3 @@ interface PromiseConstructor {
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var Promise: PromiseConstructor;
|
declare var Promise: PromiseConstructor;
|
||||||
|
|
||||||
// TS 1.6 & node_module
|
|
||||||
// export = vscode;
|
|
||||||
|
|
||||||
declare module 'vscode' {
|
|
||||||
export = vscode;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue