File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
extensions/merge-conflict/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 4
4
*--------------------------------------------------------------------------------------------*/
5
5
import * as interfaces from './interfaces' ;
6
6
import * as vscode from 'vscode' ;
7
- import TelemetryReporter from '@vscode/extension-telemetry' ;
7
+ import type TelemetryReporter from '@vscode/extension-telemetry' ;
8
8
9
9
export class DocumentMergeConflict implements interfaces . IDocumentMergeConflict {
10
10
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default class ServiceWrapper implements vscode.Disposable {
19
19
private telemetryReporter : TelemetryReporter ;
20
20
21
21
constructor ( private context : vscode . ExtensionContext ) {
22
- const { aiKey } = require ( '../package.json' ) as { aiKey : string } ;
22
+ const { aiKey } = context . extension . packageJSON as { aiKey : string } ;
23
23
this . telemetryReporter = new TelemetryReporter ( aiKey ) ;
24
24
context . subscriptions . push ( this . telemetryReporter ) ;
25
25
}
You can’t perform that action at this time.
0 commit comments