File tree 2 files changed +8
-2
lines changed
src/providers/FileSystemProvider
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 571
571
},
572
572
{
573
573
"command" : " vscode-objectscript.serverCommands.contextSourceControl" ,
574
- "when" : " resourceScheme == isfs && vscode-objectscript.connectActive && resourcePath && !(resourcePath =~ /^\\ /?$/) && !(explorerResourceIsFolder && resource =~ /\\ ?csp(%3D1|$)/) && !listMultiSelection" ,
574
+ "when" : " resourceScheme == isfs && vscode-objectscript.connectActive && (( resourcePath && !(resourcePath =~ /^\\ /?$/)) || resource =~ /project%3D /) && !(explorerResourceIsFolder && resource =~ /\\ ?csp(%3D1|$)/) && !listMultiSelection" ,
575
575
"group" : " objectscript_servercommand@1"
576
576
},
577
577
{
578
578
"command" : " vscode-objectscript.serverCommands.contextOther" ,
579
- "when" : " resourceScheme =~ /^isfs(-readonly)?$/ && vscode-objectscript.connectActive && resourcePath && !(resourcePath =~ /^\\ /?$/) && !(explorerResourceIsFolder && resource =~ /\\ ?csp(%3D1|$)/) && !listMultiSelection" ,
579
+ "when" : " resourceScheme =~ /^isfs(-readonly)?$/ && vscode-objectscript.connectActive && (( resourcePath && !(resourcePath =~ /^\\ /?$/)) || resource =~ /project%3D /) && !(explorerResourceIsFolder && resource =~ /\\ ?csp(%3D1|$)/) && !listMultiSelection" ,
580
580
"group" : " objectscript_servercommand@2"
581
581
},
582
582
{
Original file line number Diff line number Diff line change @@ -204,6 +204,12 @@ export function isCSP(uri: vscode.Uri): boolean {
204
204
205
205
/** Get the document name of the file in `uri`. */
206
206
export function isfsDocumentName ( uri : vscode . Uri , csp ?: boolean , pkg = false ) : string {
207
+ const { project } = isfsConfig ( uri ) ;
208
+ if ( pkg && project && [ "" , "/" ] . includes ( uri . path ) ) {
209
+ // pkg is only true when opening a context server-side source control menu.
210
+ // When called on a project workspace root folder, show the menu for the project.
211
+ return `${ project } .PRJ` ;
212
+ }
207
213
if ( csp == undefined ) csp = isCSP ( uri ) ;
208
214
const doc = csp ? uri . path : uri . path . slice ( 1 ) . replace ( / \/ / g, "." ) ;
209
215
// Add the .PKG extension to non-web folders if called from StudioActions
You can’t perform that action at this time.
0 commit comments