-
Notifications
You must be signed in to change notification settings - Fork 73
Need to handle diagnostics without file field #239
Comments
Could you report that as a bug to TypeScript as well? The interface doesn't mention that |
Technically, the field is specified :) |
The declared type of the property is |
Ah, just as I threw microsoft/TypeScript#15667 on the pile. |
I closed mine. Surprised they are not running with |
Yes, I am receiving so many |
The language service is failing to return diagnostics and logging errors when compiler diagnostics are returned alongside file diagnostics.
These diagnostics (despite the typing of
ts.Diagnostic
) have nofile
field (typically just a code and a message).To avoid exceptions handling those diagnostics, adding a
tsDiagnostics.filter(f => !!f.file)
is needed before callingconvertTsDiagnostic
in_publishDiagnostics
The text was updated successfully, but these errors were encountered: