Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/extension/noConfigDebugInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
} from 'vscode';
import { createFileSystemWatcher, debugStartDebugging } from './utils';
import { traceError, traceVerbose } from './common/log/logging';
import { sendTelemetryEvent } from './telemetry';
import { EventName } from './telemetry/constants';

/**
* Registers the configuration-less debugging setup for the extension.
Expand Down Expand Up @@ -84,6 +86,7 @@ export async function registerNoConfigDebug(
// create file system watcher for the debuggerAdapterEndpointFolder for when the communication port is written
const fileSystemWatcher = createFileSystemWatcher(new RelativePattern(tempDirPath, '**/*'));
const fileCreationEvent = fileSystemWatcher.onDidCreate(async (uri) => {
sendTelemetryEvent(EventName.DEBUGGER_NO_CONFIG_DEBUGGING);
const filePath = uri.fsPath;
fs.readFile(filePath, (err, data) => {
const dataParse = data.toString();
Expand Down
1 change: 1 addition & 0 deletions src/extension/telemetry/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ export enum EventName {
USE_REPORT_ISSUE_COMMAND = 'USE_REPORT_ISSUE_COMMAND',
DEBUGGER_PYTHON_37_DEPRECATED = 'DEBUGGER_PYTHON_37_DEPRECATED',
DEBUGGER_SHOW_PYTHON_INLINE_VALUES = 'DEBUGGER_SHOW_PYTHON_INLINE_VALUES',
DEBUGGER_NO_CONFIG_DEBUGGING = 'DEBUGGER_NO_CONFIG_DEBUGGING',
}
9 changes: 9 additions & 0 deletions src/extension/telemetry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,4 +690,13 @@ export interface IEventNamePropertyMapping {
"DEBUGGER_SHOW_PYTHON_INLINE_VALUES" : { "owner": "paulacamargo25" }
*/
[EventName.DEBUGGER_SHOW_PYTHON_INLINE_VALUES]: never | undefined;


/**
* Telemetry event sent when no-config debugging is used.
*/
/* __GDPR__
"DEBUGGER_NO_CONFIG_DEBUGGING" : { "owner": "eleanorjboyd" }
*/
[EventName.DEBUGGER_NO_CONFIG_DEBUGGING]: never | undefined;
}
Loading