diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index 2caec4bffef..b1f5e5c86ad 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -1601,7 +1601,7 @@ declare namespace vscode { } /** - * + * */ export interface DocumentFormattingEditProvider { provideDocumentFormattingEdits(document: TextDocument, options: FormattingOptions, token: CancellationToken): TextEdit[] | Thenable; @@ -2638,10 +2638,22 @@ declare namespace vscode { export function setLanguageConfiguration(language: string, configuration: LanguageConfiguration): Disposable; } + /** + * Namespace to retrieve installed 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; + /** + * @see [[extensions.getExtension]] + */ export function getExtension(extensionId: string): Extension; /** @@ -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, * 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; - -// TS 1.6 & node_module -// export = vscode; - -declare module 'vscode' { - export = vscode; -}