diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-16 17:30:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-16 17:30:37 +0800 |
commit | ab5e1b39ec6eedf3cc47c845fe0544da48e58829 (patch) | |
tree | 42fa33ae3a61c56055486b1255c976ec4a6bbb38 /script/vm | |
parent | 8b0d3827faf0cdc967e52ddfbe043c07c0dbe6a2 (diff) | |
download | lua-language-server-ab5e1b39ec6eedf3cc47c845fe0544da48e58829.zip |
clean up
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/getLinks.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/getLinks.lua b/script/vm/getLinks.lua index b245bdaa..77d869f8 100644 --- a/script/vm/getLinks.lua +++ b/script/vm/getLinks.lua @@ -2,9 +2,9 @@ local guide = require 'parser.guide' ---@class vm local vm = require 'vm.vm' local files = require 'files' +local rpath = require 'workspace.require-path' local function getFileLinks(uri) - local ws = require 'workspace' local links = {} local state = files.getState(uri) if not state then @@ -20,7 +20,7 @@ local function getFileLinks(uri) if not args or not args[1] or args[1].type ~= 'string' then return end - local uris = ws.findUrisByRequirePath(args[1][1]) + local uris = rpath.findUrisByRequirePath(args[1][1]) for _, u in ipairs(uris) do if not links[u] then links[u] = {} |