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 2478212 commit 89ee707Copy full SHA for 89ee707
packages/typescript-plugin/src/language-service/inlay-hints.ts
@@ -18,12 +18,13 @@ export function decorateInlayHints(
18
}
19
20
const { languageService, toVirtualPos, toOriginalPos } = result;
21
+ const start = toVirtualPos(span.start);
22
return languageService
23
.provideInlayHints(
24
fileName,
25
{
- start: toVirtualPos(span.start),
26
- length: span.length
+ start,
27
+ length: toVirtualPos(span.start + span.length) - start
28
},
29
preferences
30
)
0 commit comments