Skip to content

Commit 55fb3f3

Browse files
committed
Assign ELX_STDLIB_PATH as the stdlib_src_dir
If the setting option `stdlibSrcDir` is not specified, then read the ENV variable `ELX_STDLIB_PATH` as the stdlib_src_dir
1 parent 86ab1c6 commit 55fb3f3

File tree

1 file changed

+3
-1
lines changed
  • apps/language_server/lib/language_server

1 file changed

+3
-1
lines changed

apps/language_server/lib/language_server/server.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,9 @@ defmodule ElixirLS.LanguageServer.Server do
18641864
mix_target = Map.get(settings, "mixTarget")
18651865
project_dir = Map.get(settings, "projectDir")
18661866
additional_watched_extensions = Map.get(settings, "additionalWatchedExtensions", [])
1867-
stdlib_src_dir = to_string(Map.get(settings, "stdlibSrcDir", ""))
1867+
1868+
stdlib_src_dir =
1869+
to_string(Map.get(settings, "stdlibSrcDir", System.get_env("ELX_STDLIB_PATH", "")))
18681870

18691871
if stdlib_src_dir != "" do
18701872
Application.put_env(:language_server, :elixir_src, stdlib_src_dir)

0 commit comments

Comments
 (0)