File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 297297 },
298298 {
299299 "command" : " vscode-objectscript.modifyWsFolder" ,
300- "when" : " vscode-objectscript.connectActive && workspaceFolderCount != 0"
300+ "when" : " workspaceFolderCount != 0"
301301 },
302302 {
303303 "command" : " vscode-objectscript.openErrorLocation" ,
606606 },
607607 {
608608 "command" : " vscode-objectscript.modifyWsFolder" ,
609- "when" : " vscode-objectscript.connectActive && resourceScheme =~ /^isfs(-readonly)?$/ && explorerResourceIsRoot && !listMultiSelection" ,
609+ "when" : " (!resourceScheme || resourceScheme =~ /^isfs(-readonly)?$/) && explorerResourceIsRoot && !listMultiSelection" ,
610610 "group" : " objectscript_modify@3"
611611 },
612612 {
Original file line number Diff line number Diff line change @@ -397,20 +397,20 @@ export async function modifyWsFolder(wsFolderUri?: vscode.Uri): Promise<void> {
397397 if ( ! wsFolder ) {
398398 return ;
399399 }
400- if ( notIsfs ( wsFolder . uri ) ) {
401- vscode . window . showErrorMessage (
402- `Workspace folder '${ wsFolder . name } ' does not have scheme 'isfs' or 'isfs-readonly'.` ,
403- "Dismiss"
404- ) ;
405- return ;
406- }
407400 } else {
408401 // Find the workspace folder for this uri
409402 wsFolder = vscode . workspace . getWorkspaceFolder ( wsFolderUri ) ;
410403 if ( ! wsFolder ) {
411404 return ;
412405 }
413406 }
407+ if ( notIsfs ( wsFolder . uri ) ) {
408+ vscode . window . showErrorMessage (
409+ `Workspace folder '${ wsFolder . name } ' does not have scheme 'isfs' or 'isfs-readonly'.` ,
410+ "Dismiss"
411+ ) ;
412+ return ;
413+ }
414414
415415 // Prompt the user to modify the uri
416416 const newUri = await modifyWsFolderUri ( wsFolder . uri ) ;
You can’t perform that action at this time.
0 commit comments