fix dead lock - wait for workspace initialization while starting exthost

This commit is contained in:
Sandeep Somavarapu
2019-02-21 12:00:39 +01:00
parent 564b7120ab
commit 4c7870316d
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape {
@ILabelService private readonly _labelService: ILabelService
) {
this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostWorkspace);
this._proxy.$initializeWorkspace(this.getWorkspaceData(this._contextService.getWorkspace()));
this._contextService.getCompleteWorkspace().then(workspace => this._proxy.$initializeWorkspace(this.getWorkspaceData(workspace)));
this._contextService.onDidChangeWorkspaceFolders(this._onDidChangeWorkspace, this, this._toDispose);
this._contextService.onDidChangeWorkbenchState(this._onDidChangeWorkspace, this, this._toDispose);
}