Skip to content

Commit 26c836b

Browse files
committed
Propagage reportsUnnecessary in convertToDiagnosticsWithLinePosition
1 parent e50b24a commit 26c836b

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)