File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import {
1414} from 'vscode' ;
1515import { createFileSystemWatcher , debugStartDebugging } from './utils' ;
1616import { traceError , traceVerbose } from './common/log/logging' ;
17+ import { sendTelemetryEvent } from './telemetry' ;
18+ import { EventName } from './telemetry/constants' ;
1719
1820/**
1921 * Registers the configuration-less debugging setup for the extension.
@@ -84,6 +86,7 @@ export async function registerNoConfigDebug(
8486 // create file system watcher for the debuggerAdapterEndpointFolder for when the communication port is written
8587 const fileSystemWatcher = createFileSystemWatcher ( new RelativePattern ( tempDirPath , '**/*' ) ) ;
8688 const fileCreationEvent = fileSystemWatcher . onDidCreate ( async ( uri ) => {
89+ sendTelemetryEvent ( EventName . DEBUGGER_NO_CONFIG_DEBUGGING ) ;
8790 const filePath = uri . fsPath ;
8891 fs . readFile ( filePath , ( err , data ) => {
8992 const dataParse = data . toString ( ) ;
Original file line number Diff line number Diff line change @@ -24,4 +24,5 @@ export enum EventName {
2424 USE_REPORT_ISSUE_COMMAND = 'USE_REPORT_ISSUE_COMMAND' ,
2525 DEBUGGER_PYTHON_37_DEPRECATED = 'DEBUGGER_PYTHON_37_DEPRECATED' ,
2626 DEBUGGER_SHOW_PYTHON_INLINE_VALUES = 'DEBUGGER_SHOW_PYTHON_INLINE_VALUES' ,
27+ DEBUGGER_NO_CONFIG_DEBUGGING = 'DEBUGGER_NO_CONFIG_DEBUGGING' ,
2728}
Original file line number Diff line number Diff line change @@ -690,4 +690,12 @@ export interface IEventNamePropertyMapping {
690690 "DEBUGGER_SHOW_PYTHON_INLINE_VALUES" : { "owner": "eleanorjboyd" }
691691 */
692692 [ EventName . DEBUGGER_SHOW_PYTHON_INLINE_VALUES ] : never | undefined ;
693+
694+ /**
695+ * Telemetry event sent when no-config debugging is used.
696+ */
697+ /* __GDPR__
698+ "DEBUGGER_NO_CONFIG_DEBUGGING" : { "owner": "eleanorjboyd" }
699+ */
700+ [ EventName . DEBUGGER_NO_CONFIG_DEBUGGING ] : never | undefined ;
693701}
You can’t perform that action at this time.
0 commit comments