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 97d8c83 commit 507fd31Copy full SHA for 507fd31
src/harness/fourslashImpl.ts
@@ -839,6 +839,15 @@ export class TestState {
839
const fileName = this.activeFile.fileName;
840
const hints = this.languageService.provideInlayHints(fileName, span, preferences);
841
const annotations = ts.map(hints.sort(sortHints), hint => {
842
+ if (hint.displayParts) {
843
+ hint.displayParts = ts.map(hint.displayParts, part => {
844
+ if (part.file && /lib(?:.*)\.d\.ts$/.test(part.file)) {
845
+ part.span!.start = -1;
846
+ }
847
+ return part;
848
+ });
849
850
+
851
const span = { start: hint.position, length: hint.text.length };
852
const { character, line } = this.languageServiceAdapterHost.positionToLineAndCharacter(fileName, span.start);
853
const underline = " ".repeat(character) + "^";
0 commit comments