Skip to content

Commit

Permalink
fixup! feat(completions): imports, aliases, module attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Apr 11, 2024
1 parent cf05598 commit a71248f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/next_ls/runtime.ex
Original file line number Diff line number Diff line change
Expand Up @@ -384,16 +384,16 @@ defmodule NextLS.Runtime do
{:stop, {:shutdown, :nodedown}, state}
end

# def handle_info(
# {port, {:data, "** (Mix) Can't continue due to errors on dependencies" <> _ = data}},
# %{port: port} = state
# ) do
# NextLS.Logger.log(state.logger, data)
# dbg(data)
#
# state.on_initialized.({:error, :deps})
# {:noreply, state}
# end
def handle_info(
{port, {:data, "** (Mix) Can't continue due to errors on dependencies" <> _ = data}},
%{port: port} = state
) do
NextLS.Logger.log(state.logger, data)

Port.close(port)
state.on_initialized.({:error, :deps})
{:stop, {:shutdown, :unchecked_dependencies}, state}
end

def handle_info({port, {:data, "Unchecked dependencies" <> _ = data}}, %{port: port} = state) do
NextLS.Logger.log(state.logger, data)
Expand Down

0 comments on commit a71248f

Please sign in to comment.