Skip to content

Commit 36aec69

Browse files
authored
refactor: respect debug flag in telemetry (#470)
1 parent af2d82a commit 36aec69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/runTest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export async function runTest(
101101
debug: boolean,
102102
): Promise<string> {
103103
reporter.sendTelemetryEvent("run_test", {
104-
"elixir_ls.with_debug": "true",
104+
"elixir_ls.with_debug": debug ? "true" : "false",
105105
});
106106

107107
const debugConfiguration: vscode.DebugConfiguration = getLaunchConfig(
@@ -201,7 +201,7 @@ export async function runTest(
201201
(debugSessionStarted) => {
202202
if (!debugSessionStarted) {
203203
reporter.sendTelemetryErrorEvent("run_test_error", {
204-
"elixir_ls.with_debug": "true",
204+
"elixir_ls.with_debug": debug ? "true" : "false",
205205
});
206206

207207
disposeListeners();
@@ -211,7 +211,7 @@ export async function runTest(
211211
},
212212
(reason) => {
213213
reporter.sendTelemetryErrorEvent("run_test_error", {
214-
"elixir_ls.with_debug": "true",
214+
"elixir_ls.with_debug": debug ? "true" : "false",
215215
"elixir_ls.run_test_error": String(reason),
216216
"elixir_ls.run_test_error_stack": reason?.stack ?? "",
217217
});

0 commit comments

Comments
 (0)