mirror of
https://github.com/Microsoft/vscode
synced 2024-10-06 03:17:00 +00:00
[json] Problems loading reference with schema service. Fixes #92353
This commit is contained in:
parent
7744c44570
commit
11c130357b
|
@ -345,6 +345,9 @@ function getSchemaAssociations(_context: ExtensionContext): ISchemaAssociation[]
|
|||
fileMatch = [fileMatch];
|
||||
}
|
||||
if (Array.isArray(fileMatch) && url) {
|
||||
if (url[0] === '.' && url[1] === '/') {
|
||||
url = Uri.file(path.join(extension.extensionPath, url)).toString();
|
||||
}
|
||||
fileMatch = fileMatch.map(fm => {
|
||||
if (fm[0] === '%') {
|
||||
fm = fm.replace(/%APP_SETTINGS_HOME%/, '/User');
|
||||
|
|
Loading…
Reference in a new issue