mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
[json] match only schemas of current folder
This commit is contained in:
parent
2059716397
commit
d0d00e8824
1 changed files with 6 additions and 1 deletions
|
@ -217,7 +217,12 @@ function getSettings(): Settings {
|
|||
if (url && url[0] === '.') {
|
||||
url = Uri.file(path.normalize(path.join(folder.uri.fsPath, url))).toString();
|
||||
}
|
||||
schemas.push({ url, fileMatch: schema.fileMatch, schema: schema.schema });
|
||||
let fileMatch = schema.fileMatch;
|
||||
|
||||
if (fileMatch) {
|
||||
fileMatch = fileMatch.map(m => path.join(folder.uri.path + '*', m));
|
||||
}
|
||||
schemas.push({ url, fileMatch, schema: schema.schema });
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue