diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-13 19:23:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-13 19:23:09 +0800 |
commit | b22099c12e001bf81a6d1cf47655e6e815d04391 (patch) | |
tree | 79be562401816f70c831003ab6f7216b4c21350e /script-beta/core/hover | |
parent | 2dacca7b19ba0162975c7f2da2dd5e9381b4a73c (diff) | |
download | lua-language-server-b22099c12e001bf81a6d1cf47655e6e815d04391.zip |
支持自动完成 dofile
Diffstat (limited to 'script-beta/core/hover')
-rw-r--r-- | script-beta/core/hover/description.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/core/hover/description.lua b/script-beta/core/hover/description.lua index 277ea9c8..9a0bd83a 100644 --- a/script-beta/core/hover/description.lua +++ b/script-beta/core/hover/description.lua @@ -19,10 +19,10 @@ local function asString(source) return end if lib.name == 'require' then - result = ws.findUrisByRequirePath(literal, true) + result = ws.findUrisByRequirePath(literal) elseif lib.name == 'dofile' or lib.name == 'loadfile' then - result = ws.findUrisByFilePath(literal, true) + result = ws.findUrisByFilePath(literal) end if result and #result > 0 then for i, uri in ipairs(result) do |