We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c1cbce commit db2212eCopy full SHA for db2212e
javascript/extractor/lib/typescript/src/main.ts
@@ -316,7 +316,9 @@ function handleOpenProjectCommand(command: OpenProjectCommand) {
316
317
let diagnostics = program.getSemanticDiagnostics()
318
.filter(d => d.category === ts.DiagnosticCategory.Error);
319
- console.warn('TypeScript: reported ' + diagnostics.length + ' semantic errors.');
+ if (diagnostics.length > 0) {
320
+ console.warn('TypeScript: reported ' + diagnostics.length + ' semantic errors.');
321
+ }
322
for (let diagnostic of diagnostics) {
323
let text = diagnostic.messageText;
324
if (text && typeof text !== 'string') {
0 commit comments