Skip to content

Commit 836d097

Browse files
committed
Fix signature help in sublimeText
1 parent 7e3258d commit 836d097

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/script/provider/provider.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,7 @@ proto.on('textDocument/completion', function (params)
497497
return nil
498498
end
499499
local triggerCharacter = params.context and params.context.triggerCharacter
500-
if config.config.completion.endAutocompletion
501-
and params.context.triggerCharacter == '\n' then
500+
if config.config.completion.endAutocompletion and triggerCharacter == '\n' then
502501
require("core.end-completion")(uri, params.position)
503502
end
504503
if config.other.acceptSuggestionOnEnter ~= 'off' then
@@ -666,7 +665,7 @@ proto.on('textDocument/signatureHelp', function (params)
666665
}
667666
end
668667
local active = nil
669-
if params.context.activeSignatureHelp and params.context.activeSignatureHelp.activeSignature then
668+
if params.context and params.context.activeSignatureHelp and params.context.activeSignatureHelp.activeSignature then
670669
active = params.context.activeSignatureHelp.activeSignature
671670
if active > #infos - 1 then
672671
active = #infos - 1

0 commit comments

Comments
 (0)