Skip to content

Commit

Permalink
fix inverted doc
Browse files Browse the repository at this point in the history
docs for append and replace were inverted
  • Loading branch information
yukulele authored Feb 14, 2024
1 parent 5462063 commit a803123
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/calc-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,11 @@ export class CalcProvider implements CompletionItemProvider {
return [
{
label: result,
detail: `calc append${documentationPostfix}`,
kind: CompletionItemKind.Constant,
documentation: `\`${result}\`${documentationPostfix}`,
detail: `calc append${documentationPostfix}`,
documentation: `\`${exprLine
.slice(skip)
.trimStart()}${insertText}\`${documentationPostfix}`,
range: expressionEndRange,
additionalTextEdits: [
TextEdit.insert(expressionWithEqualSignRange.end, insertText),
Expand All @@ -183,9 +185,7 @@ export class CalcProvider implements CompletionItemProvider {
label: result,
kind: CompletionItemKind.Constant,
detail: `calc replace${documentationPostfix}`,
documentation: `\`${exprLine
.slice(skip)
.trimStart()}${insertText}\`${documentationPostfix}`,
documentation: `\`${result}\`${documentationPostfix}`,
additionalTextEdits: [
TextEdit.replace(expressionWithEqualSignRange, result),
...additionalReplacements.map((replacementRange, i) =>
Expand Down

0 comments on commit a803123

Please sign in to comment.