diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-23 16:02:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-23 16:02:08 +0800 |
commit | 466874e8a8e360634833a07508fb48131530b704 (patch) | |
tree | b5ea2e570b2e2621658d44891b7949bc867fa247 /script/core/code-action.lua | |
parent | 5c9b1b467af1636ea21a9bd3d398e220790eea54 (diff) | |
download | lua-language-server-466874e8a8e360634833a07508fb48131530b704.zip |
cleanup
Diffstat (limited to 'script/core/code-action.lua')
-rw-r--r-- | script/core/code-action.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/code-action.lua b/script/core/code-action.lua index 2bc6ae50..40aef8fc 100644 --- a/script/core/code-action.lua +++ b/script/core/code-action.lua @@ -166,7 +166,7 @@ local function findSyntax(uri, diag) local ast = files.getState(uri) for _, err in ipairs(ast.errs) do if err.type:lower():gsub('_', '-') == diag.code then - local range = files.range(uri, err.start, err.finish) + local range = converter.packRange(uri, err.start, err.finish) if util.equal(range, diag.range) then return err end |