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
This commit is contained in:
bobo.yang 2024-07-18 07:30:30 +08:00
parent 741ee9fcbf
commit 964a545393

View File

@ -17,6 +17,9 @@ export async function handleRegCommandList(
panel: vscode.WebviewPanel | vscode.WebviewView
): Promise<void> {
existPannel = panel;
if (process.env.DC_LOCALSERVICE_PORT) {
await getWorkflowCommandList(message, existPannel!);
}
}
export async function getWorkflowCommandList(