Skip to content

Commit 4650300

Browse files
fix: shutdown when the transport closes (#42)
This ensures that the LSP will shut down if the transport is closed, eliminating zombie processes that are left when an explicit "shutdown" message isn't sent to the LSP.
1 parent 147fe96 commit 4650300

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/gen_lsp/buffer.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ defmodule GenLSP.Buffer do
127127
fn buffer ->
128128
case comm.read(comm_data, buffer) do
129129
:eof ->
130+
System.stop()
130131
{:halt, :ok}
131132

132133
{:error, reason} ->

0 commit comments

Comments
 (0)