From 9c0d90795580129572500141d872b8cdb9fab57b Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Fri, 21 Jul 2023 00:16:00 -0400 Subject: [PATCH] fixup! fix: correctly recover from crashed runtime --- lib/next_ls.ex | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/next_ls.ex b/lib/next_ls.ex index 8f0bc5a8..f902583d 100644 --- a/lib/next_ls.ex +++ b/lib/next_ls.ex @@ -87,8 +87,6 @@ defmodule NextLS do }, lsp ) do - dbg(workspace_folders) - workspace_folders = if caps.workspace.workspace_folders do workspace_folders @@ -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, @@ -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"))) @@ -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)}