File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22// Copyright (c) Microsoft Corporation. All rights reserved.
33// Licensed under the MIT License.
44
5- import TelemetryReporter from '@vscode/extension-telemetry' ;
5+ import type { TelemetryReporter } from '@vscode/extension-telemetry' ;
66
77import { isTestExecution } from '../common/constants' ;
88import { StopWatch } from '../common/utils/stopWatch' ;
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation. All rights reserved.
22// Licensed under the MIT License.
33
4- import TelemetryReporter from '@vscode/extension-telemetry' ;
4+ import { TelemetryReporter } from '@vscode/extension-telemetry' ;
55import { AppinsightsKey , isTestExecution } from '../common/constants' ;
66
77export function getTelemetryReporter ( telemetryReporter : TelemetryReporter | undefined ) {
88 if ( ! isTestExecution ( ) && telemetryReporter ) {
99 return telemetryReporter ;
1010 }
1111
12- // eslint-disable-next-line @typescript-eslint/naming-convention
13- const Reporter = require ( '@vscode/extension-telemetry' ) . default as typeof TelemetryReporter ;
14- telemetryReporter = new Reporter ( AppinsightsKey , [
12+ telemetryReporter = new TelemetryReporter ( AppinsightsKey , [
1513 {
1614 lookup : / ( e r r o r N a m e | e r r o r M e s s a g e | e r r o r S t a c k ) / g,
1715 } ,
You can’t perform that action at this time.
0 commit comments