Skip to content

Commit

Permalink
fix: map optionalReplacementSpan for typescript-language-server (#2257)
Browse files Browse the repository at this point in the history
#2251 For typescript plugin
  • Loading branch information
jasonlyu123 authored Jan 12, 2024
1 parent e1eacce commit c6a7994
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ export function decorateCompletions(
}
return c;
});

if (completions.optionalReplacementSpan) {
completions.optionalReplacementSpan = {
...completions.optionalReplacementSpan,
start: toOriginalPos(completions.optionalReplacementSpan.start).pos
};
}
}
}

Expand Down

0 comments on commit c6a7994

Please sign in to comment.