Skip to content

Commit 6c55ec4

Browse files
committed
Cleanup breakpointType logic and send raw properties instead.
1 parent f8cfda3 commit 6c55ec4

1 file changed

Lines changed: 8 additions & 13 deletions

File tree

src/vs/workbench/parts/debug/electron-browser/debugService.ts

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,23 +1069,18 @@ export class DebugService implements IDebugService {
10691069
private telemetryDebugAddBreakpoint(breakpoint: IBreakpoint, context: string): TPromise<any> {
10701070
/* __GDPR__
10711071
"debugAddBreakpoint" : {
1072-
"type" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
1073-
"context": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
1072+
"context": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
1073+
"hasCondition": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
1074+
"hasHitCondition": { "classification": "SystemMetaData", "purpose": "FeatureInsight" },
1075+
"hasLogMessage": { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
10741076
}
10751077
*/
10761078

1077-
var breakpointType = 'Breakpoint';
1078-
if (breakpoint.condition) {
1079-
breakpointType = 'BreakpointConditional';
1080-
} else if (breakpoint.hitCondition) {
1081-
breakpointType = 'BreakpointHitCount';
1082-
} else if (breakpoint.logMessage) {
1083-
breakpointType = 'Logpoint';
1084-
}
1085-
10861079
return this.telemetryService.publicLog('debugAddBreakpoint', {
1087-
type: breakpointType,
1088-
context: context
1080+
context: context,
1081+
hasCondition: !!breakpoint.condition,
1082+
hasHitCondition: !!breakpoint.hitCondition,
1083+
hasLogMessage: !!breakpoint.logMessage
10891084
});
10901085
}
10911086
}

0 commit comments

Comments
 (0)