Remote test specific code

This commit is contained in:
Ladislau Szomoru
2021-06-16 10:03:49 +02:00
parent 3f363797cf
commit d11f550308
@@ -255,9 +255,9 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
return true;
}
// Running tests with vscode-test
if (this.environmentService.extensionTestsLocationURI) {
return true;
// Canonical Uris not yet resolved
if (!this._canonicalUrisResolved) {
return false;
}
// Remote - resolver explicitly sets workspace trust to TRUE
@@ -265,11 +265,6 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
return this._remoteAuthority.options.isTrusted;
}
// Canonical Uris not yet resolved
if (!this._canonicalUrisResolved) {
return false;
}
// Empty workspace - use memento, open ediors, or user setting
if (this.workspaceService.getWorkbenchState() === WorkbenchState.EMPTY) {
// Use memento if present