mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
[json] fix for contributed schemas located inside extensions
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user