Fixes #3952 [json] Add telemetry event when user edit a json file for Azure RM.

This commit is contained in:
Martin Aeschlimann
2016-03-11 23:31:23 +01:00
parent 2763b7fd94
commit 80bd73b513
2 changed files with 8 additions and 14 deletions

View File

@@ -342,7 +342,7 @@ export class JSONSchemaService implements IJSONSchemaService {
}
public loadSchema(url: string): Thenable<UnresolvedSchema> {
if (this.telemetryService && Strings.startsWith(url, 'https://schema.management.azure.com')) {
if (this.telemetryService && url.indexOf('//schema.management.azure.com/') !== -1) {
this.telemetryService.log('json.schema', {
schemaURL: url
});