File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/providers/FileSystemProvider Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 571571 },
572572 {
573573 "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" ,
575575 "group" : " objectscript_servercommand@1"
576576 },
577577 {
578578 "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" ,
580580 "group" : " objectscript_servercommand@2"
581581 },
582582 {
Original file line number Diff line number Diff line change @@ -204,6 +204,12 @@ export function isCSP(uri: vscode.Uri): boolean {
204204
205205/** Get the document name of the file in `uri`. */
206206export 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+ }
207213 if ( csp == undefined ) csp = isCSP ( uri ) ;
208214 const doc = csp ? uri . path : uri . path . slice ( 1 ) . replace ( / \/ / g, "." ) ;
209215 // Add the .PKG extension to non-web folders if called from StudioActions
You can’t perform that action at this time.
0 commit comments