summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-03-15 16:58:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-03-15 16:58:29 +0800
commit8ab769ceb7d66dafdf426f5e30b0d91e4b89275a (patch)
tree1874f7e1062f1fe8886f0e4b40e5767bb9e00dc4 /script
parent5623a84ea9a2b27dd7121f88dd995389c702eac1 (diff)
downloadlua-language-server-8ab769ceb7d66dafdf426f5e30b0d91e4b89275a.zip
fix error in filewatch
Diffstat (limited to 'script')
-rw-r--r--script/filewatch.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/filewatch.lua b/script/filewatch.lua
index a8fa925f..d4850ca1 100644
--- a/script/filewatch.lua
+++ b/script/filewatch.lua
@@ -16,8 +16,8 @@ local function isExists(filename)
if plat.OS ~= 'Windows' then
return true
end
- local suc, res = pcall(fs.fullpath, path)
- if not suc then
+ local res = fs.fullpath(path)
+ if not res then
return false
end
if res :string():gsub('^%w+:', string.lower)