diff --git a/EmmyLua-LS/src/main/kotlin/com/tang/vscode/LuaTextDocumentService.kt b/EmmyLua-LS/src/main/kotlin/com/tang/vscode/LuaTextDocumentService.kt index 4e8e8bb..d7d5434 100644 --- a/EmmyLua-LS/src/main/kotlin/com/tang/vscode/LuaTextDocumentService.kt +++ b/EmmyLua-LS/src/main/kotlin/com/tang/vscode/LuaTextDocumentService.kt @@ -564,7 +564,9 @@ class LuaTextDocumentService(private val workspace: LuaWorkspaceService) : TextD } } } - signatureHelp = SignatureHelp(list, activeSig, activeParameter) + if (list.size > 0) { + signatureHelp = SignatureHelp(list, activeSig, activeParameter) + } } signatureHelp }