Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-lsp-types/src/lib.rs')
| -rw-r--r-- | helix-lsp-types/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-lsp-types/src/lib.rs b/helix-lsp-types/src/lib.rs index fd668de5..a1a87e1b 100644 --- a/helix-lsp-types/src/lib.rs +++ b/helix-lsp-types/src/lib.rs @@ -1273,6 +1273,12 @@ impl SymbolKind { } } +impl SymbolKind { + pub fn all() -> Vec<Self> { + (1..=26).map(Self).collect() + } +} + /// Specific capabilities for the `SymbolKind` in the `workspace/symbol` request. #[derive(Debug, Eq, PartialEq, Clone, Default, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] |