diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index 8cbeff02145..467f24620cf 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -18,11 +18,11 @@ declare module 'vscode' { //#region Joh - vscode.open - export namespace window { + export namespace env { /** * */ - export function open(uri: Uri): void; + export function openItem(uri: Uri): void; } //#endregion diff --git a/src/vs/workbench/api/node/extHost.api.impl.ts b/src/vs/workbench/api/node/extHost.api.impl.ts index 6cb7c089487..86fc24670b2 100644 --- a/src/vs/workbench/api/node/extHost.api.impl.ts +++ b/src/vs/workbench/api/node/extHost.api.impl.ts @@ -255,7 +255,10 @@ export function createApiFactory( }, get clipboard(): vscode.Clipboard { return extHostClipboard; - } + }, + openItem: proposedApiFunction(extension, (uri: URI) => { + return extHostWindow.openUri(uri); + }) }); // namespace: extensions @@ -496,10 +499,7 @@ export function createApiFactory( }, createInputBox(): vscode.InputBox { return extHostQuickOpen.createInputBox(extension.identifier); - }, - open: proposedApiFunction(extension, (uri: URI) => { - return extHostWindow.openUri(uri); - }) + } }; // namespace: workspace