Skip to content

Commit

Permalink
Revert "fix: hide commands outside of forceapp main default (#6003)" (#…
Browse files Browse the repository at this point in the history
…6004)

This reverts commit 7464a58.

Co-authored-by: peternhale <[email protected]>
  • Loading branch information
daphne-sfdc and peternhale authored Jan 13, 2025
1 parent e4fdff2 commit afec0f4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 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 && resourcePath =~ /force-app\\/main\\/default/"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
},
{
"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 && resourcePath =~ /force-app\\/main\\/default/"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
},
{
"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 && resourcePath =~ /force-app\\/main\\/default/"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
},
{
"command": "sf.diff",
"when": "!explorerResourceIsFolder && sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org && resourcePath =~ /force-app\\/main\\/default/"
"when": "!explorerResourceIsFolder && sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
},
{
"command": "sf.launch.apex.replay.debugger.with.current.file",
Expand All @@ -241,7 +241,7 @@
},
{
"command": "sf.folder.diff",
"when": "explorerResourceIsFolder && sf:project_opened && sf:has_target_org && resourcePath =~ /force-app\\/main\\/default/"
"when": "explorerResourceIsFolder && sf:project_opened && sf:has_target_org"
},
{
"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 && resourcePath =~ /force-app\\/main\\/default/"
"when": "!explorerResourceIsFolder && sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
},
{
"command": "sf.retrieve.source.path",
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org && resourcePath =~ /force-app\\/main\\/default/"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
},
{
"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 && resourcePath =~ /force-app\\/main\\/default/"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
},
{
"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 && resourcePath =~ /force-app\\/main\\/default/"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && sf:has_target_org"
},
{
"command": "sf.project.generate.manifest",
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest' && resourcePath =~ /force-app\\/main\\/default/"
"when": "sf:project_opened && resourceLangId != 'forcesourcemanifest'"
},
{
"command": "sf.rename.lightning.component",
"when": "sf:project_opened && resource =~ /.*\\/(lwc|aura)\\/.*(\\/[^\\/]+\\.(html|css|js|xml|svg|cmp|app|design|auradoc))?$/ && resourcePath =~ /force-app\\/main\\/default/"
"when": "sf:project_opened && resource =~ /.*\\/(lwc|aura)\\/.*(\\/[^\\/]+\\.(html|css|js|xml|svg|cmp|app|design|auradoc))?$/"
}
],
"commandPalette": [
Expand Down

0 comments on commit afec0f4

Please sign in to comment.