Skip to content

Commit

Permalink
Merge pull request #3005 from andrewbraxton/dev/fix-insertTextFormat
Browse files Browse the repository at this point in the history
Send the correct `insertTextFormat`
  • Loading branch information
sumneko authored Dec 26, 2024
2 parents eeb4f4d + a3dd298 commit 3a39d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/provider/provider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ m.register 'textDocument/completion' {
sortText = res.sortText or ('%04d'):format(i),
filterText = res.filterText,
insertText = res.insertText,
insertTextFormat = 2,
insertTextFormat = res.insertTextFormat or 1,
commitCharacters = res.commitCharacters,
command = res.command,
textEdit = res.textEdit and {
Expand Down

0 comments on commit 3a39d06

Please sign in to comment.