summaryrefslogtreecommitdiff
path: root/test.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-12 16:33:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-12 16:33:29 +0800
commitea2795520e68db8737bd6d0ab7a93d5e5a482346 (patch)
tree5f21f8392ad123497f52ab893e79cb3013879456 /test.lua
parent896a1affdeed8304688611674df88140a5cc180e (diff)
downloadlua-language-server-ea2795520e68db8737bd6d0ab7a93d5e5a482346.zip
cleanup
Diffstat (limited to 'test.lua')
-rw-r--r--test.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/test.lua b/test.lua
index 5af942ea..2a8d97c7 100644
--- a/test.lua
+++ b/test.lua
@@ -76,17 +76,21 @@ local function main()
local lclient = require 'lclient'
local ws = require 'workspace'
+ local furi = require 'file-uri'
--log.print = true
+ TESTURI = furi.encode('/unittest.lua')
+
---@async
lclient():start(function (client)
client:registerFakers()
+ local rootUri = furi.encode '/'
client:initialize {
- rootUri = '',
+ rootUri = rootUri,
}
- ws.awaitReady('')
+ ws.awaitReady(rootUri)
print('Loaded files in', os)
for uri in files.eachFile() do