We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1eacce commit c6a7994Copy full SHA for c6a7994
packages/typescript-plugin/src/language-service/completions.ts
@@ -40,6 +40,13 @@ export function decorateCompletions(
40
}
41
return c;
42
});
43
+
44
+ if (completions.optionalReplacementSpan) {
45
+ completions.optionalReplacementSpan = {
46
+ ...completions.optionalReplacementSpan,
47
+ start: toOriginalPos(completions.optionalReplacementSpan.start).pos
48
+ };
49
+ }
50
51
52
0 commit comments