Multi root: json.schema setting relative url doesnt get resolved to folder. Fixes #33453

This commit is contained in:
Martin Aeschlimann
2017-08-30 15:11:09 +02:00
parent 062d65d175
commit 5e42a4907a

View File

@@ -219,9 +219,8 @@ function getSettings(): Settings {
url = Uri.file(path.normalize(path.join(folder.uri.fsPath, url))).toString();
}
let fileMatch = schema.fileMatch;
if (fileMatch) {
fileMatch = fileMatch.map(m => path.join(folder.uri.path + '*', m));
fileMatch = fileMatch.map(m => folder.uri.toString() + '*' + m);
}
schemas.push({ url, fileMatch, schema: schema.schema });
});