summaryrefslogtreecommitdiff
path: root/test/crossfile/hover.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile/hover.lua')
-rw-r--r--test/crossfile/hover.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index f2560673..1472f1b6 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -56,9 +56,7 @@ end
function TEST(data)
local lsp = service()
- local ws = workspace(lsp, 'test')
- lsp.workspace = ws
- ws.root = ROOT
+ local ws = lsp:addWorkspace('test', uric.encode(ROOT))
local targetScript = data[1].content
local targetUri = uric.encode(ROOT / fs.path(data[1].path))