Skip to content

Commit d8554a8

Browse files
authored
fix: add LSP var (#98)
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.
1 parent edf819a commit d8554a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/next_ls/runtime.ex

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ defmodule NextLS.Runtime do
5757
:stream,
5858
cd: working_dir,
5959
env: [
60+
{~c"LSP", ~c"nextls"},
6061
{~c"NEXTLS_PARENT_PID", :erlang.term_to_binary(parent) |> Base.encode64() |> String.to_charlist()},
6162
{~c"MIX_ENV", ~c"dev"},
6263
{~c"MIX_BUILD_ROOT", ~c".elixir-tools/_build"}

0 commit comments

Comments
 (0)