提交 81bf22ae 编写于 作者: M Martin Aeschlimann

[json] take out preloaded json schemas

上级 a8e3aa69
......@@ -51,19 +51,7 @@ configurationRegistry.registerConfiguration({
'description': nls.localize('jsonConfiguration.schema', "The schema definition for the given URL. The schema only needs to be provided to avoid accesses to the schema URL."),
},
}
},
'default' : [
{ 'fileMatch': [ '/bower.json', '/.bower.json' ], 'url': 'http://json.schemastore.org/bower' },
{ 'fileMatch': [ '/package.json' ], 'url': 'http://json.schemastore.org/package' },
{ 'fileMatch': [ '/project.json' ], 'url': 'http://json.schemastore.org/project' },
{ 'fileMatch': [ '*.schema.json' ], 'url': 'http://json-schema.org/draft-04/schema#' },
{ 'fileMatch': [ '/global.json' ], 'url': 'http://json.schemastore.org/global' },
{ 'fileMatch': [ '/tsconfig.json'], 'url': 'http://json.schemastore.org/tsconfig' },
{ 'fileMatch': [ '/jsconfig.json' ], 'url': 'http://opentools.azurewebsites.net/jsconfig' },
{ 'fileMatch': [ '/.bowerrc' ], 'url': 'http://json.schemastore.org/bowerrc' },
{ 'fileMatch': [ '/.jshintrc' ], 'url': 'http://json.schemastore.org/jshintrc' },
{ 'fileMatch': [ '/.jscsrc' ], 'url': 'http://json.schemastore.org/jscsrc' }
]
}
}
}
});
\ No newline at end of file
......@@ -50,8 +50,7 @@ suite('JSON - Worker', () => {
if (schema) {
var id = "http://myschemastore/test1";
var schemaService = <SchemaService.JSONSchemaService> (<any>worker).schemaService;
schemaService.addPreloadedFileSchema(id, schema);
schemaService.registerExternalSchema(id, [ "*.json" ]);
schemaService.registerExternalSchema(id, [ "*.json" ], schema);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册