mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Apply suggestions from code review
Adds suggestions from PR.
This commit is contained in:
parent
382498ef4e
commit
1f0fba4a1a
|
@ -4,7 +4,7 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
import * as interfaces from './interfaces';
|
||||
import * as vscode from 'vscode';
|
||||
import TelemetryReporter from '@vscode/extension-telemetry';
|
||||
import type TelemetryReporter from '@vscode/extension-telemetry';
|
||||
|
||||
export class DocumentMergeConflict implements interfaces.IDocumentMergeConflict {
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ export default class ServiceWrapper implements vscode.Disposable {
|
|||
private telemetryReporter: TelemetryReporter;
|
||||
|
||||
constructor(private context: vscode.ExtensionContext) {
|
||||
const { aiKey } = require('../package.json') as { aiKey: string };
|
||||
const { aiKey } = context.extension.packageJSON as { aiKey: string };
|
||||
this.telemetryReporter = new TelemetryReporter(aiKey);
|
||||
context.subscriptions.push(this.telemetryReporter);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue