提交 ed3a686a 编写于 作者: D Dirk Baeumer

Move schema registration to json/package.json file.

上级 fa773a72
......@@ -67,6 +67,10 @@
"fileMatch": "%APP_SETTINGS_HOME%/settings.json",
"url": "vscode://schemas/settings"
},
{
"fileMatch": "%APP_SETTINGS_HOME%/locale.json",
"url": "vscode://schemas/locale"
},
{
"fileMatch": "/.vscode/settings.json",
"url": "vscode://schemas/settings"
......
......@@ -89,5 +89,4 @@ let schema : IJSONSchema =
};
let jsonRegistry = <IJSONContributionRegistry>Registry.as(JSONExtensions.JSONContribution);
jsonRegistry.registerSchema(schemaId, schema);
jsonRegistry.addSchemaFileAssociation('%APP_SETTINGS_HOME%/locale.json', schemaId);
jsonRegistry.registerSchema(schemaId, schema);
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册