Skip to content

Commit

Permalink
refactor: add devproxy in local debug telemetry (#11771)
Browse files Browse the repository at this point in the history
* refactor: add devproxy in local debug telemetry
  • Loading branch information
xzf0587 authored Jun 4, 2024
1 parent 217143c commit 84383e4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/vscode-extension/src/debug/teamsfxTaskHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 && <vscode.ShellExecution>task.execution) {
const execution = <vscode.ShellExecution>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;
Expand Down Expand Up @@ -143,6 +154,9 @@ function isTeamsfxTask(task: vscode.Task): boolean {
return true;
}
}
if (isCheckDevProxyTask(task)) {
return true;
}
}

return false;
Expand Down

0 comments on commit 84383e4

Please sign in to comment.