From 837d02fcfdb3de4e4b440e5f184c04edba69d11f Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Tue, 27 Jun 2023 00:32:30 -0400 Subject: [PATCH] fix: properly close the symbol table on shutdown (#65) --- lib/next_ls.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/next_ls.ex b/lib/next_ls.ex index 5dc9072b..f4552b47 100644 --- a/lib/next_ls.ex +++ b/lib/next_ls.ex @@ -174,6 +174,8 @@ defmodule NextLS do end def handle_request(%Shutdown{}, lsp) do + SymbolTable.close(lsp.assigns.symbol_table) + {:reply, nil, assign(lsp, exit_code: 0)} end