File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import {
14
14
} from 'vscode' ;
15
15
import { createFileSystemWatcher , debugStartDebugging } from './utils' ;
16
16
import { traceError , traceVerbose } from './common/log/logging' ;
17
+ import { sendTelemetryEvent } from './telemetry' ;
18
+ import { EventName } from './telemetry/constants' ;
17
19
18
20
/**
19
21
* Registers the configuration-less debugging setup for the extension.
@@ -84,6 +86,7 @@ export async function registerNoConfigDebug(
84
86
// create file system watcher for the debuggerAdapterEndpointFolder for when the communication port is written
85
87
const fileSystemWatcher = createFileSystemWatcher ( new RelativePattern ( tempDirPath , '**/*' ) ) ;
86
88
const fileCreationEvent = fileSystemWatcher . onDidCreate ( async ( uri ) => {
89
+ sendTelemetryEvent ( EventName . DEBUGGER_NO_CONFIG_DEBUGGING ) ;
87
90
const filePath = uri . fsPath ;
88
91
fs . readFile ( filePath , ( err , data ) => {
89
92
const dataParse = data . toString ( ) ;
Original file line number Diff line number Diff line change @@ -24,4 +24,5 @@ export enum EventName {
24
24
USE_REPORT_ISSUE_COMMAND = 'USE_REPORT_ISSUE_COMMAND' ,
25
25
DEBUGGER_PYTHON_37_DEPRECATED = 'DEBUGGER_PYTHON_37_DEPRECATED' ,
26
26
DEBUGGER_SHOW_PYTHON_INLINE_VALUES = 'DEBUGGER_SHOW_PYTHON_INLINE_VALUES' ,
27
+ DEBUGGER_NO_CONFIG_DEBUGGING = 'DEBUGGER_NO_CONFIG_DEBUGGING' ,
27
28
}
Original file line number Diff line number Diff line change @@ -690,4 +690,12 @@ export interface IEventNamePropertyMapping {
690
690
"DEBUGGER_SHOW_PYTHON_INLINE_VALUES" : { "owner": "eleanorjboyd" }
691
691
*/
692
692
[ 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 ;
693
701
}
You can’t perform that action at this time.
0 commit comments