Skip to content

Commit 33bb850

Browse files
authored
fix: don't convert to_lsp twice in server specific messages (#190)
1 parent 46713a1 commit 33bb850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/expert/lib/expert.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ defmodule Expert do
7676
with {:ok, request} <- Expert.Protocol.Convert.to_native(request),
7777
{:ok, response, state} <- apply_to_state(assigns(lsp).state, request),
7878
{:ok, response} <- Expert.Protocol.Convert.to_lsp(response) do
79-
{:reply, Expert.Protocol.Convert.to_lsp(response), assign(lsp, state: state)}
79+
{:reply, response, assign(lsp, state: state)}
8080
else
8181
error ->
8282
message = "Failed to handle #{mod}, #{inspect(error)}"

0 commit comments

Comments
 (0)