mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Remote test specific code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user