You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it appears it won't be applied to our files.
.paf files are associated as yaml files in vscode like so:
"files.associations": {
"*.paf": "yaml"
},
The files are correctly formatted as YAML, but again, without applying the correct schema.
The status-bar icon says "no JSON schema" and when clicking it to see the list, it doesn't include our schema either.
My theories are:
The schema isn't being applied because the file extension isn't a standard YAML extension (I also aren't seeing some other schemas from the schema store that use non-standard extensions in the list of schemas)
The schemas are aggressively cached (the schema was added close to a week ago, vscode has been restarted multiple times, the JSON schema cache has been cleared) I have also tested on another computer which didn't have this extension installed and after configuring it the same way, I got the same result – which makes the cache theory less likely.
Expected Behavior
The schema defined in the schema store should be applied for files named settings.paf (when the paf extension is associated with YAML).
Current Behavior
No schema is applied for files named settings.paf.
Steps to Reproduce
Create file called settings.paf
See that the YAML plugin fails to associate it with any schema.
Environment
Windows
Mac
Linux
other (please specify)
The text was updated successfully, but these errors were encountered:
The schema store support is implemented in such way that yaml-language-server filter out schema store records, based on fileMatch patterns, it ignore all items which doesn’t have any of *.yaml.
@gorkem Maybe we can improve filtering by checking files.associations preference?
Describe the bug
We have added the following schema to the JSON schema store:
However, it appears it won't be applied to our files.
.paf
files are associated as yaml files in vscode like so:The files are correctly formatted as YAML, but again, without applying the correct schema.
The status-bar icon says "no JSON schema" and when clicking it to see the list, it doesn't include our schema either.
My theories are:
Expected Behavior
The schema defined in the schema store should be applied for files named
settings.paf
(when thepaf
extension is associated with YAML).Current Behavior
No schema is applied for files named
settings.paf
.Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: