Skip to content

Commit

Permalink
Fix automcomplete suggestions overwriting existing text (#3450)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrunyon authored Feb 21, 2023
1 parent e4d2743 commit d9271bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private void getCompletionItems(GetCompletionItemsRequest request,
item.setLabel(completionName);
item.setLength(completionName.length());
range.getStartBuilder().setLine(pos.getLine()).setCharacter(start);
range.getEndBuilder().setLine(pos.getLine()).setCharacter(start + completionName.length());
range.getEndBuilder().setLine(pos.getLine()).setCharacter(pos.getCharacter());
item.setInsertTextFormat(2);
item.setSortText(ChunkerCompleter.sortable(finalItems.size()));
finalItems.add(item.build());
Expand Down

0 comments on commit d9271bf

Please sign in to comment.