Remote test specific code
This commit is contained in:
parent
3f363797cf
commit
d11f550308
1 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue