Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Jan 8, 2024
1 parent a53d6aa commit 60bde89
Show file tree
Hide file tree
Showing 5 changed files with 354 additions and 254 deletions.
5 changes: 4 additions & 1 deletion apps/language_server/lib/language_server/build.ex
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,12 @@ defmodule ElixirLS.LanguageServer.Build do
# see https://github.com/elixir-lang/elixir/issues/13001
for app <- mix_project_apps do
purge_app(app, false)

if reload? do
case Application.load(app) do
:ok -> :ok
:ok ->
:ok

{:error, reason} ->
Logger.warning("Application #{app} failed to load: #{inspect(reason)}")
end
Expand Down
30 changes: 17 additions & 13 deletions apps/language_server/lib/language_server/providers/completion.ex
Original file line number Diff line number Diff line change
Expand Up @@ -174,20 +174,24 @@ defmodule ElixirLS.LanguageServer.Providers.Completion do

required_alias = Keyword.get(options, :auto_insert_required_alias, true)
parent = self()
pid = spawn(fn ->
for _i <- 1..100 do
receive do
:done -> :ok
after
1000 ->
case Process.info(parent, :current_stacktrace) do
{:current_stacktrace, stacktrace} ->
dbg(stacktrace)
nil -> :ok
end

pid =
spawn(fn ->
for _i <- 1..100 do
receive do
:done -> :ok
after
1000 ->
case Process.info(parent, :current_stacktrace) do
{:current_stacktrace, stacktrace} ->
dbg(stacktrace)

nil ->
:ok
end
end
end
end
end)
end)

items =
ElixirSense.suggestions(text, line, character,
Expand Down
Loading

0 comments on commit 60bde89

Please sign in to comment.