提交 94434324 编写于 作者: M Martin Aeschlimann

[json] fix for contributed schemas located inside extensions

上级 63bbc4ea
......@@ -90,8 +90,8 @@ function getSchemaAssociation(context: ExtensionContext) : ISchemaAssociations {
jsonValidation.forEach(jv => {
var {fileMatch, url} = jv;
if (fileMatch && url) {
if (url[0] === '.' && url[1] === '.') {
url = context.asAbsolutePath(url);
if (url[0] === '.' && url[1] === '/') {
url = path.join(extension.extensionPath, url);
}
if (fileMatch[0] === '%') {
fileMatch = fileMatch.replace(/%APP_SETTINGS_HOME%/, '/User');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册