Skip to content

Commit

Permalink
fix: add LSP var (#98)
Browse files Browse the repository at this point in the history
Adds a dedicated environment variable to indicate to the runtime that
you are in the Next LS runtime.

Should help address #97 as a work around.
  • Loading branch information
mhanberg authored Jul 7, 2023
1 parent edf819a commit d8554a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/next_ls/runtime.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ defmodule NextLS.Runtime do
:stream,
cd: working_dir,
env: [
{~c"LSP", ~c"nextls"},
{~c"NEXTLS_PARENT_PID", :erlang.term_to_binary(parent) |> Base.encode64() |> String.to_charlist()},
{~c"MIX_ENV", ~c"dev"},
{~c"MIX_BUILD_ROOT", ~c".elixir-tools/_build"}
Expand Down

0 comments on commit d8554a8

Please sign in to comment.