From cbb10d2707829f0f88df24125249a051900bd319 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 3 Oct 2025 11:08:06 -0700 Subject: [PATCH] Update the error message --- src/compiler/diagnosticMessages.json | 2 +- src/compiler/program.ts | 5 ++++- tests/baselines/reference/commonSourceDirectory.js | 4 ++-- .../reference/commonSourceDirectory_dts.errors.txt | 4 ++-- .../declarationEmitMonorepoBaseUrl.errors.txt | 4 ++-- .../declarationEmitPathMappingMonorepo.errors.txt | 4 ++-- .../declarationEmitPathMappingMonorepo2.errors.txt | 4 ++-- ...arationEmitToDeclarationDirWithDeclarationOption.js | 4 ++-- ...on_rootImport_aliasWithRoot_realRootFile.errors.txt | 4 ++-- ..._rootImport_noAliasWithRoot_realRootFile.errors.txt | 4 ++-- .../outputPaths/when-rootDir-is-not-specified.js | 6 +++--- .../files-containing-json-file-non-composite.js | 2 +- .../include-and-files-non-composite.js | 2 +- ...lude-and-file-name-matches-ts-file-non-composite.js | 2 +- ...e-of-json-along-with-other-include-non-composite.js | 2 +- .../resolveJsonModule/include-only-non-composite.js | 2 +- ...ootDir-but-outside-configDirectory-non-composite.js | 2 +- .../resolveJsonModule/sourcemap-non-composite.js | 4 ++-- .../when-using-Windows-paths-and-uppercase-letters.js | 2 +- .../tsc/moduleResolution/pnpm-style-layout.js | 2 +- ...le-and-multiple-declaration-files-in-the-program.js | 2 +- ...lechanged-recursive-directory-watcher-is-invoked.js | 4 ++-- .../tscWatch/nodeNextWatch/esm-mode-file-is-edited.js | 4 ++-- ...-non-synchronous-watch-directory-renaming-a-file.js | 6 +++--- ...ch-directory-with-outDir-and-declaration-enabled.js | 4 ++-- ...or-config-file-with-case-insensitive-file-system.js | 2 +- ...-for-config-file-with-case-sensitive-file-system.js | 2 +- ...in-first-indirect-project-but-not-in-another-one.js | 6 +++--- ...ReferencedProjectLoad-is-set-in-indirect-project.js | 6 +++--- ...d-project-if-disableReferencedProjectLoad-is-set.js | 6 +++--- ...t-references-open-file-through-project-reference.js | 8 ++++---- ...and-project-is-indirectly-referenced-by-solution.js | 10 +++++----- ...d-demoConfig-change-with-file-open-before-revert.js | 2 +- ...art-of-first-config-tree-found-demoConfig-change.js | 2 +- .../tsserver/resolutionCache/when-resolution-fails.js | 2 +- .../resolutionCache/when-resolves-to-ambient-module.js | 2 +- 36 files changed, 68 insertions(+), 65 deletions(-) diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index b1217d54b1e..92baf7f8f10 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -4469,7 +4469,7 @@ "category": "Error", "code": 5010 }, - "Inferred common source directory differs from tsconfig directory, output layout will be changed.": { + "The common source directory of '{0}' is '{1}'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.": { "category": "Error", "code": 5011 }, diff --git a/src/compiler/program.ts b/src/compiler/program.ts index fab188deff3..33c26f8999f 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -133,6 +133,7 @@ import { getPackageScopeForPath, getPathFromPathComponents, getPositionOfLineAndCharacter, + getRelativePathFromFile, getResolvedModuleFromResolution, getResolvedTypeReferenceDirectiveFromResolution, getResolveJsonModule, @@ -4275,7 +4276,9 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro options.outDir ? "declarationDir" : undefined, chainDiagnosticMessages( chainDiagnosticMessages(/*details*/ undefined, Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information), - Diagnostics.Inferred_common_source_directory_differs_from_tsconfig_directory_output_layout_will_be_changed, + Diagnostics.The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout, + getBaseFileName(options.configFilePath), + getRelativePathFromFile(options.configFilePath, dir59, getCanonicalFileName), ), ); } diff --git a/tests/baselines/reference/commonSourceDirectory.js b/tests/baselines/reference/commonSourceDirectory.js index c0b53412836..a07a563aae8 100644 --- a/tests/baselines/reference/commonSourceDirectory.js +++ b/tests/baselines/reference/commonSourceDirectory.js @@ -32,7 +32,7 @@ export {}; //// [DtsFileErrors] -/app/tsconfig.json(3,9): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +/app/tsconfig.json(3,9): error TS5011: The common source directory of 'tsconfig.json' is '../.src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. @@ -41,7 +41,7 @@ export {}; "compilerOptions": { "outDir": "bin", ~~~~~~~~ -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: The common source directory of 'tsconfig.json' is '../.src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. !!! error TS5011: Visit https://aka.ms/ts6 for migration information. "typeRoots": ["../types"], "sourceMap": true, diff --git a/tests/baselines/reference/commonSourceDirectory_dts.errors.txt b/tests/baselines/reference/commonSourceDirectory_dts.errors.txt index e659c5ea2aa..39317702628 100644 --- a/tests/baselines/reference/commonSourceDirectory_dts.errors.txt +++ b/tests/baselines/reference/commonSourceDirectory_dts.errors.txt @@ -1,4 +1,4 @@ -/app/tsconfig.json(3,9): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +/app/tsconfig.json(3,9): error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. @@ -7,7 +7,7 @@ "compilerOptions": { "outDir": "bin", ~~~~~~~~ -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. !!! error TS5011: Visit https://aka.ms/ts6 for migration information. "sourceMap": true, "mapRoot": "myMapRoot", diff --git a/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt b/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt index 7d47190db91..1208b91dd9e 100644 --- a/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt +++ b/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt @@ -1,4 +1,4 @@ -/tsconfig.json(5,5): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +/tsconfig.json(5,5): error TS5011: The common source directory of 'tsconfig.json' is './packages'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. /tsconfig.json(6,5): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. @@ -11,7 +11,7 @@ "declaration": true, "outDir": "temp", ~~~~~~~~ -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: The common source directory of 'tsconfig.json' is './packages'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. !!! error TS5011: Visit https://aka.ms/ts6 for migration information. "baseUrl": "." ~~~~~~~~~ diff --git a/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt b/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt index a58a9d7f036..07f7344ed0b 100644 --- a/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt +++ b/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt @@ -1,4 +1,4 @@ -packages/b/tsconfig.json(3,9): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +packages/b/tsconfig.json(3,9): error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. packages/b/tsconfig.json(5,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. @@ -9,7 +9,7 @@ packages/b/tsconfig.json(5,9): error TS5101: Option 'baseUrl' is deprecated and "compilerOptions": { "outDir": "dist", ~~~~~~~~ -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. !!! error TS5011: Visit https://aka.ms/ts6 for migration information. "declaration": true, "baseUrl": ".", diff --git a/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt b/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt index ada6cfcc1fa..dc74d26c300 100644 --- a/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt +++ b/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt @@ -1,4 +1,4 @@ -packages/lab/tsconfig.json(3,9): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +packages/lab/tsconfig.json(3,9): error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. packages/lab/tsconfig.json(5,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. @@ -9,7 +9,7 @@ packages/lab/tsconfig.json(5,9): error TS5101: Option 'baseUrl' is deprecated an "compilerOptions": { "outDir": "dist", ~~~~~~~~ -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. !!! error TS5011: Visit https://aka.ms/ts6 for migration information. "declaration": true, "baseUrl": "../", diff --git a/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js b/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js index 8a9efc56cbd..79c4aeaf743 100644 --- a/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js +++ b/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js @@ -22,7 +22,7 @@ export default Foo; //// [DtsFileErrors] -/foo/tsconfig.json(2,47): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +/foo/tsconfig.json(2,47): error TS5011: The common source directory of 'tsconfig.json' is '../.src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. @@ -30,7 +30,7 @@ export default Foo; { "compilerOptions": { "declaration": true, "declarationDir": "out" } ~~~~~~~~~~~~~~~~ -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: The common source directory of 'tsconfig.json' is '../.src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. !!! error TS5011: Visit https://aka.ms/ts6 for migration information. } \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt index 01fd1c18f60..f0d423f0440 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt @@ -1,7 +1,7 @@ error TS5055: Cannot write file '/bar.js' because it would overwrite input file. /root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. -/root/tsconfig.json(8,9): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +/root/tsconfig.json(8,9): error TS5011: The common source directory of 'tsconfig.json' is '..'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. /root/a.ts(1,21): error TS6059: File '/foo.ts' is not under 'rootDir' '/root'. 'rootDir' is expected to contain all source files. /root/a.ts(2,21): error TS6059: File '/bar.js' is not under 'rootDir' '/root'. 'rootDir' is expected to contain all source files. @@ -21,7 +21,7 @@ error TS5055: Cannot write file '/bar.js' because it would overwrite input file. "allowJs": true, "outDir": "bin" ~~~~~~~~ -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: The common source directory of 'tsconfig.json' is '..'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. !!! error TS5011: Visit https://aka.ms/ts6 for migration information. } } diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt index 03c4d61e79e..b5c772fe8a8 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt @@ -1,7 +1,7 @@ error TS5055: Cannot write file '/bar.js' because it would overwrite input file. /root/tsconfig.json(3,9): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information. -/root/tsconfig.json(8,9): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +/root/tsconfig.json(8,9): error TS5011: The common source directory of 'tsconfig.json' is '..'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. /root/a.ts(1,21): error TS6059: File '/foo.ts' is not under 'rootDir' '/root'. 'rootDir' is expected to contain all source files. /root/a.ts(2,21): error TS6059: File '/bar.js' is not under 'rootDir' '/root'. 'rootDir' is expected to contain all source files. @@ -21,7 +21,7 @@ error TS5055: Cannot write file '/bar.js' because it would overwrite input file. "allowJs": true, "outDir": "bin" ~~~~~~~~ -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: The common source directory of 'tsconfig.json' is '..'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. !!! error TS5011: Visit https://aka.ms/ts6 for migration information. } } diff --git a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js index b9e7d969cd4..1a27b5e8683 100644 --- a/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js +++ b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js @@ -34,7 +34,7 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 3 "outDir": "dist" @@ -81,7 +81,7 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 3 "outDir": "dist" @@ -104,7 +104,7 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p /home/src/workspaces/project/tsconfig.json Output:: -tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 3 "outDir": "dist" diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js index b4c51bcf254..2e79c0efce8 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file-non-composite.js @@ -57,7 +57,7 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +project/tsconfig.json:8:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 8 "outDir": "dist", diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js index 308293c777e..00f8d22fddc 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files-non-composite.js @@ -59,7 +59,7 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +project/tsconfig.json:8:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 8 "outDir": "dist", diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js index f961d92cff9..0f31737d548 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file-non-composite.js @@ -57,7 +57,7 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +project/tsconfig.json:8:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 8 "outDir": "dist", diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js index b6cfc914cd6..c727680dcfc 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-non-composite.js @@ -57,7 +57,7 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +project/tsconfig.json:8:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 8 "outDir": "dist", diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js index 115f2e079a5..66ae25243b5 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js @@ -56,7 +56,7 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +project/tsconfig.json:8:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 8 "outDir": "dist", diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js index be200b093f3..957b959131c 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-with-json-without-rootDir-but-outside-configDirectory-non-composite.js @@ -56,7 +56,7 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +project/tsconfig.json:8:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 8 "outDir": "dist", diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js index 7ac2bff0c78..5e4b9284008 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js @@ -58,7 +58,7 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +project/tsconfig.json:8:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 8 "outDir": "dist", @@ -135,7 +135,7 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +project/tsconfig.json:8:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 8 "outDir": "dist", diff --git a/tests/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js b/tests/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js index 31eb0b0e2e3..35ed22da004 100644 --- a/tests/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js +++ b/tests/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js @@ -95,7 +95,7 @@ declare const console: { log(msg: any): void; }; D:\home\src\tslibs\TS\Lib\tsc.js -p D:\Work\pkg1 --explainFiles Output:: -tsconfig.json:13:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:13:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 13 "outDir": "./dist", diff --git a/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js b/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js index 25b7f4aa0d9..6d972b9cf3e 100644 --- a/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js +++ b/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js @@ -316,7 +316,7 @@ Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/ 9 "baseUrl": ".",    ~~~~~~~~~ -tsconfig.json:10:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:10:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 10 "outDir": "dist" diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js index 08bc16edc0e..9a8494af7b1 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/without---outFile-and-multiple-declaration-files-in-the-program.js @@ -46,7 +46,7 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 3 "outDir": "../output", diff --git a/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js b/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js index 90e4592c7de..38ec39c99ca 100644 --- a/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js +++ b/tests/baselines/reference/tscWatch/emit/when-module-emit-is-specified-as-node/when-instead-of-filechanged-recursive-directory-watcher-is-invoked.js @@ -38,7 +38,7 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:5:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:5:5 - error TS5011: The common source directory of 'tsconfig.json' is './Scripts'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 5 "outDir": "Static/scripts/" @@ -126,7 +126,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -tsconfig.json:5:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:5:5 - error TS5011: The common source directory of 'tsconfig.json' is './Scripts'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 5 "outDir": "Static/scripts/" diff --git a/tests/baselines/reference/tscWatch/nodeNextWatch/esm-mode-file-is-edited.js b/tests/baselines/reference/tscWatch/nodeNextWatch/esm-mode-file-is-edited.js index ee1448d00d4..eab8e23b0b7 100644 --- a/tests/baselines/reference/tscWatch/nodeNextWatch/esm-mode-file-is-edited.js +++ b/tests/baselines/reference/tscWatch/nodeNextWatch/esm-mode-file-is-edited.js @@ -48,7 +48,7 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:7:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:7:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 7 "outDir": "../dist" @@ -150,7 +150,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -tsconfig.json:7:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:7:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 7 "outDir": "../dist" diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js index 45b1659c774..def1b08815f 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-renaming-a-file.js @@ -33,7 +33,7 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 3 "outDir": "dist" @@ -169,7 +169,7 @@ Output:: The file is in the program because: Matched by default include pattern '**/*' -tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 3 "outDir": "dist" @@ -254,7 +254,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 3 "outDir": "dist" diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js index 5b59d79f43b..6f3b65c3ff3 100644 --- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js +++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/with-non-synchronous-watch-directory-with-outDir-and-declaration-enabled.js @@ -34,7 +34,7 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 3 "outDir": "dist", @@ -160,7 +160,7 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: The common source directory of 'tsconfig.json' is './src'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. Visit https://aka.ms/ts6 for migration information. 3 "outDir": "dist", diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js index 71e7058d63b..1de7900c526 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-insensitive-file-system.js @@ -294,7 +294,7 @@ Info seq [hh:mm:ss:mss] event: "line": 17, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './src/app'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/Users/someuser/work/applications/frontend/tsconfig.json" diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js index bda6c31c28d..ff3e9afad34 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/watchDirectories-for-config-file-with-case-sensitive-file-system.js @@ -294,7 +294,7 @@ Info seq [hh:mm:ss:mss] event: "line": 17, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './src/app'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/Users/someuser/work/applications/frontend/tsconfig.json" diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js index 25ce482f326..447d6257bc1 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js @@ -349,7 +349,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -1340,7 +1340,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -1696,7 +1696,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js index e86fbefbd7f..68ef913cc14 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js @@ -302,7 +302,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -1068,7 +1068,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -1321,7 +1321,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js index 5372423a986..c616f720ab2 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js @@ -260,7 +260,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -956,7 +956,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -1179,7 +1179,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js index ae58a0ec939..5d571963900 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js @@ -257,7 +257,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -1232,7 +1232,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -2611,7 +2611,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -3793,7 +3793,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js index 37da65c00ea..44de74b7ba1 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js @@ -347,7 +347,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -1426,7 +1426,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -2396,7 +2396,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -3116,7 +3116,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" @@ -4859,7 +4859,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './own'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/tsconfig.json" diff --git a/tests/baselines/reference/tsserver/projectReferences/when-file-is-not-part-of-first-config-tree-found-demoConfig-change-with-file-open-before-revert.js b/tests/baselines/reference/tsserver/projectReferences/when-file-is-not-part-of-first-config-tree-found-demoConfig-change-with-file-open-before-revert.js index 23222984145..4c1356ff725 100644 --- a/tests/baselines/reference/tsserver/projectReferences/when-file-is-not-part-of-first-config-tree-found-demoConfig-change-with-file-open-before-revert.js +++ b/tests/baselines/reference/tsserver/projectReferences/when-file-is-not-part-of-first-config-tree-found-demoConfig-change-with-file-open-before-revert.js @@ -563,7 +563,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './app'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/home/src/projects/project/tsconfig.json" diff --git a/tests/baselines/reference/tsserver/projectReferences/when-file-is-not-part-of-first-config-tree-found-demoConfig-change.js b/tests/baselines/reference/tsserver/projectReferences/when-file-is-not-part-of-first-config-tree-found-demoConfig-change.js index 06b20ff41a1..3c7ed556daa 100644 --- a/tests/baselines/reference/tsserver/projectReferences/when-file-is-not-part-of-first-config-tree-found-demoConfig-change.js +++ b/tests/baselines/reference/tsserver/projectReferences/when-file-is-not-part-of-first-config-tree-found-demoConfig-change.js @@ -563,7 +563,7 @@ Info seq [hh:mm:ss:mss] event: "line": 3, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './app'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/home/src/projects/project/tsconfig.json" diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js index 4902e288823..dc28e62ace8 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js @@ -219,7 +219,7 @@ Info seq [hh:mm:ss:mss] event: "line": 6, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './somefolder'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/src/tsconfig.json" diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js index f301f704770..a929ee26a74 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolves-to-ambient-module.js @@ -231,7 +231,7 @@ Info seq [hh:mm:ss:mss] event: "line": 6, "offset": 13 }, - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", + "text": "The common source directory of 'tsconfig.json' is './somefolder'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout.\n Visit https://aka.ms/ts6 for migration information.", "code": 5011, "category": "error", "fileName": "/user/username/projects/myproject/src/tsconfig.json"