Unnamed repository; edit this file 'description' to name the repository.
add sticky context
| -rw-r--r-- | helix-lsp-types/src/document_symbols.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-lsp-types/src/document_symbols.rs b/helix-lsp-types/src/document_symbols.rs index 3f482e16..a88e7376 100644 --- a/helix-lsp-types/src/document_symbols.rs +++ b/helix-lsp-types/src/document_symbols.rs @@ -98,6 +98,8 @@ pub struct DocumentSymbol { /// The range that should be selected and revealed when this symbol is being picked, e.g the name of a function. /// Must be contained by the the `range`. pub selection_range: Range, + /// For sticky context. Default to selection_range. + pub sticky_range: Option<Range>, /// Children of this symbol, e.g. properties of a class. #[serde(skip_serializing_if = "Option::is_none")] pub children: Option<Vec<DocumentSymbol>>, |