MCPcopy Create free account
hub / github.com/microsoft/typescript-go / parseConfigFile

Method parseConfigFile

internal/execute/watcher.go:425–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423}
424
425func (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}

Callers 1

recheckTsConfigMethod · 0.95

Calls 4

NewCompilerDiagnosticFunction · 0.92
lenFunction · 0.85
reportDiagnosticMethod · 0.80

Tested by

no test coverage detected