aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorTim Pope <code@tpope.net>2026-02-15 11:37:24 -0500
committerGitHub <noreply@github.com>2026-02-15 11:37:24 -0500
commita1895f024a4cc9bb4389deae2a6686a34d3329f7 (patch)
treef35e03d9f837e4d3f98f62e673e96c0e36a36598 /test/functional/vimscript/executable_spec.lua
parent5c4b64aae59d162cf88d78760f9eb98699fb98f9 (diff)
downloadrneovim-a1895f024a4cc9bb4389deae2a6686a34d3329f7.tar.gz
rneovim-a1895f024a4cc9bb4389deae2a6686a34d3329f7.tar.bz2
rneovim-a1895f024a4cc9bb4389deae2a6686a34d3329f7.zip
fix(lsp): support workspace/configuation with no section #27510
The [spec for `workspace/configuration`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_configuration) marks the `section` property of each item in `items` optional. Therefore, I believe it violates the spec to skip over items without a section, because then the length of the results won't match the length of a valid `items` input. The spec does not elaborate on _what_ to return in this case, but I don't think it would be controversial to say that returning the full configuration, as done for an empty string, is the most natural interpretation. That empty string case, by the way, was initially [added in response](https://github.com/neovim/nvim-lspconfig/commit/5da124fc82c24592abc3a97c68363bb4e85e3c85) to a real world implementation requesting it. I don't have a similar real world implementation to point to for the omitted `section`, but I would note that `getConfiguration()` from `vscode-languageserver-node` [defaults to a request with no section](https://github.com/Microsoft/vscode-languageserver-node/blob/d859bb14d1bcb3923eecaf0ef587e55c48502ccc/server/src/common/configuration.ts#L24-L26) when called with no arguments. I surmise that this is intended as a way to retrieve the full configuration.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions