Skip to content

Commit 5adddee

Browse files
committed
allow distrust button for vfs
1 parent 119a978 commit 5adddee

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/vs/workbench/services/workspaces/common/workspaceTrust.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,15 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
507507
return true;
508508
}
509509

510-
// Trusted workspace
511-
// Can only be trusted explicitly in the single folder scenario
510+
// Trusted workspaces
511+
// Can only untrusted in the single folder scenario
512512
const workspaceIdentifier = toWorkspaceIdentifier(this._canonicalWorkspace);
513-
if (!(isSingleFolderWorkspaceIdentifier(workspaceIdentifier) && workspaceIdentifier.uri.scheme === Schemas.file)) {
513+
if (!isSingleFolderWorkspaceIdentifier(workspaceIdentifier)) {
514+
return false;
515+
}
516+
517+
// Can only be untrusted in certain schemes
518+
if (workspaceIdentifier.uri.scheme !== Schemas.file && workspaceIdentifier.uri.scheme !== 'vscode-vfs') {
514519
return false;
515520
}
516521

0 commit comments

Comments
 (0)