()
| 423 | } |
| 424 | |
| 425 | func (w *Watcher) parseConfigFile() *tsoptions.ParsedCommandLine { |
| 426 | extendedConfigCache := &tsc.ExtendedConfigCache{} |
| 427 | configParseResult, errors := tsoptions.GetParsedCommandLineOfConfigFile(w.configFileName, w.compilerOptionsFromCommandLine, w.commandLineRaw, w.sys, extendedConfigCache) |
| 428 | if len(errors) > 0 { |
| 429 | for _, e := range errors { |
| 430 | w.reportDiagnostic(e) |
| 431 | } |
| 432 | w.configHasErrors = true |
| 433 | errorCount := len(errors) |
| 434 | if errorCount == 1 { |
| 435 | w.reportWatchStatus(ast.NewCompilerDiagnostic(diagnostics.Found_1_error_Watching_for_file_changes)) |
| 436 | } else { |
| 437 | w.reportWatchStatus(ast.NewCompilerDiagnostic(diagnostics.Found_0_errors_Watching_for_file_changes, errorCount)) |
| 438 | } |
| 439 | return nil |
| 440 | } |
| 441 | w.extendedConfigCache = extendedConfigCache |
| 442 | return configParseResult |
| 443 | } |
no test coverage detected