Skip to content

Commit

Permalink
fixup! fix: correctly recover from crashed runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jul 21, 2023
1 parent ac89371 commit 2dd230a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/next_ls.ex
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ defmodule NextLS do
},
lsp
) do
dbg(workspace_folders)

workspace_folders =
if caps.workspace.workspace_folders do
workspace_folders
Expand Down Expand Up @@ -285,8 +283,6 @@ defmodule NextLS do
progress_start(lsp, token, "Initializing NextLS runtime for folder #{name}...")
parent = self()

dbg(name)

{:ok, runtime} =
DynamicSupervisor.start_child(
lsp.assigns.dynamic_supervisor,
Expand Down Expand Up @@ -350,8 +346,6 @@ defmodule NextLS do
end
end)

dbg(refresh_refs)

{:noreply,
lsp
|> then(&put_in(&1.assigns.documents[uri], String.split(text, "\n")))
Expand Down Expand Up @@ -426,8 +420,6 @@ defmodule NextLS do
token = token()
progress_start(lsp, token, "Compiling...")

dbg(name)

task =
Task.Supervisor.async_nolink(lsp.assigns.task_supervisor, fn ->
{name, Runtime.compile(runtime_pid)}
Expand Down

0 comments on commit 2dd230a

Please sign in to comment.