This commit is contained in:
Ladislau Szomoru 2021-06-14 10:21:19 +02:00
parent e1161be268
commit 3ee7bdd575
No known key found for this signature in database
GPG key ID: 2B88287CB9DB080B

View file

@ -129,15 +129,17 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
private initializeWorkspaceTrust(): void {
// Resolve canonical Uris
this.resolveCanonicalUris().then(async () => {
this._canonicalUrisResolved = true;
await this.updateWorkspaceTrust();
this._workspaceResolvedPromiseResolve();
if (!this.environmentService.remoteAuthority) {
this._workspaceTrustInitializedPromiseResolve();
}
});
this.resolveCanonicalUris()
.then(async () => {
this._canonicalUrisResolved = true;
await this.updateWorkspaceTrust();
})
.finally(() => {
this._workspaceResolvedPromiseResolve();
if (!this.environmentService.remoteAuthority) {
this._workspaceTrustInitializedPromiseResolve();
}
});
// Remote - resolve remote authority
if (this.environmentService.remoteAuthority) {
@ -145,7 +147,8 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
.then(async result => {
this._remoteAuthority = result;
await this.updateWorkspaceTrust();
})
.finally(() => {
this._workspaceTrustInitializedPromiseResolve();
});
}