diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-10-12 16:33:29 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-10-12 16:33:29 +0800 |
commit | ea2795520e68db8737bd6d0ab7a93d5e5a482346 (patch) | |
tree | 5f21f8392ad123497f52ab893e79cb3013879456 /test.lua | |
parent | 896a1affdeed8304688611674df88140a5cc180e (diff) | |
download | lua-language-server-ea2795520e68db8737bd6d0ab7a93d5e5a482346.zip |
cleanup
Diffstat (limited to 'test.lua')
-rw-r--r-- | test.lua | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |