From 10ede292778d427501ef9d99a6a912582027c6d4 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Tue, 12 Feb 2019 16:29:42 +0100 Subject: [PATCH] MainThreadWorkspace: Initialize workspace immediatly --- src/vs/workbench/api/electron-browser/mainThreadWorkspace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/api/electron-browser/mainThreadWorkspace.ts b/src/vs/workbench/api/electron-browser/mainThreadWorkspace.ts index 81924fb4f52..1ac6c84000b 100644 --- a/src/vs/workbench/api/electron-browser/mainThreadWorkspace.ts +++ b/src/vs/workbench/api/electron-browser/mainThreadWorkspace.ts @@ -44,7 +44,7 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape { @ILabelService private readonly _labelService: ILabelService ) { this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostWorkspace); - this._contextService.getCompleteWorkspace().then(workspace => this._proxy.$initializeWorkspace(this.getWorkspaceData(workspace))); + this._proxy.$initializeWorkspace(this.getWorkspaceData(this._contextService.getWorkspace())); this._contextService.onDidChangeWorkspaceFolders(this._onDidChangeWorkspace, this, this._toDispose); this._contextService.onDidChangeWorkbenchState(this._onDidChangeWorkspace, this, this._toDispose); } -- GitLab