(diagnostic: TsServerDiagnosticType)
| 83 | } |
| 84 | |
| 85 | function tsDiagnosticMessage(diagnostic: TsServerDiagnosticType): string { |
| 86 | if (typeof diagnostic.text === 'string') { |
| 87 | return diagnostic.text; |
| 88 | } |
| 89 | return JSON.stringify(diagnostic); // Fallback |
| 90 | } |
| 91 | |
| 92 | function convertTSDiagnosticToCM(diagnostic: TsServerDiagnosticType, code: string): Diagnostic { |
| 93 | const message = tsDiagnosticMessage(diagnostic); |
no outgoing calls
no test coverage detected