File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
EmmyLua-LS/src/main/kotlin/com/tang/vscode Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -550,8 +550,9 @@ class LuaTextDocumentService(private val workspace: LuaWorkspaceService) : TextD
550550
551551 }
552552
553- override fun signatureHelp (position : TextDocumentPositionParams ): CompletableFuture <SignatureHelp > {
553+ override fun signatureHelp (position : TextDocumentPositionParams ): CompletableFuture <SignatureHelp ? > {
554554 return computeAsync {
555+ var signatureHelp: SignatureHelp ? = null
555556 val list = mutableListOf<SignatureInformation >()
556557 var activeParameter = 0
557558 var activeSig = 0
@@ -595,7 +596,10 @@ class LuaTextDocumentService(private val workspace: LuaWorkspaceService) : TextD
595596 }
596597 }
597598 }
598- SignatureHelp (list, activeSig, activeParameter)
599+ if (list.size > 0 ) {
600+ signatureHelp = SignatureHelp (list, activeSig, activeParameter)
601+ }
602+ signatureHelp
599603 }
600604 }
601605
You can’t perform that action at this time.
0 commit comments