From 26d804073e588ae56a247b30335310af31dd308c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristina=20Isabel=20Ca=C3=B1izales?= Date: Mon, 16 Dec 2024 12:55:41 -0300 Subject: [PATCH] feat: hide deploy and retrieve oas commands --- packages/salesforcedx-vscode-core/package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/salesforcedx-vscode-core/package.json b/packages/salesforcedx-vscode-core/package.json index df9044c066..ddf5b7ff6c 100644 --- a/packages/salesforcedx-vscode-core/package.json +++ b/packages/salesforcedx-vscode-core/package.json @@ -222,11 +222,11 @@ }, { "command": "sf.deploy.oas", - "when": "sf:project_opened && resource =~ /.\\.yml$/ && resourcePath =~ /OpenAPIdocuments/ && editorIsOpen && sf:has_target_org" + "when": "false" }, { "command": "sf.retrieve.oas", - "when": "sf:project_opened && resource =~ /.\\.yml$/ && resourcePath =~ /OpenAPIdocuments/ && editorIsOpen && sf:has_target_org" + "when": "false" } ], "explorer/context": [ @@ -332,11 +332,11 @@ }, { "command": "sf.deploy.oas", - "when": "sf:project_opened && resourcePath =~ /OpenAPIdocuments/ && sf:has_target_org" + "when": "false" }, { "command": "sf.retrieve.oas", - "when": "sf:project_opened && resourcePath =~ /OpenAPIdocuments/ && sf:has_target_org" + "when": "false" } ], "commandPalette": [ @@ -622,11 +622,11 @@ }, { "command": "sf.deploy.oas", - "when": "sf:project_opened && resource =~ /.\\.yml$/ && resourcePath =~ /OpenAPIdocuments/ && editorIsOpen && sf:has_target_org" + "when": "false" }, { "command": "sf.retrieve.oas", - "when": "sf:project_opened && resource =~ /.\\.yml$/ && resourcePath =~ /OpenAPIdocuments/ && editorIsOpen && sf:has_target_org" + "when": "false" } ] },