mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
[json] match only schemas of current folder
This commit is contained in:
@@ -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 });
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user