Skip to content

Commit 3a39d06

Browse files
authored
Merge pull request #3005 from andrewbraxton/dev/fix-insertTextFormat
Send the correct `insertTextFormat`
2 parents eeb4f4d + a3dd298 commit 3a39d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: script/provider/provider.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ m.register 'textDocument/completion' {
661661
sortText = res.sortText or ('%04d'):format(i),
662662
filterText = res.filterText,
663663
insertText = res.insertText,
664-
insertTextFormat = 2,
664+
insertTextFormat = res.insertTextFormat or 1,
665665
commitCharacters = res.commitCharacters,
666666
command = res.command,
667667
textEdit = res.textEdit and {

0 commit comments

Comments
 (0)