提交 a64e40b4 编写于 作者: K kieferrm

upgrade telemetry used by git ext

上级 82f11708
...@@ -589,7 +589,7 @@ ...@@ -589,7 +589,7 @@
} }
}, },
"dependencies": { "dependencies": {
"vscode-extension-telemetry": "0.0.5", "vscode-extension-telemetry": "^0.0.6",
"vscode-nls": "^2.0.1" "vscode-nls": "^2.0.1"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -23,6 +23,7 @@ const localize = nls.config()(); ...@@ -23,6 +23,7 @@ const localize = nls.config()();
async function init(context: ExtensionContext, disposables: Disposable[]): Promise<void> { 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 { name, version, aiKey } = require(context.asAbsolutePath('./package.json')) as { name: string, version: string, aiKey: string };
const telemetryReporter: TelemetryReporter = new TelemetryReporter(name, version, aiKey); const telemetryReporter: TelemetryReporter = new TelemetryReporter(name, version, aiKey);
disposables.push(telemetryReporter);
const outputChannel = window.createOutputChannel('Git'); const outputChannel = window.createOutputChannel('Git');
disposables.push(outputChannel); disposables.push(outputChannel);
......
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;
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册