mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
upgrade telemetry used by json ext
This commit is contained in:
parent
82f11708de
commit
3f26922adb
|
@ -35,6 +35,7 @@ export function activate(context: ExtensionContext) {
|
|||
|
||||
let packageInfo = getPackageInfo(context);
|
||||
let telemetryReporter: TelemetryReporter = packageInfo && new TelemetryReporter(packageInfo.name, packageInfo.version, packageInfo.aiKey);
|
||||
context.subscriptions.push(telemetryReporter);
|
||||
|
||||
// The server is implemented in node
|
||||
let serverModule = context.asAbsolutePath(path.join('server', 'out', 'jsonServerMain.js'));
|
||||
|
@ -99,7 +100,7 @@ function getSchemaAssociation(context: ExtensionContext): ISchemaAssociations {
|
|||
let jsonValidation = packageJSON.contributes.jsonValidation;
|
||||
if (Array.isArray(jsonValidation)) {
|
||||
jsonValidation.forEach(jv => {
|
||||
let {fileMatch, url} = jv;
|
||||
let { fileMatch, url } = jv;
|
||||
if (fileMatch && url) {
|
||||
if (url[0] === '.' && url[1] === '/') {
|
||||
url = Uri.file(path.join(extension.extensionPath, url)).toString();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
18
extensions/json/npm-shrinkwrap.json
generated
18
extensions/json/npm-shrinkwrap.json
generated
|
@ -3,14 +3,14 @@
|
|||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"applicationinsights": {
|
||||
"version": "0.15.6",
|
||||
"from": "applicationinsights@0.15.6",
|
||||
"resolved": "https://registry.npmjs.org/applicationinsights/-/applicationinsights-0.15.6.tgz"
|
||||
"version": "0.18.0",
|
||||
"from": "applicationinsights@0.18.0",
|
||||
"resolved": "https://registry.npmjs.org/applicationinsights/-/applicationinsights-0.18.0.tgz"
|
||||
},
|
||||
"vscode-extension-telemetry": {
|
||||
"version": "0.0.5",
|
||||
"from": "vscode-extension-telemetry@>=0.0.5 <0.0.6",
|
||||
"resolved": "https://registry.npmjs.org/vscode-extension-telemetry/-/vscode-extension-telemetry-0.0.5.tgz"
|
||||
"version": "0.0.6",
|
||||
"from": "vscode-extension-telemetry@>=0.0.6 <0.0.7",
|
||||
"resolved": "https://registry.npmjs.org/vscode-extension-telemetry/-/vscode-extension-telemetry-0.0.6.tgz"
|
||||
},
|
||||
"vscode-jsonrpc": {
|
||||
"version": "3.1.0-alpha.1",
|
||||
|
@ -33,9 +33,9 @@
|
|||
"resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-2.0.2.tgz"
|
||||
},
|
||||
"winreg": {
|
||||
"version": "0.0.13",
|
||||
"from": "winreg@0.0.13",
|
||||
"resolved": "https://registry.npmjs.org/winreg/-/winreg-0.0.13.tgz"
|
||||
"version": "1.2.3",
|
||||
"from": "winreg@1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/winreg/-/winreg-1.2.3.tgz"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"vscode-extension-telemetry": "^0.0.5",
|
||||
"vscode-extension-telemetry": "^0.0.6",
|
||||
"vscode-languageclient": "^3.1.0-alpha.1",
|
||||
"vscode-nls": "^2.0.2"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue