diff --git a/packages/vscode-extension/src/debug/teamsfxTaskHandler.ts b/packages/vscode-extension/src/debug/teamsfxTaskHandler.ts index 94a4f12cbb..e6f5f20040 100644 --- a/packages/vscode-extension/src/debug/teamsfxTaskHandler.ts +++ b/packages/vscode-extension/src/debug/teamsfxTaskHandler.ts @@ -93,6 +93,17 @@ function isNpmInstallTask(task: vscode.Task): boolean { return false; } +function isCheckDevProxyTask(task: vscode.Task): boolean { + if (task.definition.type === "shell" && task.execution && task.execution) { + const execution = task.execution; + return ( + execution.options?.cwd === "${workspaceFolder}/proxy" && + execution.commandLine === "node check.js" + ); + } + return false; +} + function isTeamsFxTransparentTask(task: vscode.Task): boolean { if (task.definition && task.definition.type === ProductName) { const command = task.definition.command as string; @@ -143,6 +154,9 @@ function isTeamsfxTask(task: vscode.Task): boolean { return true; } } + if (isCheckDevProxyTask(task)) { + return true; + } } return false;