Skip to content

Commit 964a545

Browse files
committed
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
1 parent 741ee9f commit 964a545

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/handler/workflowCommandHandler.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export async function handleRegCommandList(
1717
panel: vscode.WebviewPanel | vscode.WebviewView
1818
): Promise<void> {
1919
existPannel = panel;
20+
if (process.env.DC_LOCALSERVICE_PORT) {
21+
await getWorkflowCommandList(message, existPannel!);
22+
}
2023
}
2124

2225
export async function getWorkflowCommandList(

0 commit comments

Comments
 (0)