We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d4fb57 commit c548f4cCopy full SHA for c548f4c
lib/gen_lsp/buffer.ex
@@ -127,7 +127,10 @@ defmodule GenLSP.Buffer do
127
fn buffer ->
128
case comm.read(comm_data, buffer) do
129
:eof ->
130
- System.stop()
+ if Application.get_env(:gen_lsp, :exit_on_end, true) do
131
+ System.stop()
132
+ end
133
+
134
{:halt, :ok}
135
136
{:error, reason} ->
test/test_helper.exs
@@ -1,3 +1,3 @@
1
-Application.put_env(:gen_lsp, :wire_protocol, GenLSP.Test.Wire)
+Application.put_env(:gen_lsp, :exit_on_end, false)
2
3
ExUnit.start(capture_log: true)
0 commit comments