Skip to content

Commit a2f494a

Browse files
authored
Merge pull request #23494 from amcasey/PropagateUnnecessary
Propagage reportsUnnecessary in convertToDiagnosticsWithLinePosition
2 parents afde2b5 + 26c836b commit a2f494a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/session.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@ namespace ts.server {
634634
code: d.code,
635635
source: d.source,
636636
startLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start),
637-
endLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start + d.length)
637+
endLocation: scriptInfo && scriptInfo.positionToLineOffset(d.start + d.length),
638+
reportsUnnecessary: d.reportsUnnecessary
638639
});
639640
}
640641

0 commit comments

Comments
 (0)