File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 297
297
},
298
298
{
299
299
"command" : " vscode-objectscript.modifyWsFolder" ,
300
- "when" : " vscode-objectscript.connectActive && workspaceFolderCount != 0"
300
+ "when" : " workspaceFolderCount != 0"
301
301
},
302
302
{
303
303
"command" : " vscode-objectscript.openErrorLocation" ,
606
606
},
607
607
{
608
608
"command" : " vscode-objectscript.modifyWsFolder" ,
609
- "when" : " vscode-objectscript.connectActive && resourceScheme =~ /^isfs(-readonly)?$/ && explorerResourceIsRoot && !listMultiSelection" ,
609
+ "when" : " (!resourceScheme || resourceScheme =~ /^isfs(-readonly)?$/) && explorerResourceIsRoot && !listMultiSelection" ,
610
610
"group" : " objectscript_modify@3"
611
611
},
612
612
{
Original file line number Diff line number Diff line change @@ -397,20 +397,20 @@ export async function modifyWsFolder(wsFolderUri?: vscode.Uri): Promise<void> {
397
397
if ( ! wsFolder ) {
398
398
return ;
399
399
}
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
- }
407
400
} else {
408
401
// Find the workspace folder for this uri
409
402
wsFolder = vscode . workspace . getWorkspaceFolder ( wsFolderUri ) ;
410
403
if ( ! wsFolder ) {
411
404
return ;
412
405
}
413
406
}
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
+ }
414
414
415
415
// Prompt the user to modify the uri
416
416
const newUri = await modifyWsFolderUri ( wsFolder . uri ) ;
You can’t perform that action at this time.
0 commit comments