From 9a29a827cef8f9a27f9dbaaeb0b66b7d6a954527 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Thu, 6 Aug 2015 16:10:21 -0700 Subject: [PATCH] Fix #4025: report options diagnostics --- src/compiler/tsc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/tsc.ts b/src/compiler/tsc.ts index 22bd6d79b0e..c322187fa14 100644 --- a/src/compiler/tsc.ts +++ b/src/compiler/tsc.ts @@ -363,7 +363,7 @@ namespace ts { // If we didn't have any syntactic errors, then also try getting the global and // semantic errors. if (diagnostics.length === 0) { - diagnostics = program.getGlobalDiagnostics(); + diagnostics = program.getOptionsDiagnostics().concat(program.getGlobalDiagnostics()); if (diagnostics.length === 0) { diagnostics = program.getSemanticDiagnostics();