File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/vs/workbench/services/workspaces/common Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -507,10 +507,15 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
507
507
return true ;
508
508
}
509
509
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
512
512
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' ) {
514
519
return false ;
515
520
}
516
521
You can’t perform that action at this time.
0 commit comments