From a65d4cbd9fc1e4c0d35b18fa5e1181dcf6bd9ca8 Mon Sep 17 00:00:00 2001 From: Rafael Bey <24432403+rafaelbey@users.noreply.github.com> Date: Thu, 25 Apr 2024 12:26:50 -0400 Subject: [PATCH] Support execution of services (#65) --- src/extension.ts | 2 -- src/utils/Const.ts | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index 55b4975..be3f839 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -48,7 +48,6 @@ import { RESULTS_WEB_VIEW, SHOW_RESULTS_COMMAND_ID, EXECUTION_TREE_VIEW, - EXEC_FUNCTION_WITH_PARAMETERS_ID, LEGEND_CLIENT_COMMAND_ID, FUNCTION_PARAMTER_VALUES_ID, SEND_TDS_REQUEST_ID, @@ -182,7 +181,6 @@ export function registerCommands(context: ExtensionContext): void { async (...args: unknown[]) => { const commandId = args[3] as string; switch (commandId) { - case EXEC_FUNCTION_WITH_PARAMETERS_ID: case EXEC_FUNCTION_ID: { handleExecuteFunctionCommand(context, args); break; diff --git a/src/utils/Const.ts b/src/utils/Const.ts index f8435b5..3647383 100644 --- a/src/utils/Const.ts +++ b/src/utils/Const.ts @@ -37,9 +37,7 @@ export const SET_CONTEXT_COMMAND_ID = 'setContext'; export const LEGEND_COMMAND = 'legend.command'; export const LEGEND_EXECUTE_COMMAND = 'legend.executeCommand'; export const LEGEND_CLIENT_COMMAND_ID = 'legend.client.command'; -export const EXEC_FUNCTION_WITH_PARAMETERS_ID = - 'legend.pure.executeFunctionWithParameters'; -export const EXEC_FUNCTION_ID = 'legend.pure.executeFunction'; +export const EXEC_FUNCTION_ID = 'legend.function.execute'; export const ACTIVATE_FUNCTION_ID = 'legend.pure.activateFunction'; export const SEND_TDS_REQUEST_ID = 'sendTDSRequest'; export const TDS_JSON_REQUEST_ID = 'legend/TDSRequest';