Skip to content

Commit bb30e02

Browse files
fix lint
1 parent a57e80f commit bb30e02

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

src/extension/common/application/debugSessionTelemetry.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,17 @@ class TelemetryTracker implements DebugAdapterTracker {
4545
this.sendTelemetry(EventName.DEBUG_SESSION_ERROR, error);
4646
}
4747

48-
private sendTelemetry<P extends IEventNamePropertyMapping, E extends keyof P>(eventName: EventName, properties?: P[E]): void {
48+
private sendTelemetry<P extends IEventNamePropertyMapping, E extends keyof P>(
49+
eventName: EventName,
50+
properties?: P[E],
51+
): void {
4952
if (eventName === EventName.DEBUG_SESSION_START) {
5053
this.timer.reset();
5154
}
5255
const telemetryProps = {
5356
trigger: this.trigger,
5457
console: this.console,
55-
...properties
58+
...properties,
5659
};
5760
sendTelemetryEvent(eventName as keyof IEventNamePropertyMapping, this.timer.elapsedTime, telemetryProps);
5861
}

src/extension/debugger/configuration/dynamicdebugConfigurationService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class DynamicPythonDebugConfigurationService implements IDynamicDebugConf
2222
_token?: CancellationToken,
2323
): Promise<DebugConfiguration[] | undefined> {
2424
const providers = [];
25-
25+
2626
providers.push({
2727
name: 'Python Debugger: Python File',
2828
type: DebuggerTypeName,

src/extension/debugger/hooks/childProcessAttachService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ChildProcessAttachService implements IChildProcessAttachService {
2828
lifecycleManagedByParent: true,
2929
};
3030
const folder = this.getRelatedWorkspaceFolder(debugConfig);
31-
traceLog("Start debugger in the child proccess");
31+
traceLog('Start debugger in the child proccess');
3232
const launched = await debug.startDebugging(folder, debugConfig, debugSessionOption);
3333
if (!launched) {
3434
showErrorMessage(l10n.t('Failed to launch debugger for child process {0}', debugConfig.subProcessId!)).then(

src/extension/telemetry/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ export enum EventName {
2222
DEBUGGER_DYNAMIC_CONFIGURATION = 'DEBUGGER.DYNAMIC_CONFIGURATION',
2323
ENVFILE_VARIABLE_SUBSTITUTION = 'ENVFILE_VARIABLE_SUBSTITUTION',
2424
USE_REPORT_ISSUE_COMMAND = 'USE_REPORT_ISSUE_COMMAND',
25-
DEBUGGER_PYTHON_37_DEPRECATED = "DEBUGGER_PYTHON_37_DEPRECATED",
25+
DEBUGGER_PYTHON_37_DEPRECATED = 'DEBUGGER_PYTHON_37_DEPRECATED',
2626
}

src/extension/telemetry/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export interface IEventNamePropertyMapping {
347347
* @type {ConsoleType}
348348
*/
349349
console?: ConsoleType;
350-
error?: Error
350+
error?: Error;
351351
};
352352
/**
353353
* Telemetry captured after stopping debug session.
@@ -662,20 +662,20 @@ export interface IEventNamePropertyMapping {
662662
"use_report_issue_command" : { "owner": "paulacamargo25" }
663663
*/
664664
[EventName.USE_REPORT_ISSUE_COMMAND]: unknown;
665-
/**
665+
/**
666666
* Telemetry event sent when providing dynamic configuration for debugger
667667
*/
668668
/* __GDPR__
669669
"debugger_dynamic_config" : { "owner": "paulacamargo25" }
670670
*/
671671
[EventName.DEBUGGER_DYNAMIC_CONFIGURATION]: {
672672
/**
673-
* Providers of dynamic configurations
674-
*
675-
* @type {DebugConfiguration[]}
676-
*/
677-
providers: DebugConfiguration[]
678-
},
673+
* Providers of dynamic configurations
674+
*
675+
* @type {DebugConfiguration[]}
676+
*/
677+
providers: DebugConfiguration[];
678+
};
679679
/**
680680
* Telemetry event sent when the debugger is running with a non supports python versions minor than 3.7.
681681
*/

0 commit comments

Comments
 (0)