Files
Tim Pope a1895f024a 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](5da124fc82)
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](d859bb14d1/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.
2026-02-15 11:37:24 -05:00
..
2024-01-03 02:09:29 +01:00
2024-01-03 02:09:29 +01:00
2016-10-28 14:33:13 +02:00
2017-03-15 15:01:06 +01:00
2017-05-01 22:13:23 +02:00
2017-11-07 23:54:31 +01:00
2018-06-11 00:46:49 +02:00
2018-12-31 01:06:17 +01:00
2019-09-15 17:28:42 -07:00
2021-07-02 17:54:29 +02:00
2021-11-30 18:20:42 +01:00
2022-04-15 13:38:44 +02:00
2022-09-30 17:15:13 +02:00
2023-04-07 13:26:29 +02:00
2024-05-16 14:34:32 +02:00
2025-03-26 14:48:09 +01:00
2016-11-15 05:01:25 +01:00
2025-12-08 01:43:02 -05:00
2023-11-12 21:26:39 +01:00