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 @@ -383,8 +383,9 @@ class LuaTextDocumentService(private val workspace: LuaWorkspaceService) : TextD
383383
384384 }
385385
386- override fun signatureHelp (position : TextDocumentPositionParams ): CompletableFuture <SignatureHelp > {
386+ override fun signatureHelp (position : TextDocumentPositionParams ): CompletableFuture <SignatureHelp ? > {
387387 return computeAsync {
388+ var signatureHelp: SignatureHelp ? = null
388389 val list = mutableListOf<SignatureInformation >()
389390 var activeParameter = 0
390391 var activeSig = 0
@@ -427,7 +428,10 @@ class LuaTextDocumentService(private val workspace: LuaWorkspaceService) : TextD
427428 }
428429 }
429430 }
430- SignatureHelp (list, activeSig, activeParameter)
431+ if (list.size > 0 ) {
432+ signatureHelp = SignatureHelp (list, activeSig, activeParameter)
433+ }
434+ signatureHelp
431435 }
432436 }
433437
You can’t perform that action at this time.
0 commit comments