summaryrefslogtreecommitdiff
path: root/test/tclient/tests
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-18 17:02:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-18 17:02:45 +0800
commit9e8901c5d09b4537a5741fd20dc5cc77c5a23dce (patch)
treee51ba03f013fcb40b994737f48ed60f10622b1ce /test/tclient/tests
parentb7fdf179a9015e3bef83f89c5a0811f1a67ef4d0 (diff)
downloadlua-language-server-9e8901c5d09b4537a5741fd20dc5cc77c5a23dce.zip
`FIX` library files not recognized correctly
Diffstat (limited to 'test/tclient/tests')
-rw-r--r--test/tclient/tests/library-ignore-limit.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/tclient/tests/library-ignore-limit.lua b/test/tclient/tests/library-ignore-limit.lua
index 66d6cc09..baf42978 100644
--- a/test/tclient/tests/library-ignore-limit.lua
+++ b/test/tclient/tests/library-ignore-limit.lua
@@ -3,6 +3,7 @@ local util = require 'utility'
local ws = require 'workspace'
local files = require 'files'
local furi = require 'file-uri'
+local fs = require 'bee.filesystem'
local libraryPath = LOGPATH .. '/large-file-library'
local largeFilePath = LOGPATH .. '/large-file-library/large-file.lua'
@@ -13,11 +14,14 @@ lclient():start(function (client)
client:register('workspace/configuration', function ()
return {
- ['Lua.workspace.library'] = { libraryPath }
+ {
+ ['workspace.library'] = { libraryPath }
+ },
}
end)
- util.saveFile(largeFilePath, string.rep('--this is a large file\n', 20000))
+ fs.create_directories(fs.path(libraryPath))
+ util.saveFile(largeFilePath, string.rep('--this is a large file\n', 100000))
client:initialize()