summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-08-14 15:16:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-08-14 15:16:43 +0800
commit5ccedb1cf07a73a8e0eb4ace84b320c8a997dbbb (patch)
tree24aa7115913a56d8bba3575c1a92835ca4ca3108 /script
parent01a741f8416f074199303235eb533b8f3446e85b (diff)
downloadlua-language-server-5ccedb1cf07a73a8e0eb4ace84b320c8a997dbbb.zip
check `doc.field`
#1990
Diffstat (limited to 'script')
-rw-r--r--script/core/diagnostics/inject-field.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/diagnostics/inject-field.lua b/script/core/diagnostics/inject-field.lua
index 139b8636..570ca270 100644
--- a/script/core/diagnostics/inject-field.lua
+++ b/script/core/diagnostics/inject-field.lua
@@ -50,6 +50,9 @@ return function (uri, callback)
if def.type == 'doc.type.field' then
return
end
+ if def.type == 'doc.field' then
+ return
+ end
end
local howToFix = lang.script('DIAG_INJECT_FIELD_FIX_CLASS', {