mirror of
https://github.com/helix-editor/helix
synced 2026-04-22 12:43:58 +02:00
In the spec, the `symbolKind` field in `DocumentSymbolClientCapabilities` and `WorkspaceSymbolClientCapabilities` must be set with a `valueSet` containing all supported values. The spec does not default to all values defined in the spec in order to preserve backwards compatibility with older spec versions. Instead of using `None` we need to declare support for all symbols. In the symbol picker code we only use the `SymbolKind` type to print the symbol name. If we get an unknown `SymbolKind` we use the empty string and print nothing, so we satisfy the spec's requirement: > When [symbolKind] exists the client also guarantees that it will > handle values outside its set gracefully and falls back to a default > value when unknown. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||