Merge pull request #20969 from Microsoft/kieferrm/gitTelemetryUpgrade
upgrade telemetry package used by git extension
This commit is contained in:
commit
318d528e18
3 changed files with 2 additions and 7 deletions
|
@ -589,7 +589,7 @@
|
|||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"vscode-extension-telemetry": "0.0.5",
|
||||
"vscode-extension-telemetry": "^0.0.6",
|
||||
"vscode-nls": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -23,6 +23,7 @@ const localize = nls.config()();
|
|||
async function init(context: ExtensionContext, disposables: Disposable[]): Promise<void> {
|
||||
const { name, version, aiKey } = require(context.asAbsolutePath('./package.json')) as { name: string, version: string, aiKey: string };
|
||||
const telemetryReporter: TelemetryReporter = new TelemetryReporter(name, version, aiKey);
|
||||
disposables.push(telemetryReporter);
|
||||
|
||||
const outputChannel = window.createOutputChannel('Git');
|
||||
disposables.push(outputChannel);
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
declare module 'vscode-extension-telemetry' {
|
||||
export default class TelemetryReporter {
|
||||
constructor(extensionId: string, extensionVersion: string, key: string);
|
||||
sendTelemetryEvent(eventName: string, properties?: { [key: string]: string }, measures?: { [key: string]: number }): void;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue