File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 99//! dispatching them to the appropriate server methods.
1010
1111use lsp_server:: { Connection , ExtractError , Request , RequestId } ;
12- use lsp_types:: {
13- notification:: { self , Notification } ,
14- request, InitializeParams ,
15- } ;
12+ use lsp_types:: { notification, request, InitializeParams } ;
1613use std:: { cell:: RefCell , rc:: Rc } ;
1714
1815use crate :: rpc_channel:: RpcChannel ;
@@ -96,11 +93,6 @@ impl ConnectionRpcChannel {
9693 info ! ( "Language server initialized, waiting for messages ..." ) ;
9794 while let Ok ( message) = self . connection . receiver . recv ( ) {
9895 trace ! ( "Received message: {:?}" , message) ;
99- if let lsp_server:: Message :: Notification ( notification) = & message {
100- if notification. method == notification:: Exit :: METHOD {
101- return ;
102- }
103- }
10496 match message {
10597 lsp_server:: Message :: Request ( request) => self . handle_request ( & mut server, request) ,
10698 lsp_server:: Message :: Notification ( notification) => {
You can’t perform that action at this time.
0 commit comments