MainThreadWorkspace: Initialize workspace immediatly

This commit is contained in:
Martin Aeschlimann
2019-02-12 16:29:42 +01:00
parent 2772cde8ca
commit 10ede29277

View File

@@ -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);
}