Skip to content

Commit

Permalink
fix: properly close the symbol table on shutdown (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jun 27, 2023
1 parent 2bd8d59 commit 837d02f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/next_ls.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 837d02f

Please sign in to comment.