Skip to content

Commit

Permalink
fix: append the result, fix #30
Browse files Browse the repository at this point in the history
  • Loading branch information
weirongxu committed Nov 26, 2022
1 parent c19cf63 commit 200a0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calc-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class CalcProvider implements CompletionItemProvider {
label: result,
kind: CompletionItemKind.Constant,
documentation: `append \`${exprLine.slice(skip)}${insertText}\``,
textEdit: TextEdit.insert(expressionEndRange.end, insertText),
textEdit: TextEdit.replace(expressionEndRange, insertText),
} as CompletionItem,
{
label: result,
Expand Down

0 comments on commit 200a0b3

Please sign in to comment.