This commit is contained in:
parent
e1161be268
commit
3ee7bdd575
1 changed files with 13 additions and 10 deletions
|
@ -129,15 +129,17 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
|
||||||
|
|
||||||
private initializeWorkspaceTrust(): void {
|
private initializeWorkspaceTrust(): void {
|
||||||
// Resolve canonical Uris
|
// Resolve canonical Uris
|
||||||
this.resolveCanonicalUris().then(async () => {
|
this.resolveCanonicalUris()
|
||||||
this._canonicalUrisResolved = true;
|
.then(async () => {
|
||||||
await this.updateWorkspaceTrust();
|
this._canonicalUrisResolved = true;
|
||||||
|
await this.updateWorkspaceTrust();
|
||||||
this._workspaceResolvedPromiseResolve();
|
})
|
||||||
if (!this.environmentService.remoteAuthority) {
|
.finally(() => {
|
||||||
this._workspaceTrustInitializedPromiseResolve();
|
this._workspaceResolvedPromiseResolve();
|
||||||
}
|
if (!this.environmentService.remoteAuthority) {
|
||||||
});
|
this._workspaceTrustInitializedPromiseResolve();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Remote - resolve remote authority
|
// Remote - resolve remote authority
|
||||||
if (this.environmentService.remoteAuthority) {
|
if (this.environmentService.remoteAuthority) {
|
||||||
|
@ -145,7 +147,8 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
|
||||||
.then(async result => {
|
.then(async result => {
|
||||||
this._remoteAuthority = result;
|
this._remoteAuthority = result;
|
||||||
await this.updateWorkspaceTrust();
|
await this.updateWorkspaceTrust();
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
this._workspaceTrustInitializedPromiseResolve();
|
this._workspaceTrustInitializedPromiseResolve();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue