Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-lsp-types/src/request.rs')
| -rw-r--r-- | helix-lsp-types/src/request.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/helix-lsp-types/src/request.rs b/helix-lsp-types/src/request.rs index 7502546b..e7493862 100644 --- a/helix-lsp-types/src/request.rs +++ b/helix-lsp-types/src/request.rs @@ -207,6 +207,9 @@ macro_rules! lsp_request { ("window/showDocument") => { $crate::request::ShowDocument }; + ("experimental/onEnter") => { + $crate::request::OnEnter + }; } /// The initialize request is sent as the first request from the client to the server. @@ -968,6 +971,15 @@ impl Request for TypeHierarchySubtypes { const METHOD: &'static str = "typeHierarchy/subtypes"; } +#[derive(Debug)] +pub enum OnEnter {} + +impl Request for OnEnter { + type Params = TextDocumentPositionParams; + type Result = Option<Vec<SnippetTextEdit>>; + const METHOD: &'static str = "experimental/onEnter"; +} + #[cfg(test)] mod test { use super::*; |