When working with a schema-constrained TOML file in the language server, and a string is encountered with "format": "uri-reference", offer nice LSP features like:
completion
go to definition
show diagnostic if missing (?)
motivation
Many TOML-based configuration files include references to other files and directories, some of which may not yet exist when the file is being written.
The uri-reference format for strings allows for precisely stating that the value is a POSIX-style relative path.
alternatives
If the above features would be undesirable everywhere, putting it behind x-taplo would limit it to taplo-aware schema that wanted this behavior:
elevator pitch
When working with a schema-constrained TOML file in the language server, and a
string
is encountered with"format": "uri-reference"
, offer nice LSP features like:motivation
Many TOML-based configuration files include references to other files and directories, some of which may not yet exist when the file is being written.
The
uri-reference
format for strings allows for precisely stating that the value is a POSIX-style relative path.alternatives
If the above features would be undesirable everywhere, putting it behind
x-taplo
would limit it totaplo
-aware schema that wanted this behavior: