Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions vhdl_ls/src/stdio_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ impl ConnectionRpcChannel {
match message {
lsp_server::Message::Request(request) => {
match self.connection.handle_shutdown(&request) {
Ok(shutdown) => {
if shutdown {
Ok(should_exit) => {
if should_exit {
server.shutdown_server();
server.exit_notification();
} else {
self.handle_request(&mut server, request)
}
Expand Down Expand Up @@ -272,11 +273,6 @@ impl ConnectionRpcChannel {
Ok(params) => return server.workspace_did_change_watched_files(&params),
Err(notification) => notification,
};
// exit
let notification = match extract::<notification::Exit>(notification) {
Ok(_params) => return server.exit_notification(),
Err(notification) => notification,
};

if !notification.method.starts_with("$/") {
debug!("Unhandled notification: {notification:?}");
Expand Down
Loading