diff options
Diffstat (limited to 'crates/gen_lsp_server/src/lib.rs')
-rw-r--r-- | crates/gen_lsp_server/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/gen_lsp_server/src/lib.rs b/crates/gen_lsp_server/src/lib.rs index b20652928..16ac799ac 100644 --- a/crates/gen_lsp_server/src/lib.rs +++ b/crates/gen_lsp_server/src/lib.rs | |||
@@ -78,10 +78,10 @@ pub use crate::{ | |||
78 | }; | 78 | }; |
79 | 79 | ||
80 | /// Main entry point: runs the server from initialization to shutdown. | 80 | /// Main entry point: runs the server from initialization to shutdown. |
81 | /// To attach server to standard input/output streams, use `stdio_transport` | 81 | /// To attach server to standard input/output streams, use the `stdio_transport` |
82 | /// function to create corresponding `sender` and `receiver` pair. | 82 | /// function to create corresponding `sender` and `receiver` pair. |
83 | /// | 83 | /// |
84 | ///`server` should use `handle_shutdown` function to handle the `Shutdown` | 84 | /// `server` should use the `handle_shutdown` function to handle the `Shutdown` |
85 | /// request. | 85 | /// request. |
86 | pub fn run_server( | 86 | pub fn run_server( |
87 | caps: ServerCapabilities, | 87 | caps: ServerCapabilities, |
@@ -104,7 +104,7 @@ pub fn run_server( | |||
104 | Ok(()) | 104 | Ok(()) |
105 | } | 105 | } |
106 | 106 | ||
107 | /// if `req` is `Shutdown`, respond to it and return `None`, otherwise return `Some(req)` | 107 | /// If `req` is `Shutdown`, respond to it and return `None`, otherwise return `Some(req)` |
108 | pub fn handle_shutdown(req: RawRequest, sender: &Sender<RawMessage>) -> Option<RawRequest> { | 108 | pub fn handle_shutdown(req: RawRequest, sender: &Sender<RawMessage>) -> Option<RawRequest> { |
109 | match req.cast::<Shutdown>() { | 109 | match req.cast::<Shutdown>() { |
110 | Ok((id, ())) => { | 110 | Ok((id, ())) => { |