Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.

Commit 49cc856

Browse files
committed
Adding telemetry
1 parent 2f39865 commit 49cc856

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/extension.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,14 @@ export function activate(context: vscode.ExtensionContext) {
5050
let targetUri: string = utils.getUrlFromConfig(folder, config);
5151
if (config.request && config.request.localeCompare('attach', 'en', { sensitivity: 'base' }) == 0) {
5252
attach(context, /* viaConfig= */ true, targetUri);
53+
telemetryReporter.sendTelemetryEvent('launch/command/launch');
5354
} else if (config.request && config.request.localeCompare('launch', 'en', { sensitivity: 'base' }) == 0) {
5455
launch(context, targetUri, config.chromePath);
56+
telemetryReporter.sendTelemetryEvent('launch/command/attach');
5557
}
5658
} else {
5759
vscode.window.showErrorMessage('No supported launch config was found.');
60+
telemetryReporter.sendTelemetryEvent('launch/error/config_not_found');
5861
}
5962
return;
6063
}

0 commit comments

Comments
 (0)