From d11f550308024d2dc12863ed23d645bf1e5784f8 Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Wed, 16 Jun 2021 10:03:49 +0200 Subject: [PATCH] Remote test specific code --- .../services/workspaces/common/workspaceTrust.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/vs/workbench/services/workspaces/common/workspaceTrust.ts b/src/vs/workbench/services/workspaces/common/workspaceTrust.ts index bd16504e3d5..665d66f465b 100644 --- a/src/vs/workbench/services/workspaces/common/workspaceTrust.ts +++ b/src/vs/workbench/services/workspaces/common/workspaceTrust.ts @@ -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