From 00f890805d4917f9b2fffc2affb2992ecaf9162b Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 1 Oct 2025 12:00:41 -0700 Subject: [PATCH] Report on outDir and/or DeclarationDir --- src/compiler/program.ts | 13 +++-- .../reference/commonSourceDirectory.js | 9 +-- .../commonSourceDirectory_dts.errors.txt | 9 +-- .../declarationEmitMonorepoBaseUrl.errors.txt | 9 +-- ...larationEmitPathMappingMonorepo.errors.txt | 9 +-- ...arationEmitPathMappingMonorepo2.errors.txt | 9 +-- ...itToDeclarationDirWithDeclarationOption.js | 9 +-- ...port_aliasWithRoot_realRootFile.errors.txt | 11 ++-- ...rt_noAliasWithRoot_realRootFile.errors.txt | 11 ++-- .../when-rootDir-is-not-specified.js | 17 ++++-- ...iles-containing-json-file-non-composite.js | 9 ++- .../include-and-files-non-composite.js | 9 ++- ...file-name-matches-ts-file-non-composite.js | 9 ++- ...-along-with-other-include-non-composite.js | 9 ++- .../include-only-non-composite.js | 9 ++- ...t-outside-configDirectory-non-composite.js | 9 ++- .../sourcemap-non-composite.js | 18 ++++-- ...ing-Windows-paths-and-uppercase-letters.js | 7 ++- .../tsc/moduleResolution/pnpm-style-layout.js | 9 ++- ...ltiple-declaration-files-in-the-program.js | 5 +- ...-recursive-directory-watcher-is-invoked.js | 10 +++- .../nodeNextWatch/esm-mode-file-is-edited.js | 10 +++- ...hronous-watch-directory-renaming-a-file.js | 19 +++++-- ...ory-with-outDir-and-declaration-enabled.js | 10 +++- ...-file-with-case-insensitive-file-system.js | 19 +++++-- ...ig-file-with-case-sensitive-file-system.js | 19 +++++-- ...indirect-project-but-not-in-another-one.js | 33 ++++++++++- ...dProjectLoad-is-set-in-indirect-project.js | 33 ++++++++++- ...-if-disableReferencedProjectLoad-is-set.js | 33 ++++++++++- ...ces-open-file-through-project-reference.js | 44 +++++++++++++-- ...ct-is-indirectly-referenced-by-solution.js | 55 +++++++++++++++++-- ...fig-change-with-file-open-before-revert.js | 11 +++- ...rst-config-tree-found-demoConfig-change.js | 11 +++- .../resolutionCache/when-resolution-fails.js | 11 +++- .../when-resolves-to-ambient-module.js | 11 +++- 35 files changed, 413 insertions(+), 115 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 8937137cd04..fab188deff3 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -4269,10 +4269,15 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro const dir59 = getComputedCommonSourceDirectory(emittedFiles, currentDirectory, getCanonicalFileName); if (dir59 !== "" && getCanonicalFileName(dir) !== getCanonicalFileName(dir59)) { // change in layout - programDiagnostics.addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(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, - ))); + createDiagnosticForOption( + /*onKey*/ true, + options.outDir ? "outDir" : "declarationDir", + 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, + ), + ); } } diff --git a/tests/baselines/reference/commonSourceDirectory.js b/tests/baselines/reference/commonSourceDirectory.js index 5732ecb043c..c0b53412836 100644 --- a/tests/baselines/reference/commonSourceDirectory.js +++ b/tests/baselines/reference/commonSourceDirectory.js @@ -32,16 +32,17 @@ export {}; //// [DtsFileErrors] -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +/app/tsconfig.json(3,9): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. -!!! error TS5011: Visit https://aka.ms/ts6 for migration information. -==== /app/tsconfig.json (0 errors) ==== +==== /app/tsconfig.json (1 errors) ==== { "compilerOptions": { "outDir": "bin", + ~~~~~~~~ +!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: Visit https://aka.ms/ts6 for migration information. "typeRoots": ["../types"], "sourceMap": true, "mapRoot": "myMapRoot", diff --git a/tests/baselines/reference/commonSourceDirectory_dts.errors.txt b/tests/baselines/reference/commonSourceDirectory_dts.errors.txt index 65f5d3717b8..e659c5ea2aa 100644 --- a/tests/baselines/reference/commonSourceDirectory_dts.errors.txt +++ b/tests/baselines/reference/commonSourceDirectory_dts.errors.txt @@ -1,13 +1,14 @@ -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +/app/tsconfig.json(3,9): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. -!!! error TS5011: Visit https://aka.ms/ts6 for migration information. -==== /app/tsconfig.json (0 errors) ==== +==== /app/tsconfig.json (1 errors) ==== { "compilerOptions": { "outDir": "bin", + ~~~~~~~~ +!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: Visit https://aka.ms/ts6 for migration information. "sourceMap": true, "mapRoot": "myMapRoot", "sourceRoot": "mySourceRoot", diff --git a/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt b/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt index 15c9028a9aa..7d47190db91 100644 --- a/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt +++ b/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt @@ -1,17 +1,18 @@ -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +/tsconfig.json(5,5): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. 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. -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. -!!! error TS5011: Visit https://aka.ms/ts6 for migration information. -==== /tsconfig.json (1 errors) ==== +==== /tsconfig.json (2 errors) ==== { "compilerOptions": { "module": "nodenext", "declaration": true, "outDir": "temp", + ~~~~~~~~ +!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! error TS5011: Visit https://aka.ms/ts6 for migration information. "baseUrl": "." ~~~~~~~~~ !!! error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. diff --git a/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt b/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt index 9a3cb5b26d0..a58a9d7f036 100644 --- a/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt +++ b/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt @@ -1,15 +1,16 @@ -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +packages/b/tsconfig.json(3,9): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. 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. -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. -!!! error TS5011: Visit https://aka.ms/ts6 for migration information. -==== packages/b/tsconfig.json (1 errors) ==== +==== packages/b/tsconfig.json (2 errors) ==== { "compilerOptions": { "outDir": "dist", + ~~~~~~~~ +!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! 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 99b73b8cdca..ada6cfcc1fa 100644 --- a/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt +++ b/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt @@ -1,15 +1,16 @@ -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +packages/lab/tsconfig.json(3,9): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. 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. -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. -!!! error TS5011: Visit https://aka.ms/ts6 for migration information. -==== packages/lab/tsconfig.json (1 errors) ==== +==== packages/lab/tsconfig.json (2 errors) ==== { "compilerOptions": { "outDir": "dist", + ~~~~~~~~ +!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! 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 0376969b194..8a9efc56cbd 100644 --- a/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js +++ b/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js @@ -22,14 +22,15 @@ export default Foo; //// [DtsFileErrors] -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +/foo/tsconfig.json(2,47): error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. -!!! error TS5011: Visit https://aka.ms/ts6 for migration information. -==== /foo/tsconfig.json (0 errors) ==== +==== /foo/tsconfig.json (1 errors) ==== { "compilerOptions": { "declaration": true, "declarationDir": "out" } + ~~~~~~~~~~~~~~~~ +!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +!!! 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 51a7c53eeef..01fd1c18f60 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt @@ -1,16 +1,14 @@ -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. 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. + 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. -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. -!!! error TS5011: Visit https://aka.ms/ts6 for migration information. !!! error TS5055: Cannot write file '/bar.js' because it would overwrite input file. -==== /root/tsconfig.json (1 errors) ==== +==== /root/tsconfig.json (2 errors) ==== { "compilerOptions": { "baseUrl": ".", @@ -22,6 +20,9 @@ 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: 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 45cf032fd2d..03c4d61e79e 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt @@ -1,16 +1,14 @@ -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. 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. + 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. -!!! error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. -!!! error TS5011: Visit https://aka.ms/ts6 for migration information. !!! error TS5055: Cannot write file '/bar.js' because it would overwrite input file. -==== /root/tsconfig.json (1 errors) ==== +==== /root/tsconfig.json (2 errors) ==== { "compilerOptions": { "baseUrl": ".", @@ -22,6 +20,9 @@ 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: 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 2a5838dbd9e..b9e7d969cd4 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,9 +34,12 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +3 "outDir": "dist" +   ~~~~~~~~ + Found 1 error. @@ -78,9 +81,12 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +3 "outDir": "dist" +   ~~~~~~~~ + Found 1 error. @@ -98,11 +104,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p /home/src/workspaces/project/tsconfig.json Output:: -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +3 "outDir": "dist" +   ~~~~~~~~ -Found 1 error. + +Found 1 error in tsconfig.json:3 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 86b263acc7c..b4c51bcf254 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 @@ -51,15 +51,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project/tsconfig.json'... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. - project/tsconfig.json:3:25 - error TS5107: Option 'moduleResolution=node10' 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. 3 "moduleResolution": "node",    ~~~~~~ +project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +8 "outDir": "dist", +   ~~~~~~~~ + TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json TSFILE: /home/src/workspaces/solution/project/dist/src/index.js TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo 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 89d0f990758..308293c777e 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 @@ -53,15 +53,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project/tsconfig.json'... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. - project/tsconfig.json:3:25 - error TS5107: Option 'moduleResolution=node10' 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. 3 "moduleResolution": "node",    ~~~~~~ +project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +8 "outDir": "dist", +   ~~~~~~~~ + TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json TSFILE: /home/src/workspaces/solution/project/dist/src/index.js TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo 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 9a428ed4050..f961d92cff9 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 @@ -51,15 +51,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project/tsconfig.json'... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. - project/tsconfig.json:3:25 - error TS5107: Option 'moduleResolution=node10' 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. 3 "moduleResolution": "node",    ~~~~~~ +project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +8 "outDir": "dist", +   ~~~~~~~~ + TSFILE: /home/src/workspaces/solution/project/dist/src/index.json TSFILE: /home/src/workspaces/solution/project/dist/src/index.js TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo 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 25d9c87955f..b6cfc914cd6 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 @@ -51,15 +51,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project/tsconfig.json'... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. - project/tsconfig.json:3:25 - error TS5107: Option 'moduleResolution=node10' 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. 3 "moduleResolution": "node",    ~~~~~~ +project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +8 "outDir": "dist", +   ~~~~~~~~ + TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json TSFILE: /home/src/workspaces/solution/project/dist/src/index.js TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo 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 7513a72a7bc..115f2e079a5 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js @@ -50,15 +50,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project/tsconfig.json'... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. - project/tsconfig.json:3:25 - error TS5107: Option 'moduleResolution=node10' 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. 3 "moduleResolution": "node",    ~~~~~~ +project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +8 "outDir": "dist", +   ~~~~~~~~ + TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json TSFILE: /home/src/workspaces/solution/project/dist/src/index.js TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo 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 14743a15a64..be200b093f3 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 @@ -50,15 +50,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project/tsconfig.json'... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. - project/tsconfig.json:3:25 - error TS5107: Option 'moduleResolution=node10' 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. 3 "moduleResolution": "node",    ~~~~~~ +project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +8 "outDir": "dist", +   ~~~~~~~~ + TSFILE: /home/src/workspaces/solution/project/dist/src/index.js TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js index a3e7f97e89c..7ac2bff0c78 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js @@ -52,15 +52,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project/tsconfig.json'... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. - project/tsconfig.json:3:25 - error TS5107: Option 'moduleResolution=node10' 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. 3 "moduleResolution": "node",    ~~~~~~ +project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +8 "outDir": "dist", +   ~~~~~~~~ + TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json TSFILE: /home/src/workspaces/solution/project/dist/src/index.js TSFILE: /home/src/workspaces/solution/project/dist/src/index.js.map @@ -126,15 +129,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/solution/project/tsconfig.json'... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. - project/tsconfig.json:3:25 - error TS5107: Option 'moduleResolution=node10' 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. 3 "moduleResolution": "node",    ~~~~~~ +project/tsconfig.json:8:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +8 "outDir": "dist", +   ~~~~~~~~ + TSFILE: /home/src/workspaces/solution/project/dist/src/hello.json TSFILE: /home/src/workspaces/solution/project/dist/src/index.js TSFILE: /home/src/workspaces/solution/project/dist/src/index.js.map 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 8365531cd3e..31eb0b0e2e3 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,9 +95,12 @@ declare const console: { log(msg: any): void; }; D:\home\src\tslibs\TS\Lib\tsc.js -p D:\Work\pkg1 --explainFiles Output:: -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:13:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +13 "outDir": "./dist", +   ~~~~~~~~ + tsconfig.json:14: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. @@ -121,7 +124,7 @@ src/utils/index.ts src/main.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 3 errors in the same file, starting at: tsconfig.json:14 +Found 3 errors in the same file, starting at: tsconfig.json:13 diff --git a/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js b/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js index 165b9a73776..25b7f4aa0d9 100644 --- a/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js +++ b/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js @@ -304,9 +304,6 @@ Resolving real path for '/home/src/projects/component-type-checker/node_modules/ ======== Module name '@component-type-checker/button' was successfully resolved to '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/index.ts' with Package ID '@component-type-checker/button/src/index.ts@0.0.2'. ======== File '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/src/package.json' does not exist. Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/.pnpm/@component-type-checker+button@0.0.2/node_modules/@component-type-checker/button/package.json'. -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. - tsconfig.json:8:25 - error TS5107: Option 'moduleResolution=node10' 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. @@ -319,6 +316,12 @@ 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. + Visit https://aka.ms/ts6 for migration information. + +10 "outDir": "dist" +   ~~~~~~~~ + ../../../../tslibs/TS/Lib/lib.es5.d.ts Library 'lib.es5.d.ts' specified in compilerOptions ../../node_modules/.pnpm/@component-type-checker+button@0.0.1/node_modules/@component-type-checker/button/src/index.ts 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 e3ac9883072..08bc16edc0e 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,9 +46,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +3 "outDir": "../output", +   ~~~~~~~~ + [HH:MM:SS AM] Found 1 error. Watching for file changes. 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 d988d5eba3e..90e4592c7de 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,9 +38,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:5:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +5 "outDir": "Static/scripts/" +   ~~~~~~~~ + [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -123,9 +126,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:5:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +5 "outDir": "Static/scripts/" +   ~~~~~~~~ + [HH:MM:SS AM] Found 1 error. Watching for file changes. 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 60b8b399cc4..ee1448d00d4 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,9 +48,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:7:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +7 "outDir": "../dist" +   ~~~~~~~~ + [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -147,9 +150,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:7:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +7 "outDir": "../dist" +   ~~~~~~~~ + [HH:MM:SS AM] Found 1 error. Watching for file changes. 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 65a2da50119..45b1659c774 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,9 +33,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +3 "outDir": "dist" +   ~~~~~~~~ + [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -162,13 +165,16 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. - Visit https://aka.ms/ts6 for migration information. - error TS6053: File '/user/username/projects/myproject/src/file2.ts' not found. 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. + Visit https://aka.ms/ts6 for migration information. + +3 "outDir": "dist" +   ~~~~~~~~ + [HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -248,9 +254,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +3 "outDir": "dist" +   ~~~~~~~~ + [HH:MM:SS AM] Found 1 error. Watching for file changes. 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 584720cd122..5b59d79f43b 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,9 +34,12 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +3 "outDir": "dist", +   ~~~~~~~~ + [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -157,9 +160,12 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. +tsconfig.json:3:5 - error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. Visit https://aka.ms/ts6 for migration information. +3 "outDir": "dist", +   ~~~~~~~~ + [HH:MM:SS AM] Found 1 error. Watching for file changes. 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 f01313dbb39..71e7058d63b 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 @@ -271,11 +271,6 @@ Info seq [hh:mm:ss:mss] event: } ] }, - { - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", - "code": 5011, - "category": "error" - }, { "start": { "line": 7, @@ -290,6 +285,20 @@ Info seq [hh:mm:ss:mss] event: "category": "error", "fileName": "/Users/someuser/work/applications/frontend/tsconfig.json" }, + { + "start": { + "line": 17, + "offset": 5 + }, + "end": { + "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.", + "code": 5011, + "category": "error", + "fileName": "/Users/someuser/work/applications/frontend/tsconfig.json" + }, { "start": { "line": 22, 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 cb456989a01..bda6c31c28d 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 @@ -271,11 +271,6 @@ Info seq [hh:mm:ss:mss] event: } ] }, - { - "text": "Inferred common source directory differs from tsconfig directory, output layout will be changed.\n Visit https://aka.ms/ts6 for migration information.", - "code": 5011, - "category": "error" - }, { "start": { "line": 7, @@ -290,6 +285,20 @@ Info seq [hh:mm:ss:mss] event: "category": "error", "fileName": "/Users/someuser/work/applications/frontend/tsconfig.json" }, + { + "start": { + "line": 17, + "offset": 5 + }, + "end": { + "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.", + "code": 5011, + "category": "error", + "fileName": "/Users/someuser/work/applications/frontend/tsconfig.json" + }, { "start": { "line": 22, 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 068f3701012..25ce482f326 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 @@ -341,9 +341,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -1323,9 +1332,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -1670,9 +1688,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { 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 11f81ebb32a..e86fbefbd7f 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 @@ -294,9 +294,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -1051,9 +1060,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -1295,9 +1313,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { 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 8363dba258b..5372423a986 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 @@ -252,9 +252,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -939,9 +948,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -1153,9 +1171,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { 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 737a44a8a91..ae58a0ec939 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 @@ -249,9 +249,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -1215,9 +1224,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -2585,9 +2603,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -3758,9 +3785,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { 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 4a0a6348f2c..37da65c00ea 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 @@ -339,9 +339,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -1409,9 +1418,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -2370,9 +2388,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -3081,9 +3108,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { @@ -4815,9 +4851,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" }, { "start": { 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 237b7484302..23222984145 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 @@ -555,9 +555,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/home/src/projects/project/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "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 e470e13aabf..06b20ff41a1 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 @@ -555,9 +555,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/home/src/projects/project/tsconfig.json", "diagnostics": [ { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "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 8cd8aff5032..4902e288823 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js @@ -211,9 +211,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/src/tsconfig.json", "diagnostics": [ { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/src/tsconfig.json" }, { "start": { 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 8835116c025..f301f704770 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 @@ -223,9 +223,18 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/user/username/projects/myproject/src/tsconfig.json", "diagnostics": [ { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "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.", "code": 5011, - "category": "error" + "category": "error", + "fileName": "/user/username/projects/myproject/src/tsconfig.json" }, { "start": {