Merge pull request #4201 from Microsoft/fix4025

Fix #4025: report options diagnostics
This commit is contained in:
Mohamed Hegazy
2015-08-06 16:25:25 -07:00

View File

@@ -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();