File tree 1 file changed +9
-2
lines changed
lib/gen_lsp/communication
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ defmodule GenLSP.Communication.Stdio do
5
5
This is the default adapter, and is the communication channel that most LSP clients expect to be able to use.
6
6
"""
7
7
8
- require Logger
9
-
10
8
@ behaviour GenLSP.Communication.Adapter
11
9
@ separator "\r \n \r \n "
12
10
@@ -43,6 +41,9 @@ defmodule GenLSP.Communication.Stdio do
43
41
:eof ->
44
42
:eof
45
43
44
+ { :error , error } ->
45
+ { :error , error }
46
+
46
47
headers ->
47
48
body =
48
49
headers
@@ -59,6 +60,9 @@ defmodule GenLSP.Communication.Stdio do
59
60
:eof ->
60
61
:eof
61
62
63
+ { :error , error } ->
64
+ { :error , error }
65
+
62
66
line ->
63
67
line = String . trim ( line )
64
68
@@ -81,6 +85,9 @@ defmodule GenLSP.Communication.Stdio do
81
85
:eof ->
82
86
:eof
83
87
88
+ { :error , error } ->
89
+ { :error , error }
90
+
84
91
payload ->
85
92
payload
86
93
end
You can’t perform that action at this time.
0 commit comments