Include the project filepath in the error message for files not being

listed in the 'include' pattern. TS6307
This commit is contained in:
Paul van Brenk
2019-05-31 17:47:19 -04:00
parent a5281ada54
commit a658f728a9
4 changed files with 8 additions and 7 deletions

View File

@@ -2773,7 +2773,7 @@ namespace ts {
// Ignore file that is not emitted
if (!sourceFileMayBeEmitted(file, options, isSourceFileFromExternalLibrary, getResolvedProjectReferenceToRedirect)) continue;
if (rootPaths.indexOf(file.path) === -1) {
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern, file.fileName));
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.File_0_is_not_in_project_1_file_list_Projects_must_list_all_files_or_use_an_include_pattern, file.fileName, options.configFilePath || ""));
}
}
}