Skip to content

Commit

Permalink
also unload the app when resetting config
Browse files Browse the repository at this point in the history
Fixes #1083
  • Loading branch information
lukaszsamson committed May 4, 2024
1 parent 92f3312 commit d17ee89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/language_server/lib/language_server/build.ex
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ defmodule ElixirLS.LanguageServer.Build do
apps = Application.loaded_applications() |> Enum.map(&elem(&1, 0))

for app <- apps -- :persistent_term.get(:language_server_required_apps) do
purge_app(app, false)
# workaround for https://github.com/elixir-lang/elixir/issues/13246
for {key, _} <- :application.get_all_env(app) do
:application.unset_env(app, key, persistent: true)
Expand Down

0 comments on commit d17ee89

Please sign in to comment.