(configFileName)
| 123791 | hasChangedConfigFileParsingErrors = true; |
| 123792 | } |
| 123793 | function getParsedCommandLine(configFileName) { |
| 123794 | var configPath = toPath(configFileName); |
| 123795 | var config = parsedConfigs === null || parsedConfigs === void 0 ? void 0 : parsedConfigs.get(configPath); |
| 123796 | if (config) { |
| 123797 | if (!config.reloadLevel) |
| 123798 | return config.parsedCommandLine; |
| 123799 | // With host implementing getParsedCommandLine we cant just update file names |
| 123800 | if (config.parsedCommandLine && config.reloadLevel === ts.ConfigFileProgramReloadLevel.Partial && !host.getParsedCommandLine) { |
| 123801 | writeLog("Reloading new file names and options"); |
| 123802 | var fileNames = ts.getFileNamesFromConfigSpecs(config.parsedCommandLine.options.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), compilerOptions, parseConfigFileHost); |
| 123803 | config.parsedCommandLine = __assign(__assign({}, config.parsedCommandLine), { fileNames: fileNames }); |
| 123804 | config.reloadLevel = undefined; |
| 123805 | return config.parsedCommandLine; |
| 123806 | } |
| 123807 | } |
| 123808 | writeLog("Loading config file: ".concat(configFileName)); |
| 123809 | var parsedCommandLine = host.getParsedCommandLine ? |
| 123810 | host.getParsedCommandLine(configFileName) : |
| 123811 | getParsedCommandLineFromConfigFileHost(configFileName); |
| 123812 | if (config) { |
| 123813 | config.parsedCommandLine = parsedCommandLine; |
| 123814 | config.reloadLevel = undefined; |
| 123815 | } |
| 123816 | else { |
| 123817 | (parsedConfigs || (parsedConfigs = new ts.Map())).set(configPath, config = { parsedCommandLine: parsedCommandLine }); |
| 123818 | } |
| 123819 | watchReferencedProject(configFileName, configPath, config); |
| 123820 | return parsedCommandLine; |
| 123821 | } |
| 123822 | function getParsedCommandLineFromConfigFileHost(configFileName) { |
| 123823 | // Ignore the file absent errors |
| 123824 | var onUnRecoverableConfigFileDiagnostic = parseConfigFileHost.onUnRecoverableConfigFileDiagnostic; |
no test coverage detected