Skip to content

Commit f8389bf

Browse files
committed
Handle LSP shutdown request
These lines in the Server loop discard any messages with the shutdown method. The Server can handle and correctly respond to shutdown requests, though, so there's no need to discard the message.
1 parent ccf23c6 commit f8389bf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

crates/lsp-async-stub/src/listen.rs

-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ impl<W: Clone + 'static> Server<W> {
6464
drop(output);
6565
drop(input);
6666
break;
67-
} else if msg.method.as_ref().map(|m| m == "shutdown").unwrap_or(false) {
68-
continue;
6967
}
7068

7169
let task_fut = self.handle_message(

0 commit comments

Comments
 (0)