JSON preferences do not support relative paths for schema associations #7140
Labels
bug
bugs found in the application
help wanted
issues meant to be picked up, require help
json
issues related to the json language
Description
In JSON preferences, the definition of
json.schemas : url
says it accepts a relative path to a schema in the current directory.(https://github.com/eclipse-theia/theia/blob/master/packages/json/src/browser/json-preferences.ts)
When using a relative path the following error occurs:
[json] Unable to load schema from '/.schemas/my-schema-definition.json': ENOENT: no such file or directory, open '/.schemas/my-schema-definition.json'.
Using the absolute path to this schema works though.
Reproduction Steps
OS and Theia version:
OS: Ubuntu 18.04
Theia: 3468d00
Diagnostics:
The text was updated successfully, but these errors were encountered: