Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit d9fdb2d

Browse files
committed
fixup! feat: basic symbol table
1 parent 681c579 commit d9fdb2d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/next_ls.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@ defmodule NextLS do
6363
extension_registry = Keyword.fetch!(args, :extension_registry)
6464
extensions = Keyword.get(args, :extensions, [NextLS.ElixirExtension])
6565
cache = Keyword.fetch!(args, :cache)
66+
symbol_table = Keyword.fetch!(args, :symbol_table)
6667

6768
{:ok,
6869
assign(lsp,
6970
exit_code: 1,
7071
documents: %{},
7172
refresh_refs: %{},
7273
cache: cache,
74+
symbol_table: symbol_table,
7375
task_supervisor: task_supervisor,
7476
dynamic_supervisor: dynamic_supervisor,
7577
extension_registry: extension_registry,

test/next_ls/symbol_table_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defmodule NextLS.SymbolTableTest do
1616
assert :sys.get_state(pid).table == :symbol_table
1717
end
1818

19-
test "builds the symbol table", %{dir: dir, pid: pid} do
19+
test "builds the symbol table", %{pid: pid} do
2020
symbols = symbols()
2121

2222
SymbolTable.put_symbols(pid, symbols)

test/next_ls_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule NextLSTest do
1515
start_supervised!({Registry, [keys: :unique, name: Registry.NextLSTest]})
1616
extensions = [NextLS.ElixirExtension]
1717
cache = start_supervised!(NextLS.DiagnosticCache)
18-
symbol_table = start_supervised!(NextLS.SymbolTable)
18+
symbol_table = start_supervised!({NextLS.SymbolTable, [path: tmp_dir]})
1919

2020
server =
2121
server(NextLS,

0 commit comments

Comments
 (0)