From fecdb2af1ceba45021486d1e28d8e11f490d2b36 Mon Sep 17 00:00:00 2001 From: sumneko Date: Sun, 23 Jan 2022 02:29:34 +0800 Subject: fix --- script/core/diagnostics/undefined-doc-name.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/core/diagnostics/undefined-doc-name.lua') diff --git a/script/core/diagnostics/undefined-doc-name.lua b/script/core/diagnostics/undefined-doc-name.lua index 91d4b90e..a8c75c3c 100644 --- a/script/core/diagnostics/undefined-doc-name.lua +++ b/script/core/diagnostics/undefined-doc-name.lua @@ -35,7 +35,7 @@ return function (uri, callback) if name == '...' then return end - if vm.isDocDefined(name) + if vm.isDocDefined(uri, name) or hasNameOfGeneric(name, source) then return end -- cgit v1.2.3