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": [