Replies: 1 comment 1 reply
-
Just add this, don't worry about duplicating stuff from the Helix config: [[language-server.vscode-json-language-server.config.json.schemas]]
fileMatch = ["tsconfig.json", "tsconfig.*.json"]
url = "https://json.schemastore.org/tsconfig.json"
[[language-server.vscode-json-language-server.config.json.schemas]]
fileMatch = [ "package.json" ]
url = "https://json.schemastore.org/package.json" I have a new question, can this be written in a better way to avoid all the duplication? I am using Biome to format, it copies Prettier and is much faster: [language-server]
biome = { command = "biome", args = ["lsp-proxy"] }
[[language]]
name = "json"
language-servers = [ { name = "vscode-json-language-server", except-features = [ "format" ] }, "biome"] PS This might be of interest: https://github.com/b0o/SchemaStore.nvim/blob/main/lua/schemastore/catalog.lua |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to configure the
vscode-json-language-server
to use JSON schema files.We should be able to define these schemas so I can get autocomplete / validation for json properties.
Vscode JSON ls Config Docs
Here is my current attempt at getting it to work.
Beta Was this translation helpful? Give feedback.
All reactions