summaryrefslogtreecommitdiff
path: root/test/crossfile/document_symbol.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile/document_symbol.lua')
-rw-r--r--test/crossfile/document_symbol.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/crossfile/document_symbol.lua b/test/crossfile/document_symbol.lua
index 23bd6af3..50a7ff9e 100644
--- a/test/crossfile/document_symbol.lua
+++ b/test/crossfile/document_symbol.lua
@@ -65,8 +65,7 @@ rawset(_G, 'TEST', true)
function TEST(data)
local lsp = service()
- local ws = workspace(lsp, 'test')
- lsp.workspace = ws
+ local ws = lsp:addWorkspace('test', uric.encode(ROOT))
local targetUri = uric.encode(ROOT / fs.path(data[1].path))
local sourceUri = uric.encode(ROOT / fs.path(data[2].path))