Only some LSPs support server configuration schema? #575
-
Some of my installed servers show a "Server configuration schema" which seems like a nice way to discover how to configure a particular server. However, not seeing it under |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello! Yes, that's the situation currently. Most schemas originates from its corresponding VSCode extension, where it can be found in the These schemas are currently mapped in this gist, and are used in this script to generate it into version controlled Lua tables (which then is used by the |
Beta Was this translation helpful? Give feedback.
Hello! Yes, that's the situation currently. Most schemas originates from its corresponding VSCode extension, where it can be found in the
$.contributes.configuration
path of the extension's package.json manifest, for example this one. This is just a regular JSONSchema structure. Unfortunately, these schemas have a tendency to also incorporate settings that only apply to the VSCode client extension itself (and not the underlying, editor-agnostic, LSP server implementation). Some servers, for example pylsp, will provide a standalone schema definition, which is really nice as it's a fully editor-agnostic schema.These schemas are currently mapped in this gist, and are used in this script to …