Skip to content

Commit

Permalink
add support for disabling automatic builds trough a config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanspagh committed Dec 22, 2020
1 parent a696d94 commit ec20c6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/language_server/lib/language_server/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,9 @@ defmodule ElixirLS.LanguageServer.Server do
# Build

defp trigger_build(state) do
if build_enabled?(state) and not state.build_running? do
build_automatically = Map.get(state.settings || %{}, "autoBuild", true)

if build_enabled?(state) and build_automatically and not state.build_running? do
fetch_deps? = Map.get(state.settings || %{}, "fetchDeps", true)

{_pid, build_ref} =
Expand Down

0 comments on commit ec20c6c

Please sign in to comment.