diff --git a/packages/vscode-extension/commands.yaml b/packages/vscode-extension/commands.yaml index ddbdbbd2..b572c37b 100644 --- a/packages/vscode-extension/commands.yaml +++ b/packages/vscode-extension/commands.yaml @@ -195,6 +195,12 @@ vlocode.execRestApi: when: config.vlocity.salesforce.enabled menus: - menu: commandPalette + - menu: explorer/context + when: + - resourceExtname == .sfhttp || resourceExtname == .http || editorLangId == sfhttp + - menu: explorer/context + when: + - resourceExtname == .sfhttp || resourceExtname == .http || editorLangId == sfhttp vlocode.retrieveMetadata: title: 'Salesforce: Export/Retrieve metadata from Org' group: v_salesforce diff --git a/packages/vscode-extension/package.json b/packages/vscode-extension/package.json index ff0d6186..08864e8c 100644 --- a/packages/vscode-extension/package.json +++ b/packages/vscode-extension/package.json @@ -775,6 +775,11 @@ "group": "v_salesforce", "when": "config.vlocity.salesforce.enabled && resourceScheme == file && resourceExtname == .apex" }, + { + "command": "vlocode.execRestApi", + "group": "v_salesforce", + "when": "config.vlocity.salesforce.enabled && (resourceExtname == .sfhttp || resourceExtname == .http)" + }, { "command": "vlocode.addToProfile", "group": "v_salesforce_profile", @@ -902,6 +907,11 @@ "group": "v_salesforce", "when": "vlocode.conditionalContextMenus == false || resourcePath in vlocode.metadata" }, + { + "command": "vlocode.execRestApi", + "group": "v_salesforce", + "when": "config.vlocity.salesforce.enabled && (resourceExtname == .sfhttp || resourceExtname == .http)" + }, { "command": "vlocode.addToProfile", "group": "v_salesforce_profile",