Skip to content

fix handling of shutdown request and exit notification#408

Merged
Schottkyc137 merged 1 commit intoVHDL-LS:masterfrom
Gaweringo:lsp-shutdown
Oct 19, 2025
Merged

fix handling of shutdown request and exit notification#408
Schottkyc137 merged 1 commit intoVHDL-LS:masterfrom
Gaweringo:lsp-shutdown

Conversation

@Gaweringo
Copy link
Copy Markdown
Contributor

vhdl_ls did not quit/exit after receiving the shutdown request and exit notification, because the lsp_server handle_shutdown request already waits for the exit notification and only returns true, if it is received.

With the old setup, the handler for the exit notification was never called, because handle_shutdown consumed the notification.

fixes #142

vhdl_ls did not quit/exit after receiving the shutdown request and exit
notification, because the lsp_server handle_shutdown request already
waits for the exit notification and only returns true, if it is
received. With the old setup the handler for the exit notification was
never called, because handle_shutdown consumed the notification.

fixes VHDL-LS#142
@Schottkyc137 Schottkyc137 merged commit e6b4456 into VHDL-LS:master Oct 19, 2025
10 checks passed
@Schottkyc137
Copy link
Copy Markdown
Contributor

Thanks for the effort! Let's hope this fixes the issue once and for all ;)

@pidgeon777
Copy link
Copy Markdown

I confirm it appears to be finally fixed now. Tested in Neovim. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LSP Doesn't Properly shut down when receiving the shutdown and exit commands from client

3 participants