summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-04-17 16:06:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-04-17 16:06:19 +0800
commit87aa5816903444cd192b752a72bc3ca86e70fb63 (patch)
tree621b7c9df4d98ef86f6a5e172768767a48cac1da /script
parentf208589b5c840410dc2ceca057ca3ab4024ea4a1 (diff)
downloadlua-language-server-87aa5816903444cd192b752a72bc3ca86e70fb63.zip
修复测试
Diffstat (limited to 'script')
-rw-r--r--script/filewatch.lua2
-rw-r--r--script/library.lua2
-rw-r--r--script/meta/bee/filesystem.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/script/filewatch.lua b/script/filewatch.lua
index d4850ca1..6520afe6 100644
--- a/script/filewatch.lua
+++ b/script/filewatch.lua
@@ -13,7 +13,7 @@ local function isExists(filename)
if not suc or not exists then
return false
end
- if plat.OS ~= 'Windows' then
+ if plat.os ~= 'windows' then
return true
end
local res = fs.fullpath(path)
diff --git a/script/library.lua b/script/library.lua
index 4446797a..2e925e8d 100644
--- a/script/library.lua
+++ b/script/library.lua
@@ -365,7 +365,7 @@ local function loadSingle3rdConfig(libraryDir)
end
if cfg.files then
for i, filename in ipairs(cfg.files) do
- if plat.OS == 'Windows' then
+ if plat.os == 'windows' then
filename = filename:gsub('/', '\\')
else
filename = filename:gsub('\\', '/')
diff --git a/script/meta/bee/filesystem.lua b/script/meta/bee/filesystem.lua
index c4267b97..0c7e41a8 100644
--- a/script/meta/bee/filesystem.lua
+++ b/script/meta/bee/filesystem.lua
@@ -24,7 +24,7 @@ end
function fsPath:stem()
end
----@return fs.path
+---@return string
function fsPath:extension()
end