diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-22 17:20:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-22 17:20:12 +0800 |
commit | 440e301d144f4fe85785f27d2fa6af2d57688930 (patch) | |
tree | 5cdb7bee8dc650d87b8ae610afc61cf10c79618d | |
parent | bd4031bc7dd9e87d007ed5dfedae48a0313a91ff (diff) | |
download | lua-language-server-440e301d144f4fe85785f27d2fa6af2d57688930.zip |
修正报错
-rw-r--r-- | script-beta/core/code-action.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script-beta/core/code-action.lua b/script-beta/core/code-action.lua index 8dfc8ae2..0c77ea4f 100644 --- a/script-beta/core/code-action.lua +++ b/script-beta/core/code-action.lua @@ -114,13 +114,13 @@ local function findSyntax(uri, diag) return nil end -local function solveSyntaxByChangeVersion(err, results) +local function solveSyntaxByChangeVersion(uri, err, results) if type(err.version) == 'table' then for _, version in ipairs(err.version) do - changeVersion(version, results) + changeVersion(uri, version, results) end else - changeVersion(err.version, results) + changeVersion(uri, err.version, results) end end @@ -170,7 +170,7 @@ local function solveSyntax(uri, diag, results) return end if err.version then - solveSyntaxByChangeVersion(err, results) + solveSyntaxByChangeVersion(uri, err, results) end if err.type == 'ACTION_AFTER_BREAK' or err.type == 'ACTION_AFTER_RETURN' then solveSyntaxByAddDoEnd(uri, err, results) |