diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-07-21 15:13:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-07-21 15:13:30 +0800 |
commit | 7c636357622b7b20e9729c902b5682a05995b911 (patch) | |
tree | ae04496840f3c0b449cf11c8fc0f71c6bf08ae03 /script/core | |
parent | 998927a2c8f33dabf8b079657f111a03f37570af (diff) | |
download | lua-language-server-7c636357622b7b20e9729c902b5682a05995b911.zip |
fix missing fields
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/code-lens.lua | 3 | ||||
-rw-r--r-- | script/core/completion/completion.lua | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/script/core/code-lens.lua b/script/core/code-lens.lua index ed95ea6a..bc39ec86 100644 --- a/script/core/code-lens.lua +++ b/script/core/code-lens.lua @@ -6,7 +6,7 @@ local getRef = require 'core.reference' local lang = require 'language' ---@class parser.state ----@field package _codeLens codeLens +---@field package _codeLens? codeLens ---@class codeLens.resolving ---@field mode 'reference' @@ -14,7 +14,6 @@ local lang = require 'language' ---@class codeLens.result ---@field position integer ----@field uri uri ---@field id integer ---@class codeLens diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index 4178293b..15bc0fcb 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -1614,6 +1614,7 @@ local function tryCallArg(state, position, results) if arg and arg.type == 'function' then return end + ---@diagnostic disable-next-line: missing-fields local node = vm.compileCallArg({ type = 'dummyarg' }, call, argIndex) if not node then return |