Revert the change to calculateWorkspaceTrust()
This commit is contained in:
parent
e2d0e05038
commit
0cee694bd9
1 changed files with 4 additions and 0 deletions
|
@ -233,6 +233,10 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
|
|||
return this._remoteAuthority.options.isTrusted;
|
||||
}
|
||||
|
||||
if (this.environmentService.extensionTestsLocationURI) {
|
||||
return true; // trust running tests with vscode-test
|
||||
}
|
||||
|
||||
if (this.workspaceService.getWorkbenchState() === WorkbenchState.EMPTY) {
|
||||
// Use memento if present, otherwise default to restricted mode
|
||||
// Workspace may transition to trusted based on the opened editors
|
||||
|
|
Loading…
Reference in a new issue