IWindowService.openWindow takes IURIToOpen

This commit is contained in:
Martin Aeschlimann
2019-02-06 16:56:53 +01:00
parent bbb102ec25
commit 8c6e97456e
23 changed files with 140 additions and 122 deletions

View File

@@ -210,7 +210,7 @@ CommandsRegistry.registerCommand('_workbench.enterWorkspace', async function (ac
const runningExtensions = await extensionService.getExtensions();
// If requested extension to disable is running, then reload window with given workspace
if (disableExtensions && runningExtensions.some(runningExtension => disableExtensions.some(id => ExtensionIdentifier.equals(runningExtension.identifier, id)))) {
return windowService.openWindow([URI.file(workspace.fsPath)], { args: { _: [], 'disable-extension': disableExtensions } });
return windowService.openWindow([{ uri: workspace, typeHint: 'file' }], { args: { _: [], 'disable-extension': disableExtensions } });
}
}