Skip to content

Commit

Permalink
fix: hide commands outside of forceapp main default
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales committed Jan 10, 2025
1 parent 885c3a4 commit 4fac696
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/salesforcedx-vscode-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,27 +195,27 @@
"editor/context": [
{
"command": "sf.retrieve.current.source.file",
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org && resourcePath =~ /force-app\\/main\\/default/"
},
{
"command": "sf.retrieve.in.manifest",
"when": "sf:project_opened && resourceLangId == 'forcesourcemanifest' && sf:has_target_org"
},
{
"command": "sf.deploy.current.source.file",
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org && resourcePath =~ /force-app\\/main\\/default/"
},
{
"command": "sf.deploy.in.manifest",
"when": "sf:project_opened && resourceLangId == 'forcesourcemanifest' && sf:has_target_org"
},
{
"command": "sf.delete.source.current.file",
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org && resourcePath =~ /force-app\\/main\\/default/"
},
{
"command": "sf.diff",
"when": "!explorerResourceIsFolder && sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
"when": "!explorerResourceIsFolder && sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org && resourcePath =~ /force-app\\/main\\/default/"
},
{
"command": "sf.launch.apex.replay.debugger.with.current.file",
Expand Down

0 comments on commit 4fac696

Please sign in to comment.