Skip to content

Commit

Permalink
chore: hide in context menu from explorer view
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales committed Jan 11, 2025
1 parent 4fac696 commit 60bf60b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/salesforcedx-vscode-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
},
{
"command": "sf.folder.diff",
"when": "explorerResourceIsFolder && sf:project_opened && sf:has_target_org"
"when": "explorerResourceIsFolder && sf:project_opened && sf:has_target_org && resourcePath =~ /force-app\\/main\\/default/"
},
{
"command": "sf.analytics.generate.template",
Expand Down Expand Up @@ -293,35 +293,35 @@
},
{
"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.retrieve.source.path",
"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.source.path",
"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",
"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.project.generate.manifest",
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest'"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && resourcePath =~ /force-app\\/main\\/default/"
},
{
"command": "sf.rename.lightning.component",
"when": "sf:project_opened && resource =~ /.*\\/(lwc|aura)\\/.*(\\/[^\\/]+\\.(html|css|js|xml|svg|cmp|app|design|auradoc))?$/"
"when": "sf:project_opened && resource =~ /.*\\/(lwc|aura)\\/.*(\\/[^\\/]+\\.(html|css|js|xml|svg|cmp|app|design|auradoc))?$/ && resourcePath =~ /force-app\\/main\\/default/"
}
],
"commandPalette": [
Expand Down

0 comments on commit 60bf60b

Please sign in to comment.