diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index fd07204c108..6bfa75c148c 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -5921,6 +5921,18 @@ declare module 'vscode' { * Changes each time the editor is started. */ export const sessionId: string; + + /** + * Opens an *external* item, e.g. a http(s) or mailto-link, using the + * default application. + * + * *Note* that [`showTextDocument`](#window.showTextDocument) is the right + * way to open a text document inside the editor, not this function. + * + * @param target The uri that should be opened. + * @returns A promise indicating if open was successful. + */ + export function open(target: Uri): Thenable; } /** diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index 9b492047f9f..e2c6fb84fdc 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -16,25 +16,6 @@ declare module 'vscode' { - //#region Joh - vscode.open - - export namespace env { - - /** - * Opens an *external* item, e.g. a http(s) or mailto-link, using the - * default application. - * - * *Note* that [`showTextDocument`](#window.showTextDocument) is the right - * way to open a text document inside the editor, not this function. - * - * @param target The uri that should be opened. - * @returns A promise indicating if open was successful. - */ - export function open(target: Uri): Thenable; - } - - //#endregion - //#region Joh - selection range provider export class SelectionRangeKind { diff --git a/src/vs/workbench/api/node/extHost.api.impl.ts b/src/vs/workbench/api/node/extHost.api.impl.ts index 6f9e14ee77f..249c88fa891 100644 --- a/src/vs/workbench/api/node/extHost.api.impl.ts +++ b/src/vs/workbench/api/node/extHost.api.impl.ts @@ -256,9 +256,9 @@ export function createApiFactory( get clipboard(): vscode.Clipboard { return extHostClipboard; }, - open: proposedApiFunction(extension, (uri: URI) => { + open(uri: URI) { return extHostWindow.openUri(uri); - }) + } }); // namespace: extensions