diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-22 15:24:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-22 15:24:40 +0800 |
commit | d09c74c69306fa5b3deb0db68552c9223b6d76df (patch) | |
tree | cbb3df36e3fb9cd0a63b643a991a4976c22f9007 /script/core/definition.lua | |
parent | b30e4ff8f33b504880066faea7143342e9aea4f2 (diff) | |
download | lua-language-server-d09c74c69306fa5b3deb0db68552c9223b6d76df.zip |
refactor `require-path`
Diffstat (limited to 'script/core/definition.lua')
-rw-r--r-- | script/core/definition.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/definition.lua b/script/core/definition.lua index 09a5fcf1..866e8f84 100644 --- a/script/core/definition.lua +++ b/script/core/definition.lua @@ -77,7 +77,7 @@ local function checkRequire(source, offset) return nil end if libName == 'require' then - return rpath.findUrisByRequirePath(guide.getUri(source), literal) + return rpath.findUrisByRequireName(guide.getUri(source), literal) elseif libName == 'dofile' or libName == 'loadfile' then return workspace.findUrisByFilePath(literal) |