Skip to content

Commit 8db9949

Browse files
committed
fix linter
1 parent 2c3dcd4 commit 8db9949

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Extension/src/instrumentation.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* ------------------------------------------------------------------------------------------ */
55
'use strict';
66

7+
/* eslint @typescript-eslint/no-var-requires: "off" */
8+
79
export interface PerfMessage<TInput = Record<string, any> | undefined> {
810
/** this is the 'name' of the event */
911
name: string;
@@ -22,9 +24,9 @@ export interface PerfMessage<TInput = Record<string, any> | undefined> {
2224
}
2325

2426
const services = {
25-
instrument: <T extends Record<string, any>>(instance: T, _options?: { ignore?: string[]; name?: string }): T => { return instance; },
26-
message: (message: PerfMessage) => { },
27-
init: (vscode: any) => { },
27+
instrument: <T extends Record<string, any>>(_instance: T, _options?: { ignore?: string[]; name?: string }): T => instance,
28+
message: (_message: PerfMessage) => { },
29+
init: (_vscode: any) => { },
2830
launchSettings: undefined as Record<string, any> | undefined
2931
};
3032

@@ -42,7 +44,6 @@ export function isInstrumentationEnabled(): boolean {
4244
return !!(global as any).instrumentation;
4345
}
4446

45-
4647
// if the instrumentation code is not globally loaded yet, then load it now
4748
if (!isInstrumentationEnabled()) {
4849
// pull the launch settings from the environment if the variable has been set.
@@ -52,7 +53,6 @@ if (!isInstrumentationEnabled()) {
5253

5354
// this loads the bootstrap module (global-instrumentation-support) which adds some global functions
5455
if (services.launchSettings?.bootstrapModule) {
55-
// eslint-disable-next-line @typescript-eslint/no-var-requires
5656
void require(services.launchSettings.bootstrapModule);
5757
}
5858
}

0 commit comments

Comments
 (0)