From 964a5453936af85c76025ab65e467266061fb5ca Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Thu, 18 Jul 2024 07:30:30 +0800 Subject: [PATCH] feat: Add local service port check for workflow commands - Introduce conditional check for DC_LOCALSERVICE_PORT - Call getWorkflowCommandList if local service port is set - Enhance handleRegCommandList function with new logic --- src/handler/workflowCommandHandler.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/handler/workflowCommandHandler.ts b/src/handler/workflowCommandHandler.ts index 115caa2..c886116 100644 --- a/src/handler/workflowCommandHandler.ts +++ b/src/handler/workflowCommandHandler.ts @@ -17,6 +17,9 @@ export async function handleRegCommandList( panel: vscode.WebviewPanel | vscode.WebviewView ): Promise { existPannel = panel; + if (process.env.DC_LOCALSERVICE_PORT) { + await getWorkflowCommandList(message, existPannel!); + } } export async function getWorkflowCommandList(