From 9bc69ffba6b4bef8adf23b6c5dc50183f161660a Mon Sep 17 00:00:00 2001 From: Daphne Yang <139700604+daphne-sfdc@users.noreply.github.com> Date: Sun, 12 Jan 2025 19:45:25 -0500 Subject: [PATCH] Revert "fix: hide commands outside of forceapp main default (#6003)" This reverts commit 7464a58a8e400ce4bc01b86c04969e3b47cff606. --- .../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 668569ed5b..71e3c3570f 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": [