Revert the change to calculateWorkspaceTrust()

This commit is contained in:
Ladislau Szomoru 2021-06-06 21:34:01 +02:00
parent e2d0e05038
commit 0cee694bd9
No known key found for this signature in database
GPG key ID: 2B88287CB9DB080B

View file

@ -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