From afec0f472f5f2a0519cbcca37cdac0cfb235f992 Mon Sep 17 00:00:00 2001 From: Daphne Yang <139700604+daphne-sfdc@users.noreply.github.com> Date: Mon, 13 Jan 2025 08:22:00 -0500 Subject: [PATCH] Revert "fix: hide commands outside of forceapp main default (#6003)" (#6004) This reverts commit 7464a58a8e400ce4bc01b86c04969e3b47cff606. Co-authored-by: peternhale --- .../salesforcedx-vscode-core/package.json | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/salesforcedx-vscode-core/package.json b/packages/salesforcedx-vscode-core/package.json index 4266b239d4..025b1a427f 100644 --- a/packages/salesforcedx-vscode-core/package.json +++ b/packages/salesforcedx-vscode-core/package.json @@ -195,7 +195,7 @@ "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", @@ -203,7 +203,7 @@ }, { "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", @@ -211,11 +211,11 @@ }, { "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", @@ -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", @@ -293,11 +293,11 @@ }, { "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", @@ -305,7 +305,7 @@ }, { "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", @@ -313,15 +313,15 @@ }, { "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": [