From 859f6c106126c500eadcd7ab3f21dacddc6f5055 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 4 Sep 2025 12:11:14 -0700 Subject: [PATCH 1/7] Default rootDir as config location unless specified --- src/compiler/emitter.ts | 2 +- src/compiler/moduleNameResolver.ts | 2 +- src/compiler/utilities.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index c60fd92787275..4db55d865d7bf 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -646,7 +646,7 @@ export function getCommonSourceDirectory( commonSourceDirectory = getNormalizedAbsolutePath(options.rootDir, currentDirectory); checkSourceFilesBelongToPath?.(options.rootDir); } - else if (options.composite && options.configFilePath) { + else if (options.configFilePath) { // Project compilations never infer their root from the input source paths commonSourceDirectory = getDirectoryPath(normalizeSlashes(options.configFilePath)); checkSourceFilesBelongToPath?.(commonSourceDirectory); diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index 3fa7da5d5c960..53644bb776776 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -2884,7 +2884,7 @@ function getLoadModuleFromTargetExportOrImport(extensions: Extensions, state: Mo const commonSourceDirGuesses: string[] = []; // A `rootDir` compiler option strongly indicates the root location // A `composite` project is using project references and has it's common src dir set to `.`, so it shouldn't need to check any other locations - if (state.compilerOptions.rootDir || (state.compilerOptions.composite && state.compilerOptions.configFilePath)) { + if (state.compilerOptions.rootDir || state.compilerOptions.configFilePath) { const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], state.host.getCurrentDirectory?.() || "", getCanonicalFileName)); commonSourceDirGuesses.push(commonDir); } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 3f79843f31a30..870c413d9ebb1 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -6622,7 +6622,7 @@ export function sourceFileMayBeEmitted(sourceFile: SourceFile, host: SourceFileM // Json file is not emitted if outDir is not specified if (!options.outDir) return false; // Otherwise if rootDir or composite config file, we know common sourceDir and can check if file would be emitted in same location - if (options.rootDir || (options.composite && options.configFilePath)) { + if (options.rootDir || options.configFilePath) { const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory()); const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName); if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === Comparison.EqualTo) return false; From 25d86d27239e066a1dd2392c78f8ecf28474578a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 4 Sep 2025 12:20:43 -0700 Subject: [PATCH 2/7] Tests --- .../monorepoSymlinkedSiblingPackages.ts | 3 + .../unittests/tsbuild/outputPaths.ts | 4 +- .../reference/commonSourceDirectory_dts.js | 8 +- .../commonSourceDirectory_dts.js.map | 6 +- .../commonSourceDirectory_dts.sourcemap.txt | 12 +- ...NameWithOutDirDeclDirNestedDirs.errors.txt | 41 ---- ...port_aliasWithRoot_realRootFile.errors.txt | 32 ++++ ...n_rootImport_aliasWithRoot_realRootFile.js | 5 - ...rt_noAliasWithRoot_realRootFile.errors.txt | 32 ++++ ...rootImport_noAliasWithRoot_realRootFile.js | 5 - ...-dts-generation-errors-with-incremental.js | 2 +- .../outFile/reports-dts-generation-errors.js | 2 +- .../changes-incremental-declaration.js | 66 +++---- .../noEmit/outFile/changes-incremental.js | 30 +-- ...-initial-noEmit-incremental-declaration.js | 66 +++---- ...changes-with-initial-noEmit-incremental.js | 30 +-- .../when-rootDir-is-not-specified.js | 6 +- ...iles-containing-json-file-non-composite.js | 8 +- .../include-and-files-non-composite.js | 8 +- ...file-name-matches-ts-file-non-composite.js | 8 +- ...-along-with-other-include-non-composite.js | 8 +- .../include-only-non-composite.js | 8 +- ...t-outside-configDirectory-non-composite.js | 13 +- .../sourcemap-non-composite.js | 26 +-- .../outFile/reports-dts-generation-errors.js | 2 +- ...ing-Windows-paths-and-uppercase-letters.js | 24 +-- .../tsc/moduleResolution/pnpm-style-layout.js | 2 +- .../changes-incremental-declaration.js | 66 +++---- .../tsc/noEmit/outFile/changes-incremental.js | 30 +-- ...-initial-noEmit-incremental-declaration.js | 66 +++---- ...changes-with-initial-noEmit-incremental.js | 30 +-- ...ject-contains-invalid-project-reference.js | 2 +- ...ltiple-declaration-files-in-the-program.js | 4 +- ...-recursive-directory-watcher-is-invoked.js | 8 +- .../diagnostics-from-cache.js | 8 +- .../nodeNextWatch/esm-mode-file-is-edited.js | 4 +- .../packages-outside-project-folder-Linux.js | 124 +++++-------- .../packages-outside-project-folder-MacOs.js | 136 +++++--------- ...packages-outside-project-folder-Windows.js | 124 +++++-------- ...ages-outside-project-folder-built-Linux.js | 126 +++++-------- ...ages-outside-project-folder-built-MacOs.js | 125 +++++-------- ...es-outside-project-folder-built-Windows.js | 113 ++++------- ...hronous-watch-directory-renaming-a-file.js | 20 +- ...ory-with-outDir-and-declaration-enabled.js | 16 +- ...-project-folder-Linux-canUseWatchEvents.js | 175 ++++++------------ .../packages-outside-project-folder-Linux.js | 144 ++++++-------- ...-project-folder-MacOs-canUseWatchEvents.js | 165 ++++++----------- .../packages-outside-project-folder-MacOs.js | 147 ++++++--------- ...roject-folder-Windows-canUseWatchEvents.js | 167 ++++++----------- ...packages-outside-project-folder-Windows.js | 131 +++++-------- ...ct-folder-built-Linux-canUseWatchEvents.js | 153 +++++---------- ...ages-outside-project-folder-built-Linux.js | 145 ++++++--------- ...ct-folder-built-MacOs-canUseWatchEvents.js | 149 +++++---------- ...ages-outside-project-folder-built-MacOs.js | 139 +++++--------- ...-folder-built-Windows-canUseWatchEvents.js | 145 +++++---------- ...es-outside-project-folder-built-Windows.js | 123 +++++------- 56 files changed, 1253 insertions(+), 1989 deletions(-) delete mode 100644 tests/baselines/reference/nodeNextPackageSelfNameWithOutDirDeclDirNestedDirs.errors.txt create mode 100644 tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt create mode 100644 tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt diff --git a/src/testRunner/unittests/helpers/monorepoSymlinkedSiblingPackages.ts b/src/testRunner/unittests/helpers/monorepoSymlinkedSiblingPackages.ts index 2f0139f2595d3..7084298e1a72a 100644 --- a/src/testRunner/unittests/helpers/monorepoSymlinkedSiblingPackages.ts +++ b/src/testRunner/unittests/helpers/monorepoSymlinkedSiblingPackages.ts @@ -151,6 +151,7 @@ function getMonorepoSymlinkedSiblingPackagesSysWithUnRelatedFolders( compilerOptions: { outDir: "lib", declaration: true, + rootDir: "src", }, include: ["src/**/*.ts"], }), @@ -169,6 +170,7 @@ function getMonorepoSymlinkedSiblingPackagesSysWithUnRelatedFolders( compilerOptions: { outDir: "lib", declaration: true, + rootDir: "src", }, include: ["src/**/*.ts"], }), @@ -183,6 +185,7 @@ function getMonorepoSymlinkedSiblingPackagesSysWithUnRelatedFolders( "/home/src/projects/b/2/b-impl/b/tsconfig.json": jsonToReadableText({ compilerOptions: { outDir: "lib", + rootDir: "src", }, include: ["src/**/*.ts"], }), diff --git a/src/testRunner/unittests/tsbuild/outputPaths.ts b/src/testRunner/unittests/tsbuild/outputPaths.ts index 48007978ace8b..40a30f6e6d98a 100644 --- a/src/testRunner/unittests/tsbuild/outputPaths.ts +++ b/src/testRunner/unittests/tsbuild/outputPaths.ts @@ -26,7 +26,7 @@ describe("unittests:: tsbuild:: outputPaths::", () => { ...input, }); - it("verify getOutputFileNames", () => { + it("verify getOutputFileNames " + input.subScenario, () => { const sys = input.sys(); assert.deepEqual( ts.getOutputFileNames( @@ -58,7 +58,7 @@ describe("unittests:: tsbuild:: outputPaths::", () => { }), }), edits, - }, ["/home/src/workspaces/project/dist/index.js"]); + }, ["/home/src/workspaces/project/dist/src/index.js"]); verify({ subScenario: "when rootDir is not specified and is composite", diff --git a/tests/baselines/reference/commonSourceDirectory_dts.js b/tests/baselines/reference/commonSourceDirectory_dts.js index 6d3ac4c81d316..e4b36a2cdc05b 100644 --- a/tests/baselines/reference/commonSourceDirectory_dts.js +++ b/tests/baselines/reference/commonSourceDirectory_dts.js @@ -8,14 +8,14 @@ declare const y: number; export const x = y; -//// [/app/bin/index.js] +//// [/app/bin/src/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; /// exports.x = y; -//# sourceMappingURL=../src/myMapRoot/index.js.map +//# sourceMappingURL=../../myMapRoot/src/index.js.map -//// [/app/bin/index.d.ts] -/// +//// [/app/bin/src/index.d.ts] +/// export declare const x: number; diff --git a/tests/baselines/reference/commonSourceDirectory_dts.js.map b/tests/baselines/reference/commonSourceDirectory_dts.js.map index 8cf42ea16e701..ee62005ba3b07 100644 --- a/tests/baselines/reference/commonSourceDirectory_dts.js.map +++ b/tests/baselines/reference/commonSourceDirectory_dts.js.map @@ -1,3 +1,3 @@ -//// [/app/bin/index.js.map] -{"version":3,"file":"index.js","sourceRoot":"mySourceRoot/","sources":["index.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AAC3C,QAAA,CAAC,GAAG,CAAC,CAAC"} -//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCmV4cG9ydHMueCA9IHZvaWQgMDsNCi8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4uL2xpYi9iYXIuZC50cyIgcHJlc2VydmU9InRydWUiIC8+DQpleHBvcnRzLnggPSB5Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9Li4vc3JjL215TWFwUm9vdC9pbmRleC5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoibXlTb3VyY2VSb290LyIsInNvdXJjZXMiOlsiaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsd0RBQXdEO0FBQzNDLFFBQUEsQ0FBQyxHQUFHLENBQUMsQ0FBQyJ9,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi4vbGliL2Jhci5kLnRzIiBwcmVzZXJ2ZT0idHJ1ZSIgLz4KZXhwb3J0IGNvbnN0IHggPSB5Owo= +//// [/app/bin/src/index.js.map] +{"version":3,"file":"index.js","sourceRoot":"mySourceRoot/","sources":["src/index.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AAC3C,QAAA,CAAC,GAAG,CAAC,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCmV4cG9ydHMueCA9IHZvaWQgMDsNCi8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4uL2xpYi9iYXIuZC50cyIgcHJlc2VydmU9InRydWUiIC8+DQpleHBvcnRzLnggPSB5Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9Li4vLi4vbXlNYXBSb290L3NyYy9pbmRleC5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoibXlTb3VyY2VSb290LyIsInNvdXJjZXMiOlsic3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHdEQUF3RDtBQUMzQyxRQUFBLENBQUMsR0FBRyxDQUFDLENBQUMifQ==,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi4vbGliL2Jhci5kLnRzIiBwcmVzZXJ2ZT0idHJ1ZSIgLz4KZXhwb3J0IGNvbnN0IHggPSB5Owo= diff --git a/tests/baselines/reference/commonSourceDirectory_dts.sourcemap.txt b/tests/baselines/reference/commonSourceDirectory_dts.sourcemap.txt index c98d6a26d67bc..24036677d75db 100644 --- a/tests/baselines/reference/commonSourceDirectory_dts.sourcemap.txt +++ b/tests/baselines/reference/commonSourceDirectory_dts.sourcemap.txt @@ -1,12 +1,12 @@ =================================================================== JsFile: index.js -mapUrl: ../src/myMapRoot/index.js.map +mapUrl: ../../myMapRoot/src/index.js.map sourceRoot: mySourceRoot/ -sources: index.ts +sources: src/index.ts =================================================================== ------------------------------------------------------------------- -emittedFile:/app/bin/index.js -sourceFile:index.ts +emittedFile:/app/bin/src/index.js +sourceFile:src/index.ts ------------------------------------------------------------------- >>>"use strict"; >>>Object.defineProperty(exports, "__esModule", { value: true }); @@ -26,7 +26,7 @@ sourceFile:index.ts 4 > ^^^ 5 > ^ 6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > >export const 2 > @@ -41,4 +41,4 @@ sourceFile:index.ts 5 >Emitted(5, 14) Source(2, 19) + SourceIndex(0) 6 >Emitted(5, 15) Source(2, 20) + SourceIndex(0) --- ->>>//# sourceMappingURL=../src/myMapRoot/index.js.map \ No newline at end of file +>>>//# sourceMappingURL=../../myMapRoot/src/index.js.map \ No newline at end of file diff --git a/tests/baselines/reference/nodeNextPackageSelfNameWithOutDirDeclDirNestedDirs.errors.txt b/tests/baselines/reference/nodeNextPackageSelfNameWithOutDirDeclDirNestedDirs.errors.txt deleted file mode 100644 index 500d58c848515..0000000000000 --- a/tests/baselines/reference/nodeNextPackageSelfNameWithOutDirDeclDirNestedDirs.errors.txt +++ /dev/null @@ -1,41 +0,0 @@ -error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'package.json'. Supply the `rootDir` compiler option to disambiguate. - - -!!! error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file 'package.json'. Supply the `rootDir` compiler option to disambiguate. -==== tsconfig.json (0 errors) ==== - { - "compilerOptions": { - "module": "nodenext", - "outDir": "./dist", - "declarationDir": "./types", - "declaration": true - } - } -==== index.ts (0 errors) ==== - export {srcthing as thing} from "./src/thing.js"; -==== src/thing.ts (0 errors) ==== - // The following import should cause `index.ts` - // to be included in the build, which will, - // in turn, cause the common src directory to not be `src` - // (the harness is wierd here in that noImplicitReferences makes only - // this file get loaded as an entrypoint and emitted, while on the - // real command-line we'll crawl the imports for that set - a limitation - // of the harness, I suppose) - import * as me from "@this/package"; - - me.thing(); - - export function srcthing(): void {} - - -==== package.json (0 errors) ==== - { - "name": "@this/package", - "type": "module", - "exports": { - ".": { - "default": "./dist/index.js", - "types": "./types/index.d.ts" - } - } - } \ 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 new file mode 100644 index 0000000000000..cf0d101e887f9 --- /dev/null +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt @@ -0,0 +1,32 @@ +error TS5055: Cannot write file '/bar.js' because it would overwrite input file. +/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 TS5055: Cannot write file '/bar.js' because it would overwrite input file. +==== /root/tsconfig.json (0 errors) ==== + { + "compilerOptions": { + "baseUrl": ".", + "paths": { + "/*": ["./src/*"] + }, + "allowJs": true, + "outDir": "bin" + } + } + +==== /root/a.ts (2 errors) ==== + import { foo } from "/foo"; + ~~~~~~ +!!! error TS6059: File '/foo.ts' is not under 'rootDir' '/root'. 'rootDir' is expected to contain all source files. + import { bar } from "/bar"; + ~~~~~~ +!!! error TS6059: File '/bar.js' is not under 'rootDir' '/root'. 'rootDir' is expected to contain all source files. + +==== /foo.ts (0 errors) ==== + export function foo() {} + +==== /bar.js (0 errors) ==== + export function bar() {} + \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.js b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.js index 194e02979d3a4..75cc9125238d7 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.js +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.js @@ -16,11 +16,6 @@ import { bar } from "/bar"; Object.defineProperty(exports, "__esModule", { value: true }); exports.foo = foo; function foo() { } -//// [bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } //// [a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt new file mode 100644 index 0000000000000..a603413ee4a4f --- /dev/null +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt @@ -0,0 +1,32 @@ +error TS5055: Cannot write file '/bar.js' because it would overwrite input file. +/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 TS5055: Cannot write file '/bar.js' because it would overwrite input file. +==== /root/tsconfig.json (0 errors) ==== + { + "compilerOptions": { + "baseUrl": ".", + "paths": { + "*": ["./src/*"] + }, + "allowJs": true, + "outDir": "bin" + } + } + +==== /root/a.ts (2 errors) ==== + import { foo } from "/foo"; + ~~~~~~ +!!! error TS6059: File '/foo.ts' is not under 'rootDir' '/root'. 'rootDir' is expected to contain all source files. + import { bar } from "/bar"; + ~~~~~~ +!!! error TS6059: File '/bar.js' is not under 'rootDir' '/root'. 'rootDir' is expected to contain all source files. + +==== /foo.ts (0 errors) ==== + export function foo() {} + +==== /bar.js (0 errors) ==== + export function bar() {} + \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.js b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.js index 27ea060dd7f13..99fe5541922ae 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.js +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.js @@ -16,11 +16,6 @@ import { bar } from "/bar"; Object.defineProperty(exports, "__esModule", { value: true }); exports.foo = foo; function foo() { } -//// [bar.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = bar; -function bar() { } //// [a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js index 513495c02bbe1..48d31d89f0fc1 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js @@ -72,7 +72,7 @@ Found 1 error. //// [/home/src/workspaces/project/outFile.js] -define("index", ["require", "exports", "ky"], function (require, exports, ky_1) { +define("src/index", ["require", "exports", "ky"], function (require, exports, ky_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.api = void 0; diff --git a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js index 7efc00483106f..86200f347460e 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js @@ -73,7 +73,7 @@ Found 1 error. //// [/home/src/workspaces/project/outFile.js] -define("index", ["require", "exports", "ky"], function (require, exports, ky_1) { +define("src/index", ["require", "exports", "ky"], function (require, exports, ky_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.api = void 0; diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js index e77561c47c213..3f6dd171a255f 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js @@ -73,7 +73,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -85,7 +85,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -97,17 +97,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -123,20 +123,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; @@ -634,7 +634,7 @@ Found 3 errors. //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -646,7 +646,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -658,17 +658,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -684,20 +684,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop1: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; @@ -1101,7 +1101,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -1113,7 +1113,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -1125,17 +1125,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -1151,20 +1151,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js index 1b823c6733191..526329817d0b1 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js @@ -72,7 +72,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -84,7 +84,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -96,17 +96,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -609,7 +609,7 @@ Found 3 errors. //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -621,7 +621,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -633,17 +633,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -1054,7 +1054,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -1066,7 +1066,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -1078,17 +1078,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js index 925f30999f8ed..5a72850a96538 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js @@ -221,7 +221,7 @@ Found 1 error. } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -233,7 +233,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -245,17 +245,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -271,20 +271,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; @@ -449,7 +449,7 @@ Found 3 errors. } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -461,7 +461,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -473,17 +473,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -499,20 +499,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop1: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; @@ -698,7 +698,7 @@ Found 1 error. } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -710,7 +710,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -722,17 +722,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -748,20 +748,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js index e99c95f87fe5f..f8b8179104b12 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js @@ -218,7 +218,7 @@ Found 1 error. } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -230,7 +230,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -242,17 +242,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -425,7 +425,7 @@ Found 3 errors. } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -437,7 +437,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -449,17 +449,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -652,7 +652,7 @@ Found 1 error. } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -664,7 +664,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -676,17 +676,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; 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 1aa82669e5969..26e717ebda234 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 @@ -37,7 +37,7 @@ Output:: -//// [/home/src/workspaces/project/dist/index.js] +//// [/home/src/workspaces/project/dist/src/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; @@ -68,7 +68,7 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/index.ts' is older than output 'dist/index.js' +[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/index.ts' is older than output 'dist/src/index.js' @@ -83,6 +83,6 @@ Input:: Output:: -//// [/home/src/workspaces/project/dist/index.js] file written with same contents +//// [/home/src/workspaces/project/dist/src/index.js] file written with same contents exitCode:: ExitStatus.Success 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 2dc33dc75cfe7..9fab5ee581738 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,8 +57,8 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js +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 ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -72,13 +72,13 @@ Found 1 error. -//// [/home/src/workspaces/solution/project/dist/hello.json] +//// [/home/src/workspaces/solution/project/dist/src/hello.json] { "hello": "world" } -//// [/home/src/workspaces/solution/project/dist/index.js] +//// [/home/src/workspaces/solution/project/dist/src/index.js] "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; 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 bd6458c8de221..ed24eb8eb1278 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,8 +59,8 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js +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 ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -74,13 +74,13 @@ Found 1 error. -//// [/home/src/workspaces/solution/project/dist/hello.json] +//// [/home/src/workspaces/solution/project/dist/src/hello.json] { "hello": "world" } -//// [/home/src/workspaces/solution/project/dist/index.js] +//// [/home/src/workspaces/solution/project/dist/src/index.js] "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; 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 ff3e31cec637c..bf9ca97a65558 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,8 +57,8 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/index.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js +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 ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -72,13 +72,13 @@ Found 1 error. -//// [/home/src/workspaces/solution/project/dist/index.json] +//// [/home/src/workspaces/solution/project/dist/src/index.json] { "hello": "world" } -//// [/home/src/workspaces/solution/project/dist/index.js] +//// [/home/src/workspaces/solution/project/dist/src/index.js] "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; 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 423aff995b06a..d584ac13d6754 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,8 +57,8 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js +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 ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -72,13 +72,13 @@ Found 1 error. -//// [/home/src/workspaces/solution/project/dist/hello.json] +//// [/home/src/workspaces/solution/project/dist/src/hello.json] { "hello": "world" } -//// [/home/src/workspaces/solution/project/dist/index.js] +//// [/home/src/workspaces/solution/project/dist/src/index.js] "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; 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 855cd0276ce0f..71245219d20e3 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js @@ -56,8 +56,8 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js +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 ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -70,13 +70,13 @@ Found 1 error. -//// [/home/src/workspaces/solution/project/dist/hello.json] +//// [/home/src/workspaces/solution/project/dist/src/hello.json] { "hello": "world" } -//// [/home/src/workspaces/solution/project/dist/index.js] +//// [/home/src/workspaces/solution/project/dist/src/index.js] "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; 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 a876a42d1f4b3..c34d3b05f0881 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,8 +56,7 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/project/src/index.js +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 Default library for target 'es5' @@ -65,20 +64,12 @@ hello.json Imported via "../../hello.json" from file 'project/src/index.ts' project/src/index.ts Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -[HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/solution/project/tsconfig.json'... - Found 1 error. -//// [/home/src/workspaces/solution/project/dist/hello.json] -{ - "hello": "world" -} - - -//// [/home/src/workspaces/solution/project/dist/project/src/index.js] +//// [/home/src/workspaces/solution/project/dist/src/index.js] "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js index ea9735b086ff0..ef7f77c0cc406 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js @@ -58,9 +58,9 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js -TSFILE: /home/src/workspaces/solution/project/dist/index.js.map +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 TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -74,16 +74,16 @@ Found 1 error. -//// [/home/src/workspaces/solution/project/dist/hello.json] +//// [/home/src/workspaces/solution/project/dist/src/hello.json] { "hello": "world" } -//// [/home/src/workspaces/solution/project/dist/index.js.map] -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAgC;AAChC,kBAAe,oBAAK,CAAC,KAAK,CAAA"} +//// [/home/src/workspaces/solution/project/dist/src/index.js.map] +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAgC;AAChC,kBAAe,oBAAK,CAAC,KAAK,CAAA"} -//// [/home/src/workspaces/solution/project/dist/index.js] +//// [/home/src/workspaces/solution/project/dist/src/index.js] "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; @@ -128,9 +128,9 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js -TSFILE: /home/src/workspaces/solution/project/dist/index.js.map +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 TSFILE: /home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -144,9 +144,9 @@ Found 1 error. -//// [/home/src/workspaces/solution/project/dist/hello.json] file written with same contents -//// [/home/src/workspaces/solution/project/dist/index.js.map] file written with same contents -//// [/home/src/workspaces/solution/project/dist/index.js] file written with same contents +//// [/home/src/workspaces/solution/project/dist/src/hello.json] file written with same contents +//// [/home/src/workspaces/solution/project/dist/src/index.js.map] file written with same contents +//// [/home/src/workspaces/solution/project/dist/src/index.js] file written with same contents //// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo] file written with same contents //// [/home/src/workspaces/solution/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents diff --git a/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js b/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js index 11af8a0fc70bf..0955ff8ba0541 100644 --- a/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js +++ b/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js @@ -63,7 +63,7 @@ Found 1 error in src/index.ts:2 //// [/home/src/workspaces/project/outFile.js] -define("index", ["require", "exports", "ky"], function (require, exports, ky_1) { +define("src/index", ["require", "exports", "ky"], function (require, exports, ky_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.api = void 0; 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 cba4c6f8f2a41..20e0d64f0c1d3 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 @@ -118,15 +118,15 @@ Found 1 error in tsconfig.json:21 //// [D:/home/src/tslibs/TS/Lib/lib.es2017.full.d.ts] *Lib* -//// [D:/Work/pkg1/dist/utils/type-helpers.js.map] -{"version":3,"file":"type-helpers.js","sourceRoot":"","sources":["../../src/utils/type-helpers.ts"],"names":[],"mappings":""} +//// [D:/Work/pkg1/dist/src/utils/type-helpers.js.map] +{"version":3,"file":"type-helpers.js","sourceRoot":"","sources":["../../../src/utils/type-helpers.ts"],"names":[],"mappings":""} -//// [D:/Work/pkg1/dist/utils/type-helpers.js] +//// [D:/Work/pkg1/dist/src/utils/type-helpers.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=type-helpers.js.map -//// [D:/Work/pkg1/dist/utils/type-helpers.d.ts] +//// [D:/Work/pkg1/dist/src/utils/type-helpers.d.ts] export type MyReturnType = { new (...args: any[]): any; }; @@ -135,10 +135,10 @@ export interface MyType extends Function { } -//// [D:/Work/pkg1/dist/utils/index.js.map] -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;AAEA,kCAMC;AAND,SAAgB,WAAW,CAAI,QAAmB;IAC9C,MAAe,gBAAgB;QAC3B,gBAAe,CAAC;KACnB;IAED,OAAO,gBAAgC,CAAC;AAC5C,CAAC"} +//// [D:/Work/pkg1/dist/src/utils/index.js.map] +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;AAEA,kCAMC;AAND,SAAgB,WAAW,CAAI,QAAmB;IAC9C,MAAe,gBAAgB;QAC3B,gBAAe,CAAC;KACnB;IAED,OAAO,gBAAgC,CAAC;AAC5C,CAAC"} -//// [D:/Work/pkg1/dist/utils/index.js] +//// [D:/Work/pkg1/dist/src/utils/index.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PartialType = PartialType; @@ -150,15 +150,15 @@ function PartialType(classRef) { } //# sourceMappingURL=index.js.map -//// [D:/Work/pkg1/dist/utils/index.d.ts] +//// [D:/Work/pkg1/dist/src/utils/index.d.ts] import { MyType, MyReturnType } from './type-helpers'; export declare function PartialType(classRef: MyType): MyReturnType; -//// [D:/Work/pkg1/dist/main.js.map] -{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AAEtC,MAAM,MAAM;CAAG;AAEf,MAAa,GAAI,SAAQ,IAAA,mBAAW,EAAC,MAAM,CAAC;CAE3C;AAFD,kBAEC"} +//// [D:/Work/pkg1/dist/src/main.js.map] +{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AAEtC,MAAM,MAAM;CAAG;AAEf,MAAa,GAAI,SAAQ,IAAA,mBAAW,EAAC,MAAM,CAAC;CAE3C;AAFD,kBAEC"} -//// [D:/Work/pkg1/dist/main.js] +//// [D:/Work/pkg1/dist/src/main.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Sub = void 0; @@ -170,7 +170,7 @@ class Sub extends (0, utils_1.PartialType)(Common) { exports.Sub = Sub; //# sourceMappingURL=main.js.map -//// [D:/Work/pkg1/dist/main.d.ts] +//// [D:/Work/pkg1/dist/src/main.d.ts] declare const Sub_base: import("./utils/type-helpers").MyReturnType; export declare class Sub extends Sub_base { id: string; diff --git a/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js b/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js index 03f0c8f48f353..9d931dab8c928 100644 --- a/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js +++ b/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js @@ -358,7 +358,7 @@ Found 1 error in tsconfig.json:8 //// [/home/src/tslibs/TS/Lib/lib.es5.d.ts] *Lib* -//// [/home/src/projects/component-type-checker/packages/app/dist/app.js] +//// [/home/src/projects/component-type-checker/packages/app/dist/src/app.js] import { createButton } from "@component-type-checker/button"; var button = createButton(); diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js index 577947584c186..ad49fff6b55bc 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js @@ -66,7 +66,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -78,7 +78,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -90,17 +90,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -116,20 +116,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; @@ -571,7 +571,7 @@ Errors Files //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -583,7 +583,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -595,17 +595,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -621,20 +621,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop1: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; @@ -1010,7 +1010,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -1022,7 +1022,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -1034,17 +1034,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -1060,20 +1060,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js index 59a3860690c43..1b24e81b553f8 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js @@ -65,7 +65,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -77,7 +77,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -89,17 +89,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -546,7 +546,7 @@ Errors Files //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -558,7 +558,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -570,17 +570,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -963,7 +963,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -975,7 +975,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -987,17 +987,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js index cdf6fed6ec378..a4824f508852c 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js @@ -207,7 +207,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -219,7 +219,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -231,17 +231,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -257,20 +257,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; @@ -432,7 +432,7 @@ Errors Files } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -444,7 +444,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -456,17 +456,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -482,20 +482,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop1: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; @@ -667,7 +667,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -679,7 +679,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -691,17 +691,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -717,20 +717,20 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.d.ts] -declare module "class" { +declare module "src/class" { export class classC { prop: number; } } -declare module "indirectClass" { - import { classC } from "class"; +declare module "src/indirectClass" { + import { classC } from "src/class"; export class indirectClass { classC: classC; } } -declare module "directUse" { } -declare module "indirectUse" { } -declare module "noChangeFile" { +declare module "src/directUse" { } +declare module "src/indirectUse" { } +declare module "src/noChangeFile" { export function writeLog(s: string): void; } declare function someFunc(arguments: boolean, ...rest: any[]): void; diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js index c59d2541326eb..363814347296f 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js @@ -204,7 +204,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -216,7 +216,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -228,17 +228,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -408,7 +408,7 @@ Errors Files } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -420,7 +420,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -432,17 +432,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; @@ -621,7 +621,7 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 } //// [/home/src/workspaces/outFile.js] -define("class", ["require", "exports"], function (require, exports) { +define("src/class", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.classC = void 0; @@ -633,7 +633,7 @@ define("class", ["require", "exports"], function (require, exports) { }()); exports.classC = classC; }); -define("indirectClass", ["require", "exports", "class"], function (require, exports, class_1) { +define("src/indirectClass", ["require", "exports", "src/class"], function (require, exports, class_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.indirectClass = void 0; @@ -645,17 +645,17 @@ define("indirectClass", ["require", "exports", "class"], function (require, expo }()); exports.indirectClass = indirectClass; }); -define("directUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_1) { +define("src/directUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_1.indirectClass().classC.prop; }); -define("indirectUse", ["require", "exports", "indirectClass"], function (require, exports, indirectClass_2) { +define("src/indirectUse", ["require", "exports", "src/indirectClass"], function (require, exports, indirectClass_2) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); new indirectClass_2.indirectClass().classC.prop; }); -define("noChangeFile", ["require", "exports"], function (require, exports) { +define("src/noChangeFile", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeLog = writeLog; diff --git a/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js index 5ed0067c2d1c7..15ed1a4985846 100644 --- a/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js +++ b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js @@ -49,7 +49,7 @@ Found 1 error in tsconfig.json:7 //// [/home/src/workspaces/project/theApp.js] -define("main", ["require", "exports"], function (require, exports) { +define("src/main", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; 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 e11277372003f..8006b392c1ff8 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 @@ -56,7 +56,7 @@ Output:: -//// [/home/src/projects/a/b/output/main.js] +//// [/home/src/projects/a/b/output/src/main.js] var Main; (function (Main) { function fooBar() { } @@ -64,7 +64,7 @@ var Main; })(Main || (Main = {})); -//// [/home/src/projects/a/b/output/main2.js] +//// [/home/src/projects/a/b/output/src/main2.js] var main; (function (main) { var file4; 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 c5110153469e7..a7b26ccd9a8eb 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 @@ -43,11 +43,11 @@ Output:: -//// [/home/src/projects/a/rootFolder/project/Static/scripts/Javascript.js] +//// [/home/src/projects/a/rootFolder/project/Static/scripts/Scripts/Javascript.js] var zz = 10; -//// [/home/src/projects/a/rootFolder/project/Static/scripts/TypeScript.js] +//// [/home/src/projects/a/rootFolder/project/Static/scripts/Scripts/TypeScript.js] var z = 10; @@ -128,8 +128,8 @@ Output:: -//// [/home/src/projects/a/rootFolder/project/Static/scripts/Javascript.js] file written with same contents -//// [/home/src/projects/a/rootFolder/project/Static/scripts/TypeScript.js] +//// [/home/src/projects/a/rootFolder/project/Static/scripts/Scripts/Javascript.js] file written with same contents +//// [/home/src/projects/a/rootFolder/project/Static/scripts/Scripts/TypeScript.js] var zz30 = 100; diff --git a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js index ba1110fbcc661..b726c4e322ed8 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js @@ -72,14 +72,12 @@ File '/home/src/tslibs/package.json' does not exist. File '/home/src/package.json' does not exist. File '/home/package.json' does not exist. File '/package.json' does not exist. -error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file '/user/username/projects/myproject/package.json'. Supply the `rootDir` compiler option to disambiguate. - tsconfig.json:2:3 - error TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'. 2 "compilerOptions": {    ~~~~~~~~~~~~~~~~~ -[HH:MM:SS AM] Found 2 errors. Watching for file changes. +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -202,14 +200,12 @@ File '/home/src/tslibs/package.json' does not exist according to earlier cached File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -error TS2209: The project root is ambiguous, but is required to resolve export map entry '.' in file '/user/username/projects/myproject/package.json'. Supply the `rootDir` compiler option to disambiguate. - tsconfig.json:2:3 - error TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'. 2 "compilerOptions": {    ~~~~~~~~~~~~~~~~~ -[HH:MM:SS AM] Found 2 errors. Watching for file changes. +[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 d088b6271a0d7..e26e547c8d85d 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 @@ -55,7 +55,7 @@ Output:: //// [/home/src/tslibs/TS/Lib/lib.es2020.full.d.ts] *Lib* -//// [/home/src/projects/dist/index.js] +//// [/home/src/projects/dist/src/index.js] import * as Thing from "thing"; Thing.fn(); @@ -152,7 +152,7 @@ Output:: -//// [/home/src/projects/dist/index.js] file written with same contents +//// [/home/src/projects/dist/src/index.js] file written with same contents Program root files: [ diff --git a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-Linux.js b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-Linux.js index 0fd508fc2f919..563c10fabfab0 100644 --- a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-Linux.js +++ b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-Linux.js @@ -10,7 +10,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -39,7 +40,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -64,7 +66,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -98,7 +101,7 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/tsconfig.json 2 Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/src/index.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -267,6 +270,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -363,17 +367,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 151 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 151 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 152 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 152 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 154 @@ -413,26 +417,27 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 158 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 158 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 159 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 159 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } Timeout callback:: count: 1 -2: timerToUpdateChildWatches *new* +6: timerToUpdateChildWatches *new* Before running Timeout callback:: count: 1 -2: timerToUpdateChildWatches +6: timerToUpdateChildWatches +Host is moving to new time After running Timeout callback:: count: 1 Output:: DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules 1 undefined Failed Lookup Locations @@ -499,10 +504,10 @@ FsWatches:: {"inode":42} Timeout callback:: count: 1 -4: timerToInvalidateFailedLookupResolutions *new* +8: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 1 -4: timerToInvalidateFailedLookupResolutions +8: timerToInvalidateFailedLookupResolutions Host is moving to new time After running Timeout callback:: count: 1 @@ -512,10 +517,10 @@ Scheduling update Timeout callback:: count: 1 -5: timerToUpdateProgram *new* +9: timerToUpdateProgram *new* Before running Timeout callback:: count: 1 -5: timerToUpdateProgram +9: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 0 @@ -525,7 +530,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. @@ -706,6 +711,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -781,14 +787,10 @@ Input:: //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Output:: FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/c.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/c.d.ts 250 undefined Source file @@ -811,12 +813,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/ DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations @@ -841,12 +837,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/ DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations @@ -922,11 +912,11 @@ FsWatches *deleted*:: {"inode":150} Timeout callback:: count: 2 -18: timerToUpdateProgram *new* +20: timerToUpdateProgram *new* 23: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 2 -18: timerToUpdateProgram +20: timerToUpdateProgram 23: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 @@ -936,7 +926,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Close:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -1106,6 +1096,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -1148,6 +1139,10 @@ exitCode:: ExitStatus.undefined Change:: Build dependencies Input:: +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 151 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 152 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 158 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 159 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 163 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1183,31 +1178,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 167 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 168 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 168 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 169 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 170 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1228,24 +1210,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 171 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 174 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 175 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Timeout callback:: count: 1 25: timerToUpdateChildWatches *new* @@ -1290,7 +1259,7 @@ FsWatches:: /home/src/projects/a/1/a-impl/a: {"inode":19} /home/src/projects/a/1/a-impl/a/lib: *new* - {"inode":169} + {"inode":167} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1345,7 +1314,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. @@ -1474,11 +1443,11 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib: - {"inode":169} + {"inode":167} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* - {"inode":171} + {"inode":169} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1524,6 +1493,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, diff --git a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-MacOs.js b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-MacOs.js index 38d589d6d754f..86c485b555af5 100644 --- a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-MacOs.js +++ b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-MacOs.js @@ -10,7 +10,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -39,7 +40,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -64,7 +66,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -98,7 +101,7 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/tsconfig.json 2 Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/src/index.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -263,6 +266,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -359,17 +363,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 151 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 151 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 152 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 152 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 154 @@ -409,17 +413,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 158 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 158 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 159 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 159 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -439,12 +443,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/ DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Timeout callback:: count: 1 @@ -474,7 +478,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. @@ -657,6 +661,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -754,14 +759,10 @@ Input:: //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Output:: FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/c.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/c.d.ts 250 undefined Source file @@ -784,12 +785,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/ DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations @@ -813,12 +808,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/ DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations @@ -891,12 +880,12 @@ FsWatchesRecursive:: {"inode":4} Timeout callback:: count: 2 -23: timerToUpdateProgram *new* -28: timerToInvalidateFailedLookupResolutions *new* +21: timerToUpdateProgram *new* +24: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 2 -23: timerToUpdateProgram -28: timerToInvalidateFailedLookupResolutions +21: timerToUpdateProgram +24: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: @@ -905,7 +894,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Close:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -1067,7 +1056,7 @@ FsWatchesRecursive *deleted*:: {"inode":4} Timeout callback:: count: 0 -28: timerToInvalidateFailedLookupResolutions *deleted* +24: timerToInvalidateFailedLookupResolutions *deleted* Program root files: [ @@ -1075,6 +1064,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -1098,6 +1088,10 @@ exitCode:: ExitStatus.undefined Change:: Build dependencies Input:: +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 151 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 152 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 158 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 159 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 163 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1133,31 +1127,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 167 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 168 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 168 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 169 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 170 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1178,24 +1159,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 171 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 174 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 175 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Output:: DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations @@ -1213,21 +1181,14 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/ DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Timeout callback:: count: 1 -35: timerToInvalidateFailedLookupResolutions *new* +29: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 1 -35: timerToInvalidateFailedLookupResolutions +29: timerToInvalidateFailedLookupResolutions -Host is moving to new time After running Timeout callback:: count: 1 Output:: Scheduling update @@ -1235,10 +1196,10 @@ Scheduling update Timeout callback:: count: 1 -36: timerToUpdateProgram *new* +30: timerToUpdateProgram *new* Before running Timeout callback:: count: 1 -36: timerToUpdateProgram +30: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 0 @@ -1248,7 +1209,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. @@ -1377,9 +1338,9 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* - {"inode":171} + {"inode":169} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/package.json: {"inode":24} /home/src/projects/b: @@ -1429,6 +1390,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, diff --git a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-Windows.js b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-Windows.js index 6076290fcbad7..208d2a0b5c0aa 100644 --- a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-Windows.js +++ b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-Windows.js @@ -10,7 +10,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -39,7 +40,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -64,7 +66,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -98,7 +101,7 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/tsconfig.json 2 Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/src/index.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -263,6 +266,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -359,17 +363,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] @@ -409,17 +413,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -439,12 +443,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/ DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Timeout callback:: count: 1 @@ -474,7 +478,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. @@ -657,6 +661,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -754,14 +759,10 @@ Input:: //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Output:: FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/c.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/c.d.ts 250 undefined Source file @@ -782,12 +783,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/ DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations @@ -809,24 +804,18 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/ DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations Timeout callback:: count: 2 -23: timerToUpdateProgram *new* -28: timerToInvalidateFailedLookupResolutions *new* +21: timerToUpdateProgram *new* +24: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 2 -23: timerToUpdateProgram -28: timerToInvalidateFailedLookupResolutions +21: timerToUpdateProgram +24: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: @@ -835,7 +824,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Close:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -997,7 +986,7 @@ FsWatchesRecursive *deleted*:: {} Timeout callback:: count: 0 -28: timerToInvalidateFailedLookupResolutions *deleted* +24: timerToInvalidateFailedLookupResolutions *deleted* Program root files: [ @@ -1005,6 +994,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -1028,6 +1018,10 @@ exitCode:: ExitStatus.undefined Change:: Build dependencies Input:: +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/projects/c/3/c-impl/c/lib/c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1063,19 +1057,6 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - //// [/home/src/projects/a/1/a-impl/a/lib/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1113,19 +1094,6 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Output:: DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations @@ -1143,21 +1111,14 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/ DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Timeout callback:: count: 1 -35: timerToInvalidateFailedLookupResolutions *new* +29: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 1 -35: timerToInvalidateFailedLookupResolutions +29: timerToInvalidateFailedLookupResolutions -Host is moving to new time After running Timeout callback:: count: 1 Output:: Scheduling update @@ -1165,10 +1126,10 @@ Scheduling update Timeout callback:: count: 1 -36: timerToUpdateProgram *new* +30: timerToUpdateProgram *new* Before running Timeout callback:: count: 1 -36: timerToUpdateProgram +30: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 0 @@ -1178,7 +1139,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. @@ -1359,6 +1320,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, diff --git a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-Linux.js b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-Linux.js index cd495c64f1303..9c35c7bd50152 100644 --- a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-Linux.js +++ b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-Linux.js @@ -10,7 +10,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -39,7 +40,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -64,7 +66,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -123,17 +126,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 147 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 147 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 148 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 148 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 150 @@ -173,17 +176,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 154 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 154 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 155 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 155 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -196,7 +199,7 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/tsconfig.json 2 Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/src/index.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -383,6 +386,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -496,14 +500,10 @@ Input:: //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Output:: FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/c.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/c.d.ts 250 undefined Source file @@ -526,12 +526,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/ DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Failed Lookup Locations @@ -556,12 +550,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/ DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Failed Lookup Locations @@ -637,12 +625,12 @@ FsWatches *deleted*:: {"inode":146} Timeout callback:: count: 2 -13: timerToUpdateProgram *new* -18: timerToInvalidateFailedLookupResolutions *new* +11: timerToUpdateProgram *new* +14: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 2 -13: timerToUpdateProgram -18: timerToInvalidateFailedLookupResolutions +11: timerToUpdateProgram +14: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: @@ -651,7 +639,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Close:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -813,7 +801,7 @@ FsWatches *deleted*:: {"inode":12} Timeout callback:: count: 0 -18: timerToInvalidateFailedLookupResolutions *deleted* +14: timerToInvalidateFailedLookupResolutions *deleted* Program root files: [ @@ -821,6 +809,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -863,6 +852,10 @@ exitCode:: ExitStatus.undefined Change:: Build dependencies Input:: +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 147 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 148 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 154 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 155 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 163 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -898,31 +891,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 167 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 168 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 168 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 169 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 170 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -943,30 +923,17 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 171 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 174 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 175 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Timeout callback:: count: 1 -20: timerToUpdateChildWatches *new* +16: timerToUpdateChildWatches *new* Before running Timeout callback:: count: 1 -20: timerToUpdateChildWatches +16: timerToUpdateChildWatches After running Timeout callback:: count: 1 Output:: @@ -1005,7 +972,7 @@ FsWatches:: /home/src/projects/a/1/a-impl/a: {"inode":19} /home/src/projects/a/1/a-impl/a/lib: *new* - {"inode":169} + {"inode":167} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1034,10 +1001,10 @@ FsWatches:: {"inode":42} Timeout callback:: count: 1 -22: timerToInvalidateFailedLookupResolutions *new* +18: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 1 -22: timerToInvalidateFailedLookupResolutions +18: timerToInvalidateFailedLookupResolutions Host is moving to new time After running Timeout callback:: count: 1 @@ -1047,10 +1014,10 @@ Scheduling update Timeout callback:: count: 1 -23: timerToUpdateProgram *new* +19: timerToUpdateProgram *new* Before running Timeout callback:: count: 1 -23: timerToUpdateProgram +19: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 0 @@ -1060,7 +1027,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. @@ -1189,11 +1156,11 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib: - {"inode":169} + {"inode":167} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* - {"inode":171} + {"inode":169} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1239,6 +1206,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, diff --git a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-MacOs.js b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-MacOs.js index cb45067ed6856..214e41ef19fe7 100644 --- a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-MacOs.js +++ b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-MacOs.js @@ -10,7 +10,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -39,7 +40,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -64,7 +66,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -123,17 +126,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 147 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 147 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 148 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 148 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 150 @@ -173,17 +176,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 154 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 154 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 155 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 155 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -196,7 +199,7 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/tsconfig.json 2 Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/src/index.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -385,6 +388,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -542,14 +546,10 @@ Input:: //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Output:: FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/c.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/c.d.ts 250 undefined Source file @@ -572,12 +572,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/ DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations @@ -601,12 +595,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/ DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations @@ -679,12 +667,12 @@ FsWatchesRecursive:: {"inode":4} Timeout callback:: count: 2 -17: timerToUpdateProgram *new* -22: timerToInvalidateFailedLookupResolutions *new* +15: timerToUpdateProgram *new* +18: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 2 -17: timerToUpdateProgram -22: timerToInvalidateFailedLookupResolutions +15: timerToUpdateProgram +18: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: @@ -693,7 +681,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Close:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -855,7 +843,7 @@ FsWatchesRecursive *deleted*:: {"inode":4} Timeout callback:: count: 0 -22: timerToInvalidateFailedLookupResolutions *deleted* +18: timerToInvalidateFailedLookupResolutions *deleted* Program root files: [ @@ -863,6 +851,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -886,6 +875,10 @@ exitCode:: ExitStatus.undefined Change:: Build dependencies Input:: +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 147 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 148 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 154 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 155 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 163 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -921,31 +914,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 167 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 168 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 168 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 169 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 170 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -966,24 +946,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 171 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 174 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 175 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Output:: DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations @@ -1001,21 +968,14 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/ DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Timeout callback:: count: 1 -29: timerToInvalidateFailedLookupResolutions *new* +23: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 1 -29: timerToInvalidateFailedLookupResolutions +23: timerToInvalidateFailedLookupResolutions -Host is moving to new time After running Timeout callback:: count: 1 Output:: Scheduling update @@ -1023,10 +983,10 @@ Scheduling update Timeout callback:: count: 1 -30: timerToUpdateProgram *new* +24: timerToUpdateProgram *new* Before running Timeout callback:: count: 1 -30: timerToUpdateProgram +24: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 0 @@ -1036,7 +996,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. @@ -1165,9 +1125,9 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* - {"inode":171} + {"inode":169} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/package.json: {"inode":24} /home/src/projects/b: @@ -1217,6 +1177,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, diff --git a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-Windows.js b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-Windows.js index cc66a058f6177..9d2f36e629722 100644 --- a/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-Windows.js +++ b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-built-Windows.js @@ -10,7 +10,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -39,7 +40,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -64,7 +66,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -123,17 +126,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] @@ -173,17 +176,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -196,7 +199,7 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/tsconfig.json 2 Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /home/src/projects/b/2/b-impl/b/src/index.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -385,6 +388,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -542,14 +546,10 @@ Input:: //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Output:: FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/c.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/c.d.ts 250 undefined Source file @@ -570,12 +570,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/ DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Failed Lookup Locations @@ -597,24 +591,18 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/ DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Failed Lookup Locations Timeout callback:: count: 2 -17: timerToUpdateProgram *new* -22: timerToInvalidateFailedLookupResolutions *new* +15: timerToUpdateProgram *new* +18: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 2 -17: timerToUpdateProgram -22: timerToInvalidateFailedLookupResolutions +15: timerToUpdateProgram +18: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: @@ -623,7 +611,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} FileWatcher:: Close:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 250 undefined Source file ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. @@ -785,7 +773,7 @@ FsWatchesRecursive *deleted*:: {} Timeout callback:: count: 0 -22: timerToInvalidateFailedLookupResolutions *deleted* +18: timerToInvalidateFailedLookupResolutions *deleted* Program root files: [ @@ -793,6 +781,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, @@ -816,6 +805,10 @@ exitCode:: ExitStatus.undefined Change:: Build dependencies Input:: +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/projects/c/3/c-impl/c/lib/c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -851,19 +844,6 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - //// [/home/src/projects/a/1/a-impl/a/lib/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -901,19 +881,6 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Output:: DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations @@ -931,21 +898,14 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/ DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Failed Lookup Locations Timeout callback:: count: 1 -29: timerToInvalidateFailedLookupResolutions *new* +23: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 1 -29: timerToInvalidateFailedLookupResolutions +23: timerToInvalidateFailedLookupResolutions -Host is moving to new time After running Timeout callback:: count: 1 Output:: Scheduling update @@ -953,10 +913,10 @@ Scheduling update Timeout callback:: count: 1 -30: timerToUpdateProgram *new* +24: timerToUpdateProgram *new* Before running Timeout callback:: count: 1 -30: timerToUpdateProgram +24: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 0 @@ -966,7 +926,7 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/b/2/b-impl/b/src/index.ts"] - options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} + options: {"outDir":"/home/src/projects/b/2/b-impl/b/lib","rootDir":"/home/src/projects/b/2/b-impl/b/src","watch":true,"project":"/home/src/projects/b/2/b-impl/b","extendedDiagnostics":true,"explainFiles":true,"traceResolution":true,"configFilePath":"/home/src/projects/b/2/b-impl/b/tsconfig.json"} ======== Resolving module 'a' from '/home/src/projects/b/2/b-impl/b/src/index.ts'. ======== Module resolution kind is not specified, using 'Bundler'. Resolving in CJS mode with conditions 'require', 'types'. @@ -1147,6 +1107,7 @@ Program root files: [ ] Program options: { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "watch": true, "project": "/home/src/projects/b/2/b-impl/b", "extendedDiagnostics": true, 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 619eeeb160e01..56e39a0b54a43 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 @@ -38,14 +38,14 @@ Output:: -//// [/user/username/projects/myproject/dist/file2.js] Inode:: 115 +//// [/user/username/projects/myproject/dist/src/file2.js] Inode:: 116 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; exports.x = 10; -//// [/user/username/projects/myproject/dist/file1.js] Inode:: 116 +//// [/user/username/projects/myproject/dist/src/file1.js] Inode:: 117 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -64,6 +64,8 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: *new* {"inode":114} +/user/username/projects/myproject/dist/src: *new* + {"inode":115} /user/username/projects/myproject/src: *new* {"inode":5} /user/username/projects/myproject/src/file1.ts: *new* @@ -110,7 +112,7 @@ exitCode:: ExitStatus.undefined Change:: rename the file Input:: -//// [/user/username/projects/myproject/src/renamed.ts] Inode:: 117 +//// [/user/username/projects/myproject/src/renamed.ts] Inode:: 118 export const x = 10; //// [/user/username/projects/myproject/src/file2.ts] deleted @@ -134,6 +136,8 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: {"inode":114} +/user/username/projects/myproject/dist/src: + {"inode":115} /user/username/projects/myproject/src: {"inode":5} /user/username/projects/myproject/src/file1.ts: @@ -167,7 +171,7 @@ Output:: -//// [/user/username/projects/myproject/dist/file1.js] file written with same contents Inode:: 116 +//// [/user/username/projects/myproject/dist/src/file1.js] file written with same contents Inode:: 117 PolledWatches:: /user/username/projects/myproject/node_modules/@types: @@ -188,6 +192,8 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: {"inode":114} +/user/username/projects/myproject/dist/src: + {"inode":115} /user/username/projects/myproject/src: {"inode":5} /user/username/projects/myproject/src/file1.ts: @@ -250,7 +256,7 @@ Output:: -//// [/user/username/projects/myproject/dist/renamed.js] Inode:: 118 +//// [/user/username/projects/myproject/dist/src/renamed.js] Inode:: 119 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; @@ -275,12 +281,14 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: {"inode":114} +/user/username/projects/myproject/dist/src: + {"inode":115} /user/username/projects/myproject/src: {"inode":5} /user/username/projects/myproject/src/file1.ts: {"inode":6} /user/username/projects/myproject/src/renamed.ts: *new* - {"inode":117} + {"inode":118} /user/username/projects/myproject/tsconfig.json: {"inode":8} 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 6429611251504..0b0bcd0a8ae53 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 @@ -39,12 +39,12 @@ Output:: -//// [/user/username/projects/myproject/dist/file1.js] Inode:: 117 +//// [/user/username/projects/myproject/dist/src/file1.js] Inode:: 118 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/dist/file1.d.ts] Inode:: 118 +//// [/user/username/projects/myproject/dist/src/file1.d.ts] Inode:: 119 export {}; @@ -72,6 +72,8 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: *new* {"inode":116} +/user/username/projects/myproject/dist/src: *new* + {"inode":117} /user/username/projects/myproject/node_modules: *new* {"inode":7} /user/username/projects/myproject/node_modules/file2: *new* @@ -122,7 +124,7 @@ exitCode:: ExitStatus.undefined Change:: Add new file, should schedule and run timeout to update directory watcher Input:: -//// [/user/username/projects/myproject/src/file3.ts] Inode:: 119 +//// [/user/username/projects/myproject/src/file3.ts] Inode:: 120 export const y = 10; @@ -160,14 +162,14 @@ Output:: -//// [/user/username/projects/myproject/dist/file3.js] Inode:: 120 +//// [/user/username/projects/myproject/dist/src/file3.js] Inode:: 121 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.y = void 0; exports.y = 10; -//// [/user/username/projects/myproject/dist/file3.d.ts] Inode:: 121 +//// [/user/username/projects/myproject/dist/src/file3.d.ts] Inode:: 122 export declare const y = 10; @@ -195,6 +197,8 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: {"inode":116} +/user/username/projects/myproject/dist/src: + {"inode":117} /user/username/projects/myproject/node_modules: {"inode":7} /user/username/projects/myproject/node_modules/file2: @@ -206,7 +210,7 @@ FsWatches:: /user/username/projects/myproject/src/file1.ts: {"inode":6} /user/username/projects/myproject/src/file3.ts: *new* - {"inode":119} + {"inode":120} /user/username/projects/myproject/tsconfig.json: {"inode":10} diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Linux-canUseWatchEvents.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Linux-canUseWatchEvents.js index 429861fad20b8..687c3f40f0918 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Linux-canUseWatchEvents.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Linux-canUseWatchEvents.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -121,6 +124,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -457,7 +461,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -962,12 +967,10 @@ Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts created Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts updated Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo created -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo updated -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt created -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt updated -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated +Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo created +Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo updated +Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt created +Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt updated Before request //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 148 "use strict"; @@ -1004,17 +1007,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 152 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 152 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 153 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 153 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 155 @@ -1054,17 +1057,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 159 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 159 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 160 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 160 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -1079,8 +1082,8 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.d.ts", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo", + "/home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt" ] }, "seq": 5, @@ -1101,12 +1104,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations After request Timeout callback:: count: 1 @@ -1817,29 +1820,21 @@ Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/ Custom watchFile:: Triggered:: {"id":24,"path":"/home/src/projects/c/3/c-impl/c/lib/index.d.ts"}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Custom watchFile:: Triggered:: {"id":23,"path":"/home/src/projects/a/1/a-impl/a/lib/a.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.js deleted Custom watchFile:: Triggered:: {"id":21,"path":"/home/src/projects/a/1/a-impl/a/lib/index.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Before request //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Info seq [hh:mm:ss:mss] request: { @@ -1857,9 +1852,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/c/3/c-impl/c/lib/c.d.ts", "/home/src/projects/c/3/c-impl/c/lib/c.js", "/home/src/projects/c/3/c-impl/c/lib/index.d.ts", - "/home/src/projects/c/3/c-impl/c/lib/index.js", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/c/3/c-impl/c/lib/index.js" ] }, { @@ -1880,9 +1873,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/a/1/a-impl/a/lib/a.d.ts", "/home/src/projects/a/1/a-impl/a/lib/a.js", "/home/src/projects/a/1/a-impl/a/lib/index.d.ts", - "/home/src/projects/a/1/a-impl/a/lib/index.js", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/a/1/a-impl/a/lib/index.js" ] }, { @@ -1911,12 +1902,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1937,12 +1922,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 2:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1950,9 +1929,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 3 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* -34: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -35: *ensureProjectForOpenFiles* *new* +29: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +30: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +31: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1995,9 +1974,9 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 3 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation -34: /home/src/projects/b/2/b-impl/b/tsconfig.json -35: *ensureProjectForOpenFiles* +29: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +30: /home/src/projects/b/2/b-impl/b/tsconfig.json +31: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2277,10 +2256,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -36: checkOne *new* +32: checkOne *new* Before running Timeout callback:: count: 1 -36: checkOne +32: checkOne Info seq [hh:mm:ss:mss] event: { @@ -2397,13 +2376,13 @@ Custom watchFile:: Triggered:: {"id":21,"path":"/home/src/projects/a/1/a-impl/a/ Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts created Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts updated Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo created -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo updated -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt created -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt updated -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated +Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo updated +Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt updated Before request +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 152 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 153 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 159 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 160 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 164 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -2439,31 +2418,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 168 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 169 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 169 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 170 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 171 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -2484,24 +2450,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 172 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 175 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 176 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Info seq [hh:mm:ss:mss] request: { @@ -2526,9 +2479,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.js", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.d.ts", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts" ] }, { @@ -2566,12 +2517,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info @@ -2579,7 +2524,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 1 -43: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +37: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -2612,7 +2557,7 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 1 -43: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +37: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2620,8 +2565,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -44: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -45: *ensureProjectForOpenFiles* *new* +38: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +39: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -2630,8 +2575,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -44: /home/src/projects/b/2/b-impl/b/tsconfig.json -45: *ensureProjectForOpenFiles* +38: /home/src/projects/b/2/b-impl/b/tsconfig.json +39: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2944,10 +2889,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -46: checkOne *new* +40: checkOne *new* Before running Timeout callback:: count: 1 -46: checkOne +40: checkOne Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Linux.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Linux.js index 0a3013310bd2b..c8d49d7cf4c6e 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Linux.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Linux.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -110,6 +113,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -208,7 +212,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -704,7 +709,7 @@ After running Immedidate callback:: count: 0 Build dependencies Before running Timeout callback:: count: 1 -5: timerToUpdateChildWatches +9: timerToUpdateChildWatches //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 148 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -740,17 +745,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 152 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 152 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 153 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 153 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 155 @@ -790,23 +795,24 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 159 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 159 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 160 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 160 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } Timeout callback:: count: 1 -5: timerToUpdateChildWatches *new* +9: timerToUpdateChildWatches *new* +Host is moving to new time Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations @@ -868,10 +874,10 @@ FsWatches:: {"inode":45} Timeout callback:: count: 1 -7: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +11: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* Before running Timeout callback:: count: 1 -7: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +11: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -879,8 +885,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -8: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -9: *ensureProjectForOpenFiles* *new* +12: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +13: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -890,8 +896,8 @@ Projects:: autoImportProviderHost: false Before running Timeout callback:: count: 2 -8: /home/src/projects/b/2/b-impl/b/tsconfig.json -9: *ensureProjectForOpenFiles* +12: /home/src/projects/b/2/b-impl/b/tsconfig.json +13: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -1094,10 +1100,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -10: checkOne *new* +14: checkOne *new* Before running Timeout callback:: count: 1 -10: checkOne +14: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1210,10 +1216,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -11: checkOne *new* +15: checkOne *new* Before running Timeout callback:: count: 1 -11: checkOne +15: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1326,10 +1332,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -12: checkOne *new* +16: checkOne *new* Before running Timeout callback:: count: 1 -12: checkOne +16: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1434,12 +1440,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations @@ -1463,31 +1463,21 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 3 -28: /home/src/projects/b/2/b-impl/b/tsconfig.json -29: *ensureProjectForOpenFiles* +30: /home/src/projects/b/2/b-impl/b/tsconfig.json +31: *ensureProjectForOpenFiles* 34: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted PolledWatches:: /home/src/projects/a/1/a-impl/a/lib: *new* @@ -1556,8 +1546,8 @@ FsWatches *deleted*:: {"inode":151} Timeout callback:: count: 3 -28: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -29: *ensureProjectForOpenFiles* *new* +30: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +31: *ensureProjectForOpenFiles* *new* 34: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* Projects:: @@ -1889,6 +1879,10 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-i Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info Before running Timeout callback:: count: 1 37: timerToUpdateChildWatches +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 152 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 153 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 159 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 160 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 164 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1924,31 +1918,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 168 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 169 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 169 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 170 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 171 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1969,24 +1950,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 172 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 175 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 176 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - PolledWatches:: /home/src/projects/b/2/b-impl/b/node_modules/@types: @@ -2024,9 +1992,9 @@ FsWatches:: /home/src/projects/a/1/a-impl/a: {"inode":19} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* - {"inode":172} + {"inode":170} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":174} + {"inode":172} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -2123,11 +2091,11 @@ FsWatches:: /home/src/projects/a/1/a-impl/a: {"inode":19} /home/src/projects/a/1/a-impl/a/lib: *new* - {"inode":170} + {"inode":168} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":172} + {"inode":170} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":174} + {"inode":172} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -2287,11 +2255,11 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib: - {"inode":170} + {"inode":168} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":172} + {"inode":170} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":174} + {"inode":172} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-MacOs-canUseWatchEvents.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-MacOs-canUseWatchEvents.js index c040dc38b5b68..44e7180fc03b3 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-MacOs-canUseWatchEvents.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-MacOs-canUseWatchEvents.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -121,6 +124,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -457,7 +461,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -953,8 +958,8 @@ Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.d.ts created Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js created Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts created -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo created -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt created +Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo created +Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt created Before request //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 148 "use strict"; @@ -991,17 +996,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 152 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 152 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 153 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 153 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 155 @@ -1041,17 +1046,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 159 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 159 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 160 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 160 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -1066,8 +1071,8 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.d.ts", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo", + "/home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt" ] }, "seq": 5, @@ -1088,12 +1093,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations After request Timeout callback:: count: 1 @@ -1804,29 +1809,21 @@ Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/ Custom watchFile:: Triggered:: {"id":24,"path":"/home/src/projects/c/3/c-impl/c/lib/index.d.ts"}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Custom watchFile:: Triggered:: {"id":23,"path":"/home/src/projects/a/1/a-impl/a/lib/a.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.js deleted Custom watchFile:: Triggered:: {"id":21,"path":"/home/src/projects/a/1/a-impl/a/lib/index.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Before request //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Info seq [hh:mm:ss:mss] request: { @@ -1844,9 +1841,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/c/3/c-impl/c/lib/c.d.ts", "/home/src/projects/c/3/c-impl/c/lib/c.js", "/home/src/projects/c/3/c-impl/c/lib/index.d.ts", - "/home/src/projects/c/3/c-impl/c/lib/index.js", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/c/3/c-impl/c/lib/index.js" ] }, { @@ -1867,9 +1862,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/a/1/a-impl/a/lib/a.d.ts", "/home/src/projects/a/1/a-impl/a/lib/a.js", "/home/src/projects/a/1/a-impl/a/lib/index.d.ts", - "/home/src/projects/a/1/a-impl/a/lib/index.js", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/a/1/a-impl/a/lib/index.js" ] }, { @@ -1898,12 +1891,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1924,12 +1911,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 2:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1937,9 +1918,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 3 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* -34: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -35: *ensureProjectForOpenFiles* *new* +29: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +30: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +31: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1982,9 +1963,9 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 3 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation -34: /home/src/projects/b/2/b-impl/b/tsconfig.json -35: *ensureProjectForOpenFiles* +29: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +30: /home/src/projects/b/2/b-impl/b/tsconfig.json +31: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2264,10 +2245,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -36: checkOne *new* +32: checkOne *new* Before running Timeout callback:: count: 1 -36: checkOne +32: checkOne Info seq [hh:mm:ss:mss] event: { @@ -2375,9 +2356,13 @@ Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/ Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js created Custom watchFile:: Triggered:: {"id":21,"path":"/home/src/projects/a/1/a-impl/a/lib/index.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts created Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts created -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo created -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt created +Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo updated +Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt updated Before request +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 152 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 153 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 159 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 160 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 164 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -2413,31 +2398,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 168 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 169 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 169 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 170 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 171 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -2458,24 +2430,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 172 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 175 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 176 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Info seq [hh:mm:ss:mss] request: { @@ -2500,9 +2459,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.js", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.d.ts", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts" ] }, { @@ -2540,12 +2497,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info @@ -2553,7 +2504,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 1 -43: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +37: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -2586,7 +2537,7 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 1 -43: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +37: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2594,8 +2545,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -44: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -45: *ensureProjectForOpenFiles* *new* +38: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +39: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -2604,8 +2555,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -44: /home/src/projects/b/2/b-impl/b/tsconfig.json -45: *ensureProjectForOpenFiles* +38: /home/src/projects/b/2/b-impl/b/tsconfig.json +39: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2918,10 +2869,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -46: checkOne *new* +40: checkOne *new* Before running Timeout callback:: count: 1 -46: checkOne +40: checkOne Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-MacOs.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-MacOs.js index 97d75b1d693ab..0e73866b31480 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-MacOs.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-MacOs.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -110,6 +113,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -208,7 +212,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -714,12 +719,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 1 10: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 148 @@ -757,17 +762,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 152 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 152 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 153 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 153 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 155 @@ -807,17 +812,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 159 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 159 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 160 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 160 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -1403,12 +1408,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations @@ -1432,31 +1431,21 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 3 -33: /home/src/projects/b/2/b-impl/b/tsconfig.json -34: *ensureProjectForOpenFiles* -39: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +31: /home/src/projects/b/2/b-impl/b/tsconfig.json +32: *ensureProjectForOpenFiles* +35: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted PolledWatches:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* @@ -1523,9 +1512,9 @@ FsWatchesRecursive:: {"inode":4} Timeout callback:: count: 3 -33: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -34: *ensureProjectForOpenFiles* *new* -39: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +31: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +32: *ensureProjectForOpenFiles* *new* +35: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1703,7 +1692,7 @@ FsWatchesRecursive *deleted*:: {"inode":4} Timeout callback:: count: 0 -39: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *deleted* +35: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *deleted* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1736,10 +1725,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -40: checkOne *new* +36: checkOne *new* Before running Timeout callback:: count: 1 -40: checkOne +36: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1869,14 +1858,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 1 -47: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +41: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 152 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 153 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 159 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 160 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 164 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1912,31 +1899,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 168 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 169 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 169 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 170 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 171 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1957,24 +1931,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 172 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 175 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 176 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - PolledWatches:: /home/src/projects/b/2/b-impl/b/node_modules/@types: @@ -2010,9 +1971,9 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* - {"inode":172} + {"inode":170} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":174} + {"inode":172} /home/src/projects/a/1/a-impl/a/package.json: {"inode":24} /home/src/projects/b: @@ -2041,7 +2002,7 @@ FsWatchesRecursive:: {"inode":34} Timeout callback:: count: 1 -47: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +41: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -2079,8 +2040,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -48: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -49: *ensureProjectForOpenFiles* *new* +42: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +43: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -2089,8 +2050,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -48: /home/src/projects/b/2/b-impl/b/tsconfig.json -49: *ensureProjectForOpenFiles* +42: /home/src/projects/b/2/b-impl/b/tsconfig.json +43: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2197,9 +2158,9 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":172} + {"inode":170} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":174} + {"inode":172} /home/src/projects/a/1/a-impl/a/package.json: {"inode":24} /home/src/projects/b: @@ -2294,10 +2255,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -50: checkOne *new* +44: checkOne *new* Before running Timeout callback:: count: 1 -50: checkOne +44: checkOne Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Windows-canUseWatchEvents.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Windows-canUseWatchEvents.js index 66b6c692983b9..1cd139e638802 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Windows-canUseWatchEvents.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Windows-canUseWatchEvents.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -121,6 +124,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -457,7 +461,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -962,12 +967,10 @@ Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts created Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts updated Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo created -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo updated -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt created -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt updated -Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated +Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo created +Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo updated +Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt created +Custom watchDirectory:: Triggered Ignored:: {"id":9,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt updated Before request //// [/home/src/projects/c/3/c-impl/c/lib/c.js] "use strict"; @@ -1004,17 +1007,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] @@ -1054,17 +1057,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -1079,8 +1082,8 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.d.ts", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo", + "/home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt" ] }, "seq": 5, @@ -1101,12 +1104,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations After request Timeout callback:: count: 1 @@ -1817,29 +1820,21 @@ Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/ Custom watchFile:: Triggered:: {"id":24,"path":"/home/src/projects/c/3/c-impl/c/lib/index.d.ts"}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Custom watchFile:: Triggered:: {"id":23,"path":"/home/src/projects/a/1/a-impl/a/lib/a.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.js deleted Custom watchFile:: Triggered:: {"id":21,"path":"/home/src/projects/a/1/a-impl/a/lib/index.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":22,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Before request //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Info seq [hh:mm:ss:mss] request: { @@ -1857,9 +1852,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/c/3/c-impl/c/lib/c.d.ts", "/home/src/projects/c/3/c-impl/c/lib/c.js", "/home/src/projects/c/3/c-impl/c/lib/index.d.ts", - "/home/src/projects/c/3/c-impl/c/lib/index.js", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/c/3/c-impl/c/lib/index.js" ] }, { @@ -1880,9 +1873,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/a/1/a-impl/a/lib/a.d.ts", "/home/src/projects/a/1/a-impl/a/lib/a.js", "/home/src/projects/a/1/a-impl/a/lib/index.d.ts", - "/home/src/projects/a/1/a-impl/a/lib/index.js", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/a/1/a-impl/a/lib/index.js" ] }, { @@ -1911,12 +1902,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1937,12 +1922,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 2:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1950,9 +1929,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 3 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* -34: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -35: *ensureProjectForOpenFiles* *new* +29: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +30: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +31: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1995,9 +1974,9 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 3 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation -34: /home/src/projects/b/2/b-impl/b/tsconfig.json -35: *ensureProjectForOpenFiles* +29: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +30: /home/src/projects/b/2/b-impl/b/tsconfig.json +31: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2277,10 +2256,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -36: checkOne *new* +32: checkOne *new* Before running Timeout callback:: count: 1 -36: checkOne +32: checkOne Info seq [hh:mm:ss:mss] event: { @@ -2397,13 +2376,13 @@ Custom watchFile:: Triggered:: {"id":21,"path":"/home/src/projects/a/1/a-impl/a/ Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts created Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts updated Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo created -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo updated -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt created -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt updated -Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated +Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo updated +Custom watchDirectory:: Triggered Ignored:: {"id":30,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt updated Before request +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/projects/c/3/c-impl/c/lib/c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -2439,19 +2418,6 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - //// [/home/src/projects/a/1/a-impl/a/lib/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -2489,19 +2455,6 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Info seq [hh:mm:ss:mss] request: { @@ -2526,9 +2479,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.js", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.d.ts", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts" ] }, { @@ -2566,12 +2517,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info @@ -2579,7 +2524,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 1 -43: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +37: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -2612,7 +2557,7 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 1 -43: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +37: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2620,8 +2565,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -44: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -45: *ensureProjectForOpenFiles* *new* +38: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +39: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -2630,8 +2575,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -44: /home/src/projects/b/2/b-impl/b/tsconfig.json -45: *ensureProjectForOpenFiles* +38: /home/src/projects/b/2/b-impl/b/tsconfig.json +39: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2944,10 +2889,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -46: checkOne *new* +40: checkOne *new* Before running Timeout callback:: count: 1 -46: checkOne +40: checkOne Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Windows.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Windows.js index 05270e98dfe92..2314e37cec197 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Windows.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-Windows.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -110,6 +113,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -208,7 +212,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -714,12 +719,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 1 10: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/c/3/c-impl/c/lib/c.js] @@ -757,17 +762,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] @@ -807,17 +812,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -1403,12 +1408,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations @@ -1432,36 +1431,26 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 3 -33: /home/src/projects/b/2/b-impl/b/tsconfig.json -34: *ensureProjectForOpenFiles* -39: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +31: /home/src/projects/b/2/b-impl/b/tsconfig.json +32: *ensureProjectForOpenFiles* +35: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Timeout callback:: count: 3 -33: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -34: *ensureProjectForOpenFiles* *new* -39: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +31: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +32: *ensureProjectForOpenFiles* *new* +35: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1639,7 +1628,7 @@ FsWatchesRecursive *deleted*:: {} Timeout callback:: count: 0 -39: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *deleted* +35: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *deleted* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1672,10 +1661,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -40: checkOne *new* +36: checkOne *new* Before running Timeout callback:: count: 1 -40: checkOne +36: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1797,14 +1786,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 1 -47: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +41: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/projects/c/3/c-impl/c/lib/c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1840,19 +1827,6 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - //// [/home/src/projects/a/1/a-impl/a/lib/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1890,22 +1864,9 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Timeout callback:: count: 1 -47: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +41: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -1943,8 +1904,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -48: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -49: *ensureProjectForOpenFiles* *new* +42: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +43: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1953,8 +1914,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -48: /home/src/projects/b/2/b-impl/b/tsconfig.json -49: *ensureProjectForOpenFiles* +42: /home/src/projects/b/2/b-impl/b/tsconfig.json +43: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2158,10 +2119,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -50: checkOne *new* +44: checkOne *new* Before running Timeout callback:: count: 1 -50: checkOne +44: checkOne Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Linux-canUseWatchEvents.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Linux-canUseWatchEvents.js index 226a91780f8e2..30584b17c6716 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Linux-canUseWatchEvents.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Linux-canUseWatchEvents.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -126,17 +129,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 150 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 150 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 151 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 151 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 153 @@ -176,17 +179,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 157 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 157 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 158 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 158 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -219,6 +222,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -614,7 +618,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1325,29 +1330,21 @@ Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c Custom watchFile:: Triggered:: {"id":6,"path":"/home/src/projects/c/3/c-impl/c/lib/index.d.ts"}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Custom watchFile:: Triggered:: {"id":5,"path":"/home/src/projects/a/1/a-impl/a/lib/a.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.js deleted Custom watchFile:: Triggered:: {"id":3,"path":"/home/src/projects/a/1/a-impl/a/lib/index.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Before request //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Info seq [hh:mm:ss:mss] request: { @@ -1365,9 +1362,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/c/3/c-impl/c/lib/c.d.ts", "/home/src/projects/c/3/c-impl/c/lib/c.js", "/home/src/projects/c/3/c-impl/c/lib/index.d.ts", - "/home/src/projects/c/3/c-impl/c/lib/index.js", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/c/3/c-impl/c/lib/index.js" ] }, { @@ -1388,9 +1383,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/a/1/a-impl/a/lib/a.d.ts", "/home/src/projects/a/1/a-impl/a/lib/a.js", "/home/src/projects/a/1/a-impl/a/lib/index.d.ts", - "/home/src/projects/a/1/a-impl/a/lib/index.js", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/a/1/a-impl/a/lib/index.js" ] }, { @@ -1419,12 +1412,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1445,12 +1432,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 2:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1458,9 +1439,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 3 -23: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* -24: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -25: *ensureProjectForOpenFiles* *new* +19: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +20: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +21: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1504,9 +1485,9 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 3 -23: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation -24: /home/src/projects/b/2/b-impl/b/tsconfig.json -25: *ensureProjectForOpenFiles* +19: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +20: /home/src/projects/b/2/b-impl/b/tsconfig.json +21: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -1787,10 +1768,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -26: checkOne *new* +22: checkOne *new* Before running Timeout callback:: count: 1 -26: checkOne +22: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1907,13 +1888,13 @@ Custom watchFile:: Triggered:: {"id":3,"path":"/home/src/projects/a/1/a-impl/a/l Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts created Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts updated Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo created -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo updated -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt created -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt updated -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated +Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo updated +Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt updated Before request +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 150 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 151 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 157 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 158 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 164 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1949,31 +1930,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 168 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 169 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 169 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 170 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 171 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1994,24 +1962,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 172 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 175 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 176 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Info seq [hh:mm:ss:mss] request: { @@ -2036,9 +1991,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.js", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.d.ts", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts" ] }, { @@ -2076,12 +2029,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info @@ -2089,7 +2036,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 1 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -2122,7 +2069,7 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 1 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2130,8 +2077,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -34: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -35: *ensureProjectForOpenFiles* *new* +28: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +29: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -2140,8 +2087,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -34: /home/src/projects/b/2/b-impl/b/tsconfig.json -35: *ensureProjectForOpenFiles* +28: /home/src/projects/b/2/b-impl/b/tsconfig.json +29: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2454,10 +2401,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -36: checkOne *new* +30: checkOne *new* Before running Timeout callback:: count: 1 -36: checkOne +30: checkOne Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Linux.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Linux.js index cca6416659ff2..526e653da050b 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Linux.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Linux.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -126,17 +129,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 150 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 150 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 151 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 151 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 153 @@ -176,17 +179,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 157 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 157 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 158 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 158 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -208,6 +211,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -321,7 +325,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1044,12 +1049,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations @@ -1073,31 +1072,21 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 3 -21: /home/src/projects/b/2/b-impl/b/tsconfig.json -22: *ensureProjectForOpenFiles* -27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +19: /home/src/projects/b/2/b-impl/b/tsconfig.json +20: *ensureProjectForOpenFiles* +23: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted PolledWatches:: /home/src/projects/a/1/a-impl/a/lib: *new* @@ -1166,9 +1155,9 @@ FsWatches *deleted*:: {"inode":149} Timeout callback:: count: 3 -21: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -22: *ensureProjectForOpenFiles* *new* -27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +19: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +20: *ensureProjectForOpenFiles* *new* +23: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1347,7 +1336,7 @@ FsWatches *deleted*:: {"inode":12} Timeout callback:: count: 0 -27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *deleted* +23: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *deleted* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1381,10 +1370,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -28: checkOne *new* +24: checkOne *new* Before running Timeout callback:: count: 1 -28: checkOne +24: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1500,7 +1489,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info Before running Timeout callback:: count: 1 -30: timerToUpdateChildWatches +26: timerToUpdateChildWatches +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 150 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 151 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 157 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 158 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 164 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1536,31 +1529,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 168 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 169 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 169 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 170 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 171 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1581,24 +1561,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 172 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 175 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 176 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - PolledWatches:: /home/src/projects/b/2/b-impl/b/node_modules/@types: @@ -1636,9 +1603,9 @@ FsWatches:: /home/src/projects/a/1/a-impl/a: {"inode":19} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* - {"inode":172} + {"inode":170} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":174} + {"inode":172} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1669,7 +1636,7 @@ FsWatches:: {"inode":45} Timeout callback:: count: 1 -30: timerToUpdateChildWatches *new* +26: timerToUpdateChildWatches *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -1735,11 +1702,11 @@ FsWatches:: /home/src/projects/a/1/a-impl/a: {"inode":19} /home/src/projects/a/1/a-impl/a/lib: *new* - {"inode":170} + {"inode":168} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":172} + {"inode":170} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":174} + {"inode":172} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1770,10 +1737,10 @@ FsWatches:: {"inode":45} Timeout callback:: count: 1 -32: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +28: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* Before running Timeout callback:: count: 1 -32: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +28: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -1781,8 +1748,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -33: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -34: *ensureProjectForOpenFiles* *new* +29: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +30: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1791,8 +1758,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -33: /home/src/projects/b/2/b-impl/b/tsconfig.json -34: *ensureProjectForOpenFiles* +29: /home/src/projects/b/2/b-impl/b/tsconfig.json +30: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -1899,11 +1866,11 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib: - {"inode":170} + {"inode":168} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":172} + {"inode":170} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":174} + {"inode":172} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1994,10 +1961,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -35: checkOne *new* +31: checkOne *new* Before running Timeout callback:: count: 1 -35: checkOne +31: checkOne Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-MacOs-canUseWatchEvents.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-MacOs-canUseWatchEvents.js index 8c7dc6d7df260..6d44e8438631a 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-MacOs-canUseWatchEvents.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-MacOs-canUseWatchEvents.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -126,17 +129,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 150 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 150 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 151 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 151 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 153 @@ -176,17 +179,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 157 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 157 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 158 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 158 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -219,6 +222,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -614,7 +618,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1325,29 +1330,21 @@ Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c Custom watchFile:: Triggered:: {"id":6,"path":"/home/src/projects/c/3/c-impl/c/lib/index.d.ts"}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Custom watchFile:: Triggered:: {"id":5,"path":"/home/src/projects/a/1/a-impl/a/lib/a.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.js deleted Custom watchFile:: Triggered:: {"id":3,"path":"/home/src/projects/a/1/a-impl/a/lib/index.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Before request //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Info seq [hh:mm:ss:mss] request: { @@ -1365,9 +1362,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/c/3/c-impl/c/lib/c.d.ts", "/home/src/projects/c/3/c-impl/c/lib/c.js", "/home/src/projects/c/3/c-impl/c/lib/index.d.ts", - "/home/src/projects/c/3/c-impl/c/lib/index.js", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/c/3/c-impl/c/lib/index.js" ] }, { @@ -1388,9 +1383,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/a/1/a-impl/a/lib/a.d.ts", "/home/src/projects/a/1/a-impl/a/lib/a.js", "/home/src/projects/a/1/a-impl/a/lib/index.d.ts", - "/home/src/projects/a/1/a-impl/a/lib/index.js", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/a/1/a-impl/a/lib/index.js" ] }, { @@ -1419,12 +1412,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1445,12 +1432,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 2:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1458,9 +1439,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 3 -23: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* -24: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -25: *ensureProjectForOpenFiles* *new* +19: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +20: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +21: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1504,9 +1485,9 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 3 -23: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation -24: /home/src/projects/b/2/b-impl/b/tsconfig.json -25: *ensureProjectForOpenFiles* +19: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +20: /home/src/projects/b/2/b-impl/b/tsconfig.json +21: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -1787,10 +1768,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -26: checkOne *new* +22: checkOne *new* Before running Timeout callback:: count: 1 -26: checkOne +22: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1898,9 +1879,13 @@ Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/ Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js created Custom watchFile:: Triggered:: {"id":3,"path":"/home/src/projects/a/1/a-impl/a/lib/index.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts created Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts created -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo created -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt created +Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo updated +Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt updated Before request +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 150 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 151 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 157 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 158 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 164 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1936,31 +1921,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 168 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 169 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 169 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 170 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 171 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1981,24 +1953,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 172 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 175 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 176 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Info seq [hh:mm:ss:mss] request: { @@ -2023,9 +1982,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.js", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.d.ts", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts" ] }, { @@ -2063,12 +2020,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info @@ -2076,7 +2027,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 1 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -2109,7 +2060,7 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 1 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2117,8 +2068,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -34: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -35: *ensureProjectForOpenFiles* *new* +28: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +29: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -2127,8 +2078,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -34: /home/src/projects/b/2/b-impl/b/tsconfig.json -35: *ensureProjectForOpenFiles* +28: /home/src/projects/b/2/b-impl/b/tsconfig.json +29: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2441,10 +2392,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -36: checkOne *new* +30: checkOne *new* Before running Timeout callback:: count: 1 -36: checkOne +30: checkOne Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-MacOs.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-MacOs.js index 7744c5f80b65f..87b0dd502f105 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-MacOs.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-MacOs.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] Inode:: 36 { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -126,17 +129,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 150 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 150 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 151 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 151 { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 153 @@ -176,17 +179,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 157 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 157 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 158 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 158 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -208,6 +211,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -321,7 +325,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1078,12 +1083,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations @@ -1107,31 +1106,21 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 3 -25: /home/src/projects/b/2/b-impl/b/tsconfig.json -26: *ensureProjectForOpenFiles* -31: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +23: /home/src/projects/b/2/b-impl/b/tsconfig.json +24: *ensureProjectForOpenFiles* +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted PolledWatches:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* @@ -1198,9 +1187,9 @@ FsWatchesRecursive:: {"inode":4} Timeout callback:: count: 3 -25: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -26: *ensureProjectForOpenFiles* *new* -31: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +23: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +24: *ensureProjectForOpenFiles* *new* +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1379,7 +1368,7 @@ FsWatchesRecursive *deleted*:: {"inode":4} Timeout callback:: count: 0 -31: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *deleted* +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *deleted* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1413,10 +1402,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -32: checkOne *new* +28: checkOne *new* Before running Timeout callback:: count: 1 -32: checkOne +28: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1546,14 +1535,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 1 -39: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 150 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 151 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 157 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 158 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 164 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1589,31 +1576,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 168 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 169 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 171 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 169 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; exports.a = 'test'; -//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 170 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 171 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1634,24 +1608,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 172 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 175 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 176 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - PolledWatches:: /home/src/projects/b/2/b-impl/b/node_modules/@types: @@ -1687,9 +1648,9 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* - {"inode":172} + {"inode":170} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":174} + {"inode":172} /home/src/projects/a/1/a-impl/a/package.json: {"inode":24} /home/src/projects/b: @@ -1718,7 +1679,7 @@ FsWatchesRecursive:: {"inode":34} Timeout callback:: count: 1 -39: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -1756,8 +1717,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -40: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -41: *ensureProjectForOpenFiles* *new* +34: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +35: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1766,8 +1727,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -40: /home/src/projects/b/2/b-impl/b/tsconfig.json -41: *ensureProjectForOpenFiles* +34: /home/src/projects/b/2/b-impl/b/tsconfig.json +35: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -1874,9 +1835,9 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":172} + {"inode":170} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":174} + {"inode":172} /home/src/projects/a/1/a-impl/a/package.json: {"inode":24} /home/src/projects/b: @@ -1971,10 +1932,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -42: checkOne *new* +36: checkOne *new* Before running Timeout callback:: count: 1 -42: checkOne +36: checkOne Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Windows-canUseWatchEvents.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Windows-canUseWatchEvents.js index 8f463ab8b1427..95ac376a72a5f 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Windows-canUseWatchEvents.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Windows-canUseWatchEvents.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -126,17 +129,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] @@ -176,17 +179,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -219,6 +222,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -614,7 +618,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1325,29 +1330,21 @@ Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c Custom watchFile:: Triggered:: {"id":6,"path":"/home/src/projects/c/3/c-impl/c/lib/index.d.ts"}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":7,"path":"/home/src/projects/c/3/c-impl/c/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Custom watchFile:: Triggered:: {"id":5,"path":"/home/src/projects/a/1/a-impl/a/lib/a.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/a.js deleted Custom watchFile:: Triggered:: {"id":3,"path":"/home/src/projects/a/1/a-impl/a/lib/index.d.ts"}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.d.ts deleted Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/index.js deleted -Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo deleted -Custom watchDirectory:: Triggered Ignored:: {"id":4,"path":"/home/src/projects/a/1/a-impl/a/lib","recursive":false,"ignoreUpdate":true}:: /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt deleted Before request //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Info seq [hh:mm:ss:mss] request: { @@ -1365,9 +1362,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/c/3/c-impl/c/lib/c.d.ts", "/home/src/projects/c/3/c-impl/c/lib/c.js", "/home/src/projects/c/3/c-impl/c/lib/index.d.ts", - "/home/src/projects/c/3/c-impl/c/lib/index.js", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo", - "/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/c/3/c-impl/c/lib/index.js" ] }, { @@ -1388,9 +1383,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/a/1/a-impl/a/lib/a.d.ts", "/home/src/projects/a/1/a-impl/a/lib/a.js", "/home/src/projects/a/1/a-impl/a/lib/index.d.ts", - "/home/src/projects/a/1/a-impl/a/lib/index.js", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/a/1/a-impl/a/lib/index.js" ] }, { @@ -1419,12 +1412,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c/3/c-impl/c/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.d.ts 2:: WatchInfo: /home/src/projects/c/3/c-impl/c/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1445,12 +1432,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a/1/a-impl/a/lib 0 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 2:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one @@ -1458,9 +1439,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 3 -23: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* -24: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -25: *ensureProjectForOpenFiles* *new* +19: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +20: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +21: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1504,9 +1485,9 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 3 -23: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation -24: /home/src/projects/b/2/b-impl/b/tsconfig.json -25: *ensureProjectForOpenFiles* +19: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +20: /home/src/projects/b/2/b-impl/b/tsconfig.json +21: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -1787,10 +1768,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -26: checkOne *new* +22: checkOne *new* Before running Timeout callback:: count: 1 -26: checkOne +22: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1907,13 +1888,13 @@ Custom watchFile:: Triggered:: {"id":3,"path":"/home/src/projects/a/1/a-impl/a/l Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts created Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts updated Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo created -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo updated -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt created -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt updated -Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/lib updated +Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo updated +Custom watchDirectory:: Triggered Ignored:: {"id":25,"path":"/home/src/projects/b/2/b-impl/b/node_modules/a","recursive":true,"ignoreUpdate":true}:: /home/src/projects/b/2/b-impl/b/node_modules/a/tsconfig.tsbuildinfo.readable.baseline.txt updated Before request +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/projects/c/3/c-impl/c/lib/c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1949,19 +1930,6 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - //// [/home/src/projects/a/1/a-impl/a/lib/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1999,19 +1967,6 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Info seq [hh:mm:ss:mss] request: { @@ -2036,9 +1991,7 @@ Info seq [hh:mm:ss:mss] request: "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.js", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/a.d.ts", "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.js", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo", - "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt" + "/home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts" ] }, { @@ -2076,12 +2029,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/a.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/a.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.d.ts 0:: WatchInfo: /home/src/projects/a/1/a-impl/a/lib/index.d.ts 500 undefined WatchType: Closed Script info @@ -2089,7 +2036,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr After request Timeout callback:: count: 1 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -2122,7 +2069,7 @@ ScriptInfos:: /home/src/projects/b/2/b-impl/b/tsconfig.json Before running Timeout callback:: count: 1 -33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2130,8 +2077,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -34: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -35: *ensureProjectForOpenFiles* *new* +28: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +29: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -2140,8 +2087,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -34: /home/src/projects/b/2/b-impl/b/tsconfig.json -35: *ensureProjectForOpenFiles* +28: /home/src/projects/b/2/b-impl/b/tsconfig.json +29: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -2454,10 +2401,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -36: checkOne *new* +30: checkOne *new* Before running Timeout callback:: count: 1 -36: checkOne +30: checkOne Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Windows.js b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Windows.js index b4aee9a51f9da..ec0006da357aa 100644 --- a/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Windows.js +++ b/tests/baselines/reference/tsserver/symLinks/packages-outside-project-folder-built-Windows.js @@ -13,7 +13,8 @@ export * from './c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -42,7 +43,8 @@ export * from 'c'; { "compilerOptions": { "outDir": "lib", - "declaration": true + "declaration": true, + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -67,7 +69,8 @@ import { a } from 'a'; //// [/home/src/projects/b/2/b-impl/b/tsconfig.json] { "compilerOptions": { - "outDir": "lib" + "outDir": "lib", + "rootDir": "src" }, "include": [ "src/**/*.ts" @@ -126,17 +129,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/c.ts", - "../src/index.ts" + "./src/c.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } //// [/home/src/projects/a/1/a-impl/a/lib/a.js] @@ -176,17 +179,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -208,6 +211,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/b/2/b-impl/b/tsconfig.json : ], "options": { "outDir": "/home/src/projects/b/2/b-impl/b/lib", + "rootDir": "/home/src/projects/b/2/b-impl/b/src", "configFilePath": "/home/src/projects/b/2/b-impl/b/tsconfig.json" } } @@ -321,7 +325,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1078,12 +1083,6 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/index.js :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/c/3/c-impl/c/lib :: WatchInfo: /home/src/projects/c 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations @@ -1107,36 +1106,26 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/s Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/index.js :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/a/1/a-impl/a/lib :: WatchInfo: /home/src/projects/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 3 -25: /home/src/projects/b/2/b-impl/b/tsconfig.json -26: *ensureProjectForOpenFiles* -31: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +23: /home/src/projects/b/2/b-impl/b/tsconfig.json +24: *ensureProjectForOpenFiles* +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/c/3/c-impl/c/lib/c.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/c.d.ts] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.js] deleted //// [/home/src/projects/c/3/c-impl/c/lib/index.d.ts] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.js] deleted //// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] deleted -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] deleted Timeout callback:: count: 3 -25: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -26: *ensureProjectForOpenFiles* *new* -31: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +23: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +24: *ensureProjectForOpenFiles* *new* +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1315,7 +1304,7 @@ FsWatchesRecursive *deleted*:: {} Timeout callback:: count: 0 -31: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *deleted* +27: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *deleted* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1349,10 +1338,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -32: checkOne *new* +28: checkOne *new* Before running Timeout callback:: count: 1 -32: checkOne +28: checkOne Info seq [hh:mm:ss:mss] event: { @@ -1474,14 +1463,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/pr Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/index.d.ts :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/b/2/b-impl/b/node_modules/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt :: WatchInfo: /home/src/projects/b/2/b-impl/b/node_modules/a 1 undefined Project: /home/src/projects/b/2/b-impl/b/tsconfig.json WatchType: Failed Lookup Locations Before running Timeout callback:: count: 1 -39: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents //// [/home/src/projects/c/3/c-impl/c/lib/c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1517,19 +1504,6 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - //// [/home/src/projects/a/1/a-impl/a/lib/a.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1567,22 +1541,9 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Timeout callback:: count: 1 -39: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* +33: /home/src/projects/b/2/b-impl/b/tsconfig.jsonFailedLookupInvalidation *new* ScriptInfos:: /home/src/projects/a/1/a-impl/a/lib/a.d.ts *changed* @@ -1620,8 +1581,8 @@ Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* After running Timeout callback:: count: 2 Timeout callback:: count: 2 -40: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* -41: *ensureProjectForOpenFiles* *new* +34: /home/src/projects/b/2/b-impl/b/tsconfig.json *new* +35: *ensureProjectForOpenFiles* *new* Projects:: /home/src/projects/b/2/b-impl/b/tsconfig.json (Configured) *changed* @@ -1630,8 +1591,8 @@ Projects:: dirty: true *changed* Before running Timeout callback:: count: 2 -40: /home/src/projects/b/2/b-impl/b/tsconfig.json -41: *ensureProjectForOpenFiles* +34: /home/src/projects/b/2/b-impl/b/tsconfig.json +35: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /home/src/projects/b/2/b-impl/b/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/b/2/b-impl/b/tsconfig.json @@ -1835,10 +1796,10 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 1 -42: checkOne *new* +36: checkOne *new* Before running Timeout callback:: count: 1 -42: checkOne +36: checkOne Info seq [hh:mm:ss:mss] event: { From 717cfa81e7dac631ada2e0bf2c44ae2d8df5d2da Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 29 Sep 2025 12:54:21 -0700 Subject: [PATCH 3/7] Diagnostic when output layout is changed --- src/compiler/diagnosticMessages.json | 30 +++----- src/compiler/emitter.ts | 17 +++++ src/compiler/program.ts | 22 ++++++ .../reference/commonSourceDirectory.js | 32 +++++++++ .../commonSourceDirectory_dts.errors.txt | 24 +++++++ .../declarationEmitMonorepoBaseUrl.errors.txt | 58 ++++++++++++++++ ...larationEmitPathMappingMonorepo.errors.txt | 33 +++++++++ ...arationEmitPathMappingMonorepo2.errors.txt | 50 ++++++++++++++ ...itToDeclarationDirWithDeclarationOption.js | 16 +++++ ...port_aliasWithRoot_realRootFile.errors.txt | 4 ++ ...rt_noAliasWithRoot_realRootFile.errors.txt | 4 ++ .../when-rootDir-is-not-specified.js | 36 ++++++++-- ...iles-containing-json-file-non-composite.js | 5 +- .../include-and-files-non-composite.js | 5 +- ...file-name-matches-ts-file-non-composite.js | 5 +- ...-along-with-other-include-non-composite.js | 5 +- .../include-only-non-composite.js | 5 +- ...t-outside-configDirectory-non-composite.js | 5 +- .../sourcemap-non-composite.js | 10 ++- ...ing-Windows-paths-and-uppercase-letters.js | 5 +- .../tsc/moduleResolution/pnpm-style-layout.js | 5 +- ...ltiple-declaration-files-in-the-program.js | 13 +--- ...-recursive-directory-watcher-is-invoked.js | 20 +++--- .../nodeNextWatch/esm-mode-file-is-edited.js | 18 ++--- ...hronous-watch-directory-renaming-a-file.js | 28 ++++---- ...ory-with-outDir-and-declaration-enabled.js | 18 ++--- ...-file-with-case-insensitive-file-system.js | 5 ++ ...ig-file-with-case-sensitive-file-system.js | 5 ++ ...indirect-project-but-not-in-another-one.js | 24 ++++++- ...dProjectLoad-is-set-in-indirect-project.js | 24 ++++++- ...-if-disableReferencedProjectLoad-is-set.js | 24 ++++++- ...ces-open-file-through-project-reference.js | 69 ++++++++----------- ...ct-is-indirectly-referenced-by-solution.js | 40 +++++++++-- ...fig-change-with-file-open-before-revert.js | 28 ++++++++ ...rst-config-tree-found-demoConfig-change.js | 28 ++++++++ .../resolutionCache/when-resolution-fails.js | 8 ++- .../when-resolves-to-ambient-module.js | 8 ++- 37 files changed, 591 insertions(+), 145 deletions(-) create mode 100644 tests/baselines/reference/commonSourceDirectory_dts.errors.txt create mode 100644 tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt create mode 100644 tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt create mode 100644 tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 22ac200a0dcee..b1850081c7f39 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1539,7 +1539,6 @@ "category": "Error", "code": 1464 }, - "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.": { "category": "Error", "code": 1470 @@ -1849,7 +1848,6 @@ "category": "Error", "code": 1546 }, - "The types of '{0}' are incompatible between these types.": { "category": "Error", "code": 2200 @@ -1890,7 +1888,6 @@ "category": "Error", "code": 2208 }, - "The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate.": { "category": "Error", "code": 2209 @@ -1907,7 +1904,6 @@ "category": "Message", "code": 2212 }, - "Duplicate identifier '{0}'.": { "category": "Error", "code": 2300 @@ -2888,7 +2884,6 @@ "category": "Error", "code": 2568 }, - "Could not find name '{0}'. Did you mean '{1}'?": { "category": "Error", "code": 2570 @@ -3129,7 +3124,6 @@ "category": "Error", "code": 2639 }, - "Cannot augment module '{0}' with value exports because it resolves to a non-module entity.": { "category": "Error", "code": 2649 @@ -4007,7 +4001,6 @@ "category": "Error", "code": 2881 }, - "Import declaration '{0}' is using private name '{1}'.": { "category": "Error", "code": 4000 @@ -4452,7 +4445,6 @@ "category": "Error", "code": 4128 }, - "The current host does not support the '{0}' option.": { "category": "Error", "code": 5001 @@ -4465,6 +4457,10 @@ "category": "Error", "code": 5010 }, + "Inferred common source directory differs from tsconfig directory, output layout will be changed.": { + "category": "Error", + "code": 5011 + }, "Cannot read file '{0}': {1}.": { "category": "Error", "code": 5012 @@ -4717,7 +4713,10 @@ "category": "Error", "code": 5110 }, - + "Visit https://aka.ms/ts6 for migration information.": { + "category": "Message", + "code": 5111 + }, "Generates a sourcemap for each corresponding '.d.ts' file.": { "category": "Message", "code": 6000 @@ -5661,7 +5660,6 @@ "category": "Error", "code": 6266 }, - "Directory '{0}' has no containing package.json scope. Imports will not resolve.": { "category": "Message", "code": 6270 @@ -5754,7 +5752,6 @@ "category": "Message", "code": 6294 }, - "Enable project compilation": { "category": "Message", "code": 6302 @@ -6037,7 +6034,6 @@ "category": "Message", "code": 6421 }, - "The expected type comes from property '{0}' which is declared here on type '{1}'": { "category": "Message", "code": 6500 @@ -6562,7 +6558,6 @@ "category": "Message", "code": 6808 }, - "one of:": { "category": "Message", "code": 6900 @@ -6691,7 +6686,6 @@ "category": "Error", "code": 6931 }, - "Variable '{0}' implicitly has an '{1}' type.": { "category": "Error", "code": 7005 @@ -6914,7 +6908,6 @@ "category": "Error", "code": 7061 }, - "You cannot rename this element.": { "category": "Error", "code": 8000 @@ -7059,7 +7052,6 @@ "category": "Error", "code": 8039 }, - "Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit.": { "category": "Error", "code": 9005 @@ -7292,7 +7284,6 @@ "category": "Error", "code": 18003 }, - "File is a CommonJS module; it may be converted to an ES module.": { "category": "Suggestion", "code": 80001 @@ -7333,7 +7324,6 @@ "category": "Suggestion", "code": 80010 }, - "Add missing 'super()' call": { "category": "Message", "code": 90001 @@ -7554,7 +7544,6 @@ "category": "Message", "code": 90071 }, - "Convert function to an ES2015 class": { "category": "Message", "code": 95001 @@ -8323,7 +8312,6 @@ "category": "Message", "code": 95197 }, - "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer.": { "category": "Error", "code": 18004 @@ -8520,4 +8508,4 @@ "category": "Error", "code": 18061 } -} +} \ No newline at end of file diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 4db55d865d7bf..03952ee142352 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -664,6 +664,23 @@ export function getCommonSourceDirectory( return commonSourceDirectory; } +/** @internal */ +export function getComputedCommonSourceDirectory( + emittedFiles: readonly string[], + currentDirectory: string, + getCanonicalFileName: GetCanonicalFileName, +): string { + let commonSourceDirectory = computeCommonSourceDirectoryOfFilenames(emittedFiles, currentDirectory, getCanonicalFileName); + + if (commonSourceDirectory && commonSourceDirectory[commonSourceDirectory.length - 1] !== directorySeparator) { + // Make sure directory path ends with directory separator so this string can directly + // used to replace with "" to get the relative path of the source file and the relative path doesn't + // start with / making it rooted path + commonSourceDirectory += directorySeparator; + } + return commonSourceDirectory; +} + /** @internal */ export function getCommonSourceDirectoryOfConfig({ options, fileNames }: ParsedCommandLine, ignoreCase: boolean): string { return getCommonSourceDirectory( diff --git a/src/compiler/program.ts b/src/compiler/program.ts index bdfb8d0151bd7..023930d473e29 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -111,6 +111,7 @@ import { GetCanonicalFileName, getCommonSourceDirectory as ts_getCommonSourceDirectory, getCommonSourceDirectoryOfConfig, + getComputedCommonSourceDirectory, getDeclarationDiagnostics as ts_getDeclarationDiagnostics, getDefaultLibFileName, getDirectoryPath, @@ -4293,6 +4294,27 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro } } + if ( + !options.noEmit && + !options.composite && + !options.rootDir && + options.configFilePath && + (options.outDir || // there is --outDir specified + (getEmitDeclarations(options) && options.declarationDir)) // there is --declarationDir specified + ) { + // Check if rootDir inferred changed and issue diagnostic + const dir = getCommonSourceDirectory(); + const emittedFiles = mapDefined(files, file => !file.isDeclarationFile && sourceFileMayBeEmitted(file, program) ? file.fileName : undefined); + 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, + ))); + } + } + if (options.checkJs && !getAllowJSCompilerOption(options)) { createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs"); } diff --git a/tests/baselines/reference/commonSourceDirectory.js b/tests/baselines/reference/commonSourceDirectory.js index 126ffe0183d1f..5732ecb043c6e 100644 --- a/tests/baselines/reference/commonSourceDirectory.js +++ b/tests/baselines/reference/commonSourceDirectory.js @@ -27,3 +27,35 @@ foo_1.x + bar_1.y; //// [/app/bin/index.d.ts] /// export {}; + + +//// [DtsFileErrors] + + +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) ==== + { + "compilerOptions": { + "outDir": "bin", + "typeRoots": ["../types"], + "sourceMap": true, + "mapRoot": "myMapRoot", + "sourceRoot": "mySourceRoot", + "declaration": true + } + } + +==== /app/bin/index.d.ts (0 errors) ==== + /// + export {}; + +==== /types/bar.d.ts (0 errors) ==== + declare module "bar" { + export const y = 0; + } + \ No newline at end of file diff --git a/tests/baselines/reference/commonSourceDirectory_dts.errors.txt b/tests/baselines/reference/commonSourceDirectory_dts.errors.txt new file mode 100644 index 0000000000000..65f5d3717b874 --- /dev/null +++ b/tests/baselines/reference/commonSourceDirectory_dts.errors.txt @@ -0,0 +1,24 @@ +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) ==== + { + "compilerOptions": { + "outDir": "bin", + "sourceMap": true, + "mapRoot": "myMapRoot", + "sourceRoot": "mySourceRoot", + "declaration": true + } + } + +==== /app/lib/bar.d.ts (0 errors) ==== + declare const y: number; + +==== /app/src/index.ts (0 errors) ==== + /// + export const x = y; + \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt b/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt new file mode 100644 index 0000000000000..d86f945b3b76b --- /dev/null +++ b/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt @@ -0,0 +1,58 @@ +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. +==== /tsconfig.json (0 errors) ==== + { + "compilerOptions": { + "module": "nodenext", + "declaration": true, + "outDir": "temp", + "baseUrl": "." + } + } + +==== /packages/compiler-core/src/index.ts (0 errors) ==== + import { PluginConfig } from "@babel/parser"; + +==== /packages/compiler-sfc/src/index.ts (0 errors) ==== + import { createPlugin } from "@babel/parser"; + export function resolveParserPlugins() { + return [createPlugin()]; + } + +==== /node_modules/.pnpm/@babel+parser@7.23.6/node_modules/@babel/parser/package.json (0 errors) ==== + { + "name": "@babel/parser", + "version": "7.23.6", + "main": "./lib/index.js", + "types": "./typings/babel-parser.d.ts" + } + +==== /node_modules/.pnpm/@babel+parser@7.23.6/node_modules/@babel/parser/typings/babel-parser.d.ts (0 errors) ==== + export declare function createPlugin(): PluginConfig; + export declare class PluginConfig {} + +==== /packages/compiler-core/package.json (0 errors) ==== + { + "name": "@vue/compiler-core", + "version": "3.0.0", + "main": "./src/index.ts", + "dependencies": { + "@babel/parser": "^7.0.0" + } + } + +==== /packages/compiler-sfc/package.json (0 errors) ==== + { + "name": "@vue/compiler-sfc", + "version": "3.0.0", + "main": "./src/index.ts", + "dependencies": { + "@babel/parser": "^7.0.0", + "@vue/compiler-core": "^3.0.0" + } + } + \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt b/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt new file mode 100644 index 0000000000000..6219342ac709b --- /dev/null +++ b/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt @@ -0,0 +1,33 @@ +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. +==== packages/b/tsconfig.json (0 errors) ==== + { + "compilerOptions": { + "outDir": "dist", + "declaration": true, + "baseUrl": ".", + "paths": { + "@ts-bug/a": ["../a"] + } + } + } + + +==== packages/b/src/index.ts (0 errors) ==== + import { a } from "@ts-bug/a"; + + export function b(text: string) { + return a(text); + } +==== packages/a/index.d.ts (0 errors) ==== + declare module "@ts-bug/a" { + export type AText = { + value: string; + }; + export function a(text: string): AText; + } + \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt b/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt new file mode 100644 index 0000000000000..14432b4cc2efc --- /dev/null +++ b/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt @@ -0,0 +1,50 @@ +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. +==== packages/lab/tsconfig.json (0 errors) ==== + { + "compilerOptions": { + "outDir": "dist", + "declaration": true, + "baseUrl": "../", + "paths": { + "@ts-bug/core": ["./core/src"], + "@ts-bug/core/*": ["./core/src/*"], + "@ts-bug/lab": ["./lab/src"], + "@ts-bug/lab/*": ["./lab/src/*"], + "@ts-bug/styles": ["./styles/src"], + "@ts-bug/styles/*": ["./styles/src/*"] + } + } + } +==== packages/lab/src/index.ts (0 errors) ==== + import { createSvgIcon } from "@ts-bug/core/utils"; + export default createSvgIcon("Hello", "ArrowLeft"); + +==== packages/core/src/index.d.ts (0 errors) ==== + export * from "./utils"; + export { default as SvgIcon } from "./SvgIcon"; + +==== packages/core/src/SvgIcon.d.ts (0 errors) ==== + import { StyledComponentProps } from "@ts-bug/styles"; + export interface SvgIconProps extends StyledComponentProps<"root"> { + children?: string[]; + } + export interface SomeInterface { + myProp: string; + } + declare const SvgIcon: SomeInterface; + export default SvgIcon; + +==== packages/core/src/utils.d.ts (0 errors) ==== + import SvgIcon from "./SvgIcon"; + export function createSvgIcon(path: string, displayName: string): typeof SvgIcon; + +==== packages/styles/src/index.d.ts (0 errors) ==== + export interface StyledComponentProps { + classes?: Record; + } + \ No newline at end of file diff --git a/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js b/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js index 0a0189ac4c6d4..0376969b194a2 100644 --- a/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js +++ b/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js @@ -17,3 +17,19 @@ interface Foo { x: number; } export default Foo; + + +//// [DtsFileErrors] + + +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) ==== + { + "compilerOptions": { "declaration": true, "declarationDir": "out" } + } + \ 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 cf0d101e887f9..f40d786458978 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt @@ -1,8 +1,12 @@ +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/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 (0 errors) ==== { diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt index a603413ee4a4f..321e56c24c258 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt @@ -1,8 +1,12 @@ +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/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 (0 errors) ==== { 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 26e717ebda234..d5c7ffc889988 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 @@ -35,6 +35,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. + Visit https://aka.ms/ts6 for migration information. + + +Found 1 error. + //// [/home/src/workspaces/project/dist/src/index.js] @@ -45,19 +51,20 @@ exports.x = 10; //// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo] -{"root":["../src/index.ts"],"version":"FakeTSVersion"} +{"root":["../src/index.ts"],"errors":true,"version":"FakeTSVersion"} //// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] { "root": [ "../src/index.ts" ], + "errors": true, "version": "FakeTSVersion", - "size": 54 + "size": 68 } -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: no-change-run @@ -68,12 +75,23 @@ Output:: [HH:MM:SS AM] Projects in this build: * tsconfig.json -[HH:MM:SS AM] Project 'tsconfig.json' is up to date because newest input 'src/index.ts' is older than output 'dist/src/index.js' +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'dist/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[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. + Visit https://aka.ms/ts6 for migration information. + + +Found 1 error. +//// [/home/src/workspaces/project/dist/src/index.js] file written with same contents +//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo] file written with same contents +//// [/home/src/workspaces/project/dist/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped Change:: Normal build without change, that does not block emit on error to show files that get emitted @@ -81,8 +99,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. + Visit https://aka.ms/ts6 for migration information. + + +Found 1 error. + //// [/home/src/workspaces/project/dist/src/index.js] file written with same contents -exitCode:: ExitStatus.Success +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated 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 9fab5ee581738..6a7404f8652c4 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 @@ -52,6 +52,9 @@ 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. 3 "moduleResolution": "node", @@ -68,7 +71,7 @@ project/src/hello.json project/src/index.ts Part of 'files' list in tsconfig.json -Found 1 error. +Found 2 errors. 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 ed24eb8eb1278..569ab0aae9bdb 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 @@ -54,6 +54,9 @@ 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. 3 "moduleResolution": "node", @@ -70,7 +73,7 @@ project/src/hello.json project/src/index.ts Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -Found 1 error. +Found 2 errors. 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 bf9ca97a65558..799f4eea6bddb 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 @@ -52,6 +52,9 @@ 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. 3 "moduleResolution": "node", @@ -68,7 +71,7 @@ project/src/index.json project/src/index.ts Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -Found 1 error. +Found 2 errors. 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 d584ac13d6754..bc013b992dc1a 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 @@ -52,6 +52,9 @@ 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. 3 "moduleResolution": "node", @@ -68,7 +71,7 @@ project/src/hello.json project/src/index.ts Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -Found 1 error. +Found 2 errors. 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 71245219d20e3..5970f97d8841b 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only-non-composite.js @@ -51,6 +51,9 @@ 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. 3 "moduleResolution": "node", @@ -66,7 +69,7 @@ project/src/hello.json project/src/index.ts Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -Found 1 error. +Found 2 errors. 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 c34d3b05f0881..9b7483f7aab94 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 @@ -51,6 +51,9 @@ 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. 3 "moduleResolution": "node", @@ -65,7 +68,7 @@ hello.json project/src/index.ts Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -Found 1 error. +Found 2 errors. diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js index ef7f77c0cc406..d5fea1bea65be 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js @@ -53,6 +53,9 @@ 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. 3 "moduleResolution": "node", @@ -70,7 +73,7 @@ project/src/hello.json project/src/index.ts Part of 'files' list in tsconfig.json -Found 1 error. +Found 2 errors. @@ -123,6 +126,9 @@ 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. 3 "moduleResolution": "node", @@ -140,7 +146,7 @@ project/src/hello.json project/src/index.ts Part of 'files' list in tsconfig.json -Found 1 error. +Found 2 errors. 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 20e0d64f0c1d3..53693a66ce798 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 @@ -96,6 +96,9 @@ 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. + Visit https://aka.ms/ts6 for migration information. + tsconfig.json:21: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. 21 "moduleResolution": "node", @@ -112,7 +115,7 @@ src/utils/index.ts src/main.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error in tsconfig.json:21 +Found 2 errors in the same file, starting at: tsconfig.json:21 diff --git a/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js b/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js index 9d931dab8c928..4305607e68fdf 100644 --- a/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js +++ b/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js @@ -331,6 +331,9 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== +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. 8 "moduleResolution": "node", @@ -352,7 +355,7 @@ Directory '/node_modules' does not exist, skipping all lookups in it. src/app.tsx Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error in tsconfig.json:8 +Found 2 errors in the same file, starting at: tsconfig.json:8 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 8006b392c1ff8..c081ce944a79a 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 @@ -47,10 +47,8 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -src/main2.ts:1:114 - error TS2724: 'Common.SomeComponent.DynamicMenu' has no exported member named 'z'. Did you mean 'Z'? - -1 namespace main.file4 { import DynamicMenu = Common.SomeComponent.DynamicMenu; export function foo(a: DynamicMenu.z) { } } -   ~ +error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -120,12 +118,7 @@ Program files:: /home/src/projects/a/b/project/src/main.ts /home/src/projects/a/b/project/src/main2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/a/b/output/AnotherDependency/file1.d.ts -/home/src/projects/a/b/dependencies/file2.d.ts -/home/src/projects/a/b/project/src/main.ts -/home/src/projects/a/b/project/src/main2.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) 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 a7b26ccd9a8eb..092880efac632 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 @@ -39,7 +39,10 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -93,10 +96,7 @@ Program files:: /home/src/projects/a/rootFolder/project/Scripts/Javascript.js /home/src/projects/a/rootFolder/project/Scripts/TypeScript.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/a/rootFolder/project/Scripts/Javascript.js -/home/src/projects/a/rootFolder/project/Scripts/TypeScript.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -124,7 +124,10 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -152,10 +155,7 @@ Program files:: /home/src/projects/a/rootFolder/project/Scripts/Javascript.js /home/src/projects/a/rootFolder/project/Scripts/TypeScript.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/a/rootFolder/project/Scripts/Javascript.js -/home/src/projects/a/rootFolder/project/Scripts/TypeScript.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/projects/a/rootfolder/project/scripts/typescript.ts (computed .d.ts) 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 e26e547c8d85d..2ee37800ba235 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 @@ -49,7 +49,10 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -116,10 +119,7 @@ Program files:: /home/src/projects/project/src/deps.d.ts /home/src/projects/project/src/index.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.es2020.full.d.ts -/home/src/projects/project/src/deps.d.ts -/home/src/projects/project/src/index.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.es2020.full.d.ts (used version) @@ -148,7 +148,10 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -174,8 +177,7 @@ Program files:: /home/src/projects/project/src/deps.d.ts /home/src/projects/project/src/index.ts -Semantic diagnostics in builder refreshed for:: -/home/src/projects/project/src/index.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/projects/project/src/index.ts (computed .d.ts) 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 56e39a0b54a43..391407cccdf7d 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 @@ -34,7 +34,10 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -90,10 +93,7 @@ Program files:: /user/username/projects/myproject/src/file2.ts /user/username/projects/myproject/src/file1.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/src/file2.ts -/user/username/projects/myproject/src/file1.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -163,11 +163,14 @@ 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 '**/*' -[HH:MM:SS AM] Found 1 error. Watching for file changes. +[HH:MM:SS AM] Found 2 errors. Watching for file changes. @@ -216,8 +219,7 @@ Program files:: /home/src/tslibs/TS/Lib/lib.d.ts /user/username/projects/myproject/src/file1.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/file1.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/src/file1.ts (computed .d.ts) @@ -247,10 +249,8 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -src/file1.ts:1:19 - error TS2307: Cannot find module './file2' or its corresponding type declarations. - -1 import { x } from "./file2"; -   ~~~~~~~~~ +error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -317,9 +317,7 @@ Program files:: /user/username/projects/myproject/src/file1.ts /user/username/projects/myproject/src/renamed.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/file1.ts -/user/username/projects/myproject/src/renamed.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/src/renamed.ts (computed .d.ts) 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 0b0bcd0a8ae53..e80be524981b0 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 @@ -35,7 +35,10 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -102,10 +105,7 @@ Program files:: /user/username/projects/myproject/node_modules/file2/index.d.ts /user/username/projects/myproject/src/file1.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/node_modules/file2/index.d.ts -/user/username/projects/myproject/src/file1.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /home/src/tslibs/ts/lib/lib.d.ts (used version) @@ -158,7 +158,10 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +error TS5011: Inferred common source directory differs from tsconfig directory, output layout will be changed. + Visit https://aka.ms/ts6 for migration information. + +[HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -235,8 +238,7 @@ Program files:: /user/username/projects/myproject/src/file1.ts /user/username/projects/myproject/src/file3.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/src/file3.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/src/file3.ts (computed .d.ts) 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 2ae2b214acd4e..24a0b72ffc7c7 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 @@ -272,6 +272,11 @@ 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, 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 981c65f403c3a..f54edb5e76d55 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 @@ -272,6 +272,11 @@ 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, 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 f2412f04852b4..54375938cc6b5 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 @@ -340,7 +340,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /user/username/projects/myproject/tsconfig-src.json, currentDirectory: /user/username/projects/myproject @@ -1287,7 +1293,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /user/username/projects/myproject/tsconfig-src.json, currentDirectory: /user/username/projects/myproject @@ -1599,7 +1611,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots 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 1e88910430066..d66f80849b713 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 @@ -293,7 +293,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -1030,7 +1036,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -1254,7 +1266,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/tsconfig.json ProjectRootPath: undefined:: Result: undefined 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 d3dbabf2286dc..7858b55c6678b 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 @@ -251,7 +251,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -918,7 +924,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -1112,7 +1124,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /user/username/projects/myproject/tsconfig.json ProjectRootPath: undefined:: Result: undefined 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 4b57bc630c469..31250b6c44797 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 @@ -248,7 +248,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /user/username/projects/myproject/tsconfig-src.json, currentDirectory: /user/username/projects/myproject @@ -1179,7 +1185,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /user/username/projects/myproject/tsconfig-src.json, currentDirectory: /user/username/projects/myproject @@ -1732,32 +1744,6 @@ Info seq [hh:mm:ss:mss] Files (4) /user/username/projects/myproject/own/main.ts Text-2 "import { foo } from 'main';\nfoo;\nexport function bar() {}" Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 7, - "offset": 5 - }, - "end": { - "line": 9, - "offset": 6 - }, - "text": "File '/user/username/projects/myproject/tsconfig-src.json' not found.", - "code": 6053, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - } - ] - } - } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -1954,17 +1940,6 @@ Info seq [hh:mm:ss:mss] Files (4) /user/username/projects/myproject/own/main.ts Text-2 "import { foo } from 'main';\nfoo;\nexport function bar() {}" Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } - } Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { @@ -2521,7 +2496,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -3644,7 +3625,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /user/username/projects/myproject/tsconfig-src.json, currentDirectory: /user/username/projects/myproject 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 40018546cfc00..4654523193596 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 @@ -338,7 +338,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /user/username/projects/myproject/tsconfig-src.json, currentDirectory: /user/username/projects/myproject @@ -1373,7 +1379,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /user/username/projects/myproject/tsconfig-src.json, currentDirectory: /user/username/projects/myproject @@ -2285,7 +2297,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig-src.json @@ -2946,7 +2964,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -4600,7 +4624,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /user/username/projects/myproject/tsconfig-src.json, currentDirectory: /user/username/projects/myproject 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 111dfc3f1908e..75e631a419b6c 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 @@ -546,6 +546,23 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/projects/project/demos/helpers.ts Text-1 "export const foo = 1;\n" Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/projects/project/tsconfig.json", + "configFile": "/home/src/projects/project/tsconfig.json", + "diagnostics": [ + { + "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" + } + ] + } + } Info seq [hh:mm:ss:mss] Running: /home/src/projects/project/demos/tsconfig.json Info seq [hh:mm:ss:mss] event: { @@ -1232,6 +1249,17 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/projects/project/app/Component.ts Text-1 "export const Component = () => {}\n" Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/projects/project/tsconfig.json", + "configFile": "/home/src/projects/project/tsconfig.json", + "diagnostics": [] + } + } Info seq [hh:mm:ss:mss] Running: /home/src/projects/project/demos/tsconfig.json Info seq [hh:mm:ss:mss] event: { 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 cd0992a3babeb..3dbea898f48c8 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 @@ -546,6 +546,23 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/projects/project/demos/helpers.ts Text-1 "export const foo = 1;\n" Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/projects/project/tsconfig.json", + "configFile": "/home/src/projects/project/tsconfig.json", + "diagnostics": [ + { + "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" + } + ] + } + } Info seq [hh:mm:ss:mss] Running: /home/src/projects/project/demos/tsconfig.json Info seq [hh:mm:ss:mss] event: { @@ -832,6 +849,17 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/projects/project/app/Component.ts Text-1 "export const Component = () => {}\n" Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/projects/project/tsconfig.json", + "configFile": "/home/src/projects/project/tsconfig.json", + "diagnostics": [] + } + } Info seq [hh:mm:ss:mss] Running: /home/src/projects/project/demos/tsconfig.json Info seq [hh:mm:ss:mss] event: { diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js index 148a97fcaf36b..732da7523cb72 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js @@ -210,7 +210,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/somefolder/srcfile.ts", "configFile": "/user/username/projects/myproject/src/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) 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 9b02a29a4cc51..4e38a9404345c 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 @@ -222,7 +222,13 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/src/somefolder/srcfile.ts", "configFile": "/user/username/projects/myproject/src/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "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" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) From 3ca473b53032e4d7a4dc1f213ad7b0ce86733139 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 1 Oct 2025 11:31:56 -0700 Subject: [PATCH 4/7] formatting --- src/compiler/diagnosticMessages.json | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index b1850081c7f39..6d37c93f36295 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1539,6 +1539,7 @@ "category": "Error", "code": 1464 }, + "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.": { "category": "Error", "code": 1470 @@ -1848,6 +1849,7 @@ "category": "Error", "code": 1546 }, + "The types of '{0}' are incompatible between these types.": { "category": "Error", "code": 2200 @@ -1888,6 +1890,7 @@ "category": "Error", "code": 2208 }, + "The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate.": { "category": "Error", "code": 2209 @@ -1904,6 +1907,7 @@ "category": "Message", "code": 2212 }, + "Duplicate identifier '{0}'.": { "category": "Error", "code": 2300 @@ -2884,6 +2888,7 @@ "category": "Error", "code": 2568 }, + "Could not find name '{0}'. Did you mean '{1}'?": { "category": "Error", "code": 2570 @@ -3124,6 +3129,7 @@ "category": "Error", "code": 2639 }, + "Cannot augment module '{0}' with value exports because it resolves to a non-module entity.": { "category": "Error", "code": 2649 @@ -4001,6 +4007,11 @@ "category": "Error", "code": 2881 }, + "Cannot find module or type declarations for side-effect import of '{0}'.": { + "category": "Error", + "code": 2882 + }, + "Import declaration '{0}' is using private name '{1}'.": { "category": "Error", "code": 4000 @@ -4445,6 +4456,7 @@ "category": "Error", "code": 4128 }, + "The current host does not support the '{0}' option.": { "category": "Error", "code": 5001 @@ -4717,6 +4729,7 @@ "category": "Message", "code": 5111 }, + "Generates a sourcemap for each corresponding '.d.ts' file.": { "category": "Message", "code": 6000 @@ -5660,6 +5673,7 @@ "category": "Error", "code": 6266 }, + "Directory '{0}' has no containing package.json scope. Imports will not resolve.": { "category": "Message", "code": 6270 @@ -5752,6 +5766,7 @@ "category": "Message", "code": 6294 }, + "Enable project compilation": { "category": "Message", "code": 6302 @@ -6034,6 +6049,7 @@ "category": "Message", "code": 6421 }, + "The expected type comes from property '{0}' which is declared here on type '{1}'": { "category": "Message", "code": 6500 @@ -6558,6 +6574,7 @@ "category": "Message", "code": 6808 }, + "one of:": { "category": "Message", "code": 6900 @@ -6686,6 +6703,7 @@ "category": "Error", "code": 6931 }, + "Variable '{0}' implicitly has an '{1}' type.": { "category": "Error", "code": 7005 @@ -6908,6 +6926,7 @@ "category": "Error", "code": 7061 }, + "You cannot rename this element.": { "category": "Error", "code": 8000 @@ -7052,6 +7071,7 @@ "category": "Error", "code": 8039 }, + "Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit.": { "category": "Error", "code": 9005 @@ -7284,6 +7304,7 @@ "category": "Error", "code": 18003 }, + "File is a CommonJS module; it may be converted to an ES module.": { "category": "Suggestion", "code": 80001 @@ -7324,6 +7345,7 @@ "category": "Suggestion", "code": 80010 }, + "Add missing 'super()' call": { "category": "Message", "code": 90001 @@ -7544,6 +7566,7 @@ "category": "Message", "code": 90071 }, + "Convert function to an ES2015 class": { "category": "Message", "code": 95001 @@ -8312,6 +8335,7 @@ "category": "Message", "code": 95197 }, + "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer.": { "category": "Error", "code": 18004 @@ -8508,4 +8532,4 @@ "category": "Error", "code": 18061 } -} \ No newline at end of file +} From 00f890805d4917f9b2fffc2affb2992ecaf9162b Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 1 Oct 2025 12:00:41 -0700 Subject: [PATCH 5/7] 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 8937137cd0441..fab188deff3dc 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 5732ecb043c6e..c0b534128365b 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 65f5d3717b874..e659c5ea2aa16 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 15c9028a9aa9d..7d47190db91b9 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 9a3cb5b26d07a..a58a9d7f03699 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 99b73b8cdca66..ada6cfcc1fae4 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 0376969b194a2..8a9efc56cbdb5 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 51a7c53eeef9a..01fd1c18f6084 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 45cf032fd2d7a..03c4d61e79ec8 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 2a5838dbd9e6b..b9e7d969cd41f 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 86b263acc7ce5..b4c51bcf254d0 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 89d0f990758a6..308293c777e11 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 9a428ed405076..f961d92cff9a2 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 25d9c87955f7e..b6cfc914cd6fa 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 7513a72a7bcf0..115f2e079a571 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 14743a15a646b..be200b093f318 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 a3e7f97e89cd6..7ac2bff0c7822 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 8365531cd3e8f..31eb0b0e2e380 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 165b9a7377673..25b7f4aa0d9e1 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 e3ac9883072b5..08bc16edc0e33 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 d988d5eba3e37..90e4592c7dec4 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 60b8b399cc4e2..ee1448d00d473 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 65a2da5011986..45b1659c77403 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 584720cd12287..5b59d79f43bc8 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 f01313dbb3931..71e7058d63bc6 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 cb456989a0193..bda6c31c28d22 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 068f370101259..25ce482f326a3 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 11f81ebb32a2a..e86fbefbd7f57 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 8363dba258bd0..5372423a9864c 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 737a44a8a917e..ae58a0ec93947 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 4a0a6348f2cb6..37da65c00eac6 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 237b7484302a1..23222984145a8 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 e470e13aabf2e..06b20ff41a14a 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 8cd8aff503222..4902e28882394 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 8835116c02501..f301f70477068 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": { From cbb10d2707829f0f88df24125249a051900bd319 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 3 Oct 2025 11:08:06 -0700 Subject: [PATCH 6/7] 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 b1217d54b1eeb..92baf7f8f100b 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 fab188deff3dc..33c26f8999f97 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 c0b534128365b..a07a563aae8af 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 e659c5ea2aa16..39317702628a7 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 7d47190db91b9..1208b91dd9ea0 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 a58a9d7f03699..07f7344ed0bd0 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 ada6cfcc1fae4..dc74d26c3004d 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 8a9efc56cbdb5..79c4aeaf74393 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 01fd1c18f6084..f0d423f0440c3 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 03c4d61e79ec8..b5c772fe8a854 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 b9e7d969cd41f..1a27b5e868394 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 b4c51bcf254d0..2e79c0efce892 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 308293c777e11..00f8d22fddcea 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 f961d92cff9a2..0f31737d5482d 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 b6cfc914cd6fa..c727680dcfcbf 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 115f2e079a571..66ae25243b56e 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 be200b093f318..957b959131c5f 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 7ac2bff0c7822..5e4b9284008a7 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 31eb0b0e2e380..35ed22da004f8 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 25b7f4aa0d9e1..6d972b9cf3ee5 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 08bc16edc0e33..9a8494af7b1d3 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 90e4592c7dec4..38ec39c99ca36 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 ee1448d00d473..eab8e23b0b7de 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 45b1659c77403..def1b08815f5d 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 5b59d79f43bc8..6f3b65c3ff3b4 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 71e7058d63bc6..1de7900c526be 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 bda6c31c28d22..ff3e9afad346e 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 25ce482f326a3..447d6257bc183 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 e86fbefbd7f57..68ef913cc14f1 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 5372423a9864c..c616f720ab29d 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 ae58a0ec93947..5d57196390097 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 37da65c00eac6..44de74b7ba1b7 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 23222984145a8..4c1356ff72567 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 06b20ff41a14a..3c7ed556daa65 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 4902e28882394..dc28e62ace82b 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 f301f70477068..a929ee26a742f 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" From 8636f8cd33b96e7008b40fb7e021f77ce7f56913 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 3 Oct 2025 11:17:21 -0700 Subject: [PATCH 7/7] Issue error on outFile as well --- src/compiler/program.ts | 7 +- ...-dts-generation-errors-with-incremental.js | 34 +- .../outFile/reports-dts-generation-errors.js | 16 +- .../changes-incremental-declaration.js | 511 +++++++++++------ .../noEmit/outFile/changes-incremental.js | 508 +++++++++++------ ...-initial-noEmit-incremental-declaration.js | 114 ++-- ...changes-with-initial-noEmit-incremental.js | 114 ++-- .../outFile/reports-dts-generation-errors.js | 30 +- .../changes-incremental-declaration.js | 535 ++++++++++++------ .../tsc/noEmit/outFile/changes-incremental.js | 532 +++++++++++------ ...-initial-noEmit-incremental-declaration.js | 122 ++-- ...changes-with-initial-noEmit-incremental.js | 122 ++-- ...ject-contains-invalid-project-reference.js | 8 +- ...ltiple-declaration-files-in-the-program.js | 14 +- ...quest-when-projectFile-is-not-specified.js | 80 ++- ...stRequest-when-projectFile-is-specified.js | 80 ++- 16 files changed, 1777 insertions(+), 1050 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 33c26f8999f97..d8dd274bb4075 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -4262,7 +4262,8 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro !options.rootDir && options.configFilePath && (options.outDir || // there is --outDir specified - (getEmitDeclarations(options) && options.declarationDir)) // there is --declarationDir specified + (getEmitDeclarations(options) && options.declarationDir) || // there is --declarationDir specified + options.outFile) ) { // Check if rootDir inferred changed and issue diagnostic const dir = getCommonSourceDirectory(); @@ -4272,8 +4273,8 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro // change in layout createDiagnosticForOption( /*onKey*/ true, - options.outDir ? "outDir" : "declarationDir", - options.outDir ? "declarationDir" : undefined, + options.outFile ? "outFile" : options.outDir ? "outDir" : "declarationDir", + !options.outFile && options.outDir ? "declarationDir" : undefined, chainDiagnosticMessages( chainDiagnosticMessages(/*details*/ undefined, Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information), 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, diff --git a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js index 3f0d802f20f40..bc0a9227bcbb8 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors-with-incremental.js @@ -57,6 +57,12 @@ Output:: 2 export const api = ky.extend({});    ~~~ +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 "outFile": "./outFile.js" +   ~~~~~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js TSFILE: /home/src/workspaces/project/outFile.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts @@ -66,7 +72,7 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error. +Found 2 errors. @@ -80,7 +86,7 @@ define("src/index", ["require", "exports", "ky"], function (require, exports, ky //// [/home/src/workspaces/project/outFile.tsbuildinfo] -{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./ky.d.ts","./src/index.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","10101889135-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;\n","-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n"],"root":[3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js","skipDefaultLibCheck":true,"skipLibCheck":true},"emitDiagnosticsPerFile":[[3,[{"start":34,"length":3,"messageText":"Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/ky\" but cannot be named.","category":1,"code":4023}]]],"version":"FakeTSVersion"} +{"fileNames":["../../tslibs/ts/lib/lib.d.ts","./ky.d.ts","./src/index.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","10101889135-type KyInstance = {\n extend(options: Record): KyInstance;\n}\ndeclare const ky: KyInstance;\nexport default ky;\n","-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n"],"root":[3],"options":{"declaration":true,"module":2,"outFile":"./outFile.js","skipDefaultLibCheck":true,"skipLibCheck":true},"semanticDiagnosticsPerFile":[1,2,3],"emitDiagnosticsPerFile":[[3,[{"start":34,"length":3,"messageText":"Exported variable 'api' has or is using name 'KyInstance' from external module \"/home/src/workspaces/project/ky\" but cannot be named.","category":1,"code":4023}]]],"version":"FakeTSVersion"} //// [/home/src/workspaces/project/outFile.tsbuildinfo.readable.baseline.txt] { @@ -107,6 +113,20 @@ define("src/index", ["require", "exports", "ky"], function (require, exports, ky "skipDefaultLibCheck": true, "skipLibCheck": true }, + "semanticDiagnosticsPerFile": [ + [ + "../../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./ky.d.ts", + "not cached or not changed" + ], + [ + "./src/index.ts", + "not cached or not changed" + ] + ], "emitDiagnosticsPerFile": [ [ "./src/index.ts", @@ -122,7 +142,7 @@ define("src/index", ["require", "exports", "ky"], function (require, exports, ky ] ], "version": "FakeTSVersion", - "size": 1094 + "size": 1131 } @@ -146,6 +166,12 @@ Output:: 2 export const api = ky.extend({});    ~~~ +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 "outFile": "./outFile.js" +   ~~~~~~~~~ + ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' ky.d.ts @@ -153,7 +179,7 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error. +Found 2 errors. diff --git a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js index 0ecfd18bb5df4..4fa5f2870f4ac 100644 --- a/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js +++ b/tests/baselines/reference/tsbuild/declarationEmit/outFile/reports-dts-generation-errors.js @@ -56,6 +56,12 @@ Output:: 2 export const api = ky.extend({});    ~~~ +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 "outFile": "./outFile.js" +   ~~~~~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js TSFILE: /home/src/workspaces/project/outFile.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts @@ -67,7 +73,7 @@ src/index.ts [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. @@ -114,6 +120,12 @@ Output:: 2 export const api = ky.extend({});    ~~~ +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 "outFile": "./outFile.js" +   ~~~~~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js TSFILE: /home/src/workspaces/project/outFile.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts @@ -125,7 +137,7 @@ src/index.ts [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js index 30ae4ceb8d612..b182f45bc0227 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental-declaration.js @@ -61,10 +61,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -142,7 +143,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -186,22 +187,37 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } @@ -222,6 +238,69 @@ Output:: +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "545032748-export class classC {\n prop = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "./project/src/nochangefilewithemitspecificerror.ts", + [ + { + "start": 18, + "length": 18, + "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", + "category": 1, + "code": 2396, + "skippedOn": "noEmit" + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 1466 +} + exitCode:: ExitStatus.Success @@ -418,10 +497,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -431,7 +511,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.d.ts] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -475,22 +555,37 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } @@ -509,10 +604,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -537,6 +633,69 @@ Output:: +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "545032748-export class classC {\n prop = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "./project/src/nochangefilewithemitspecificerror.ts", + [ + { + "start": 18, + "length": 18, + "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", + "category": 1, + "code": 2396, + "skippedOn": "noEmit" + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 1466 +} + exitCode:: ExitStatus.Success @@ -571,10 +730,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -602,33 +762,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5: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. -2 new indirectClass().classC.prop; -   ~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -703,7 +844,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -747,66 +888,37 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2044 + "size": 1298 } @@ -825,33 +937,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5: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. -2 new indirectClass().classC.prop; -   ~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -896,6 +989,113 @@ Found 2 errors. +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "1786859709-export class classC {\n prop1 = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "./project/src/directuse.ts", + [ + { + "start": 76, + "length": 4, + "code": 2551, + "category": 1, + "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./project/src/class.ts", + "start": 26, + "length": 5, + "messageText": "'prop1' is declared here.", + "category": 3, + "code": 2728 + } + ] + } + ] + ], + [ + "./project/src/indirectuse.ts", + [ + { + "start": 76, + "length": 4, + "code": 2551, + "category": 1, + "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./project/src/class.ts", + "start": 26, + "length": 5, + "messageText": "'prop1' is declared here.", + "category": 3, + "code": 2728 + } + ] + } + ] + ], + [ + "./project/src/nochangefilewithemitspecificerror.ts", + [ + { + "start": 18, + "length": 18, + "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", + "category": 1, + "code": 2396, + "skippedOn": "noEmit" + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 2044 +} + exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped @@ -953,33 +1153,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5: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. -2 new indirectClass().classC.prop; -   ~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -1089,10 +1270,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -1284,10 +1466,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js index 8971a499f4083..e217232118fed 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-incremental.js @@ -60,10 +60,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -121,7 +122,7 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -164,22 +165,37 @@ function someFunc(arguments) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } @@ -200,6 +216,68 @@ Output:: +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "545032748-export class classC {\n prop = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "./project/src/nochangefilewithemitspecificerror.ts", + [ + { + "start": 18, + "length": 18, + "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", + "category": 1, + "code": 2396, + "skippedOn": "noEmit" + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 1447 +} + exitCode:: ExitStatus.Success @@ -395,10 +473,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -407,7 +486,7 @@ Found 1 error. //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -450,22 +529,37 @@ Found 1 error. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } @@ -484,10 +578,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -512,6 +607,68 @@ Output:: +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "545032748-export class classC {\n prop = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "./project/src/nochangefilewithemitspecificerror.ts", + [ + { + "start": 18, + "length": 18, + "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", + "category": 1, + "code": 2396, + "skippedOn": "noEmit" + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 1447 +} + exitCode:: ExitStatus.Success @@ -546,10 +703,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -577,33 +735,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ +tsconfig.json:4: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. - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +4 "outFile": "../outFile.js", +   ~~~~~~~~~ -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -658,7 +797,7 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -701,66 +840,37 @@ function someFunc(arguments) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2025 + "size": 1279 } @@ -779,33 +889,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:4: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. -2 new indirectClass().classC.prop; -   ~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -850,6 +941,112 @@ Found 2 errors. +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "1786859709-export class classC {\n prop1 = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "./project/src/directuse.ts", + [ + { + "start": 76, + "length": 4, + "code": 2551, + "category": 1, + "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./project/src/class.ts", + "start": 26, + "length": 5, + "messageText": "'prop1' is declared here.", + "category": 3, + "code": 2728 + } + ] + } + ] + ], + [ + "./project/src/indirectuse.ts", + [ + { + "start": 76, + "length": 4, + "code": 2551, + "category": 1, + "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./project/src/class.ts", + "start": 26, + "length": 5, + "messageText": "'prop1' is declared here.", + "category": 3, + "code": 2728 + } + ] + } + ] + ], + [ + "./project/src/nochangefilewithemitspecificerror.ts", + [ + { + "start": 18, + "length": 18, + "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", + "category": 1, + "code": 2396, + "skippedOn": "noEmit" + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 2025 +} + exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped @@ -907,33 +1104,14 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:4: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. -2 new indirectClass().classC.prop; -   ~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. @@ -1042,10 +1220,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -1216,10 +1395,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js index 68ad7bb52903f..db520fdb751e6 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js @@ -146,10 +146,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -310,38 +311,19 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5: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. -2 new indirectClass().classC.prop; -   ~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -385,66 +367,37 @@ Found 3 errors. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2044 + "size": 1298 } //// [/home/src/workspaces/outFile.js] @@ -623,10 +576,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. diff --git a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js index 35d525999bb11..a41678d8416ce 100644 --- a/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsbuild/noEmit/outFile/changes-with-initial-noEmit-incremental.js @@ -144,10 +144,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. @@ -287,38 +288,19 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:4: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. -2 new indirectClass().classC.prop; -   ~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors. +Found 1 error. //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -361,66 +343,37 @@ Found 3 errors. "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2025 + "size": 1279 } //// [/home/src/workspaces/outFile.js] @@ -578,10 +531,11 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ Found 1 error. diff --git a/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js b/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js index 5e9311d2f117d..95bad815e9890 100644 --- a/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js +++ b/tests/baselines/reference/tsc/declarationEmit/outFile/reports-dts-generation-errors.js @@ -49,6 +49,12 @@ Output:: 2 export const api = ky.extend({});    ~~~ +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 "outFile": "./outFile.js" +   ~~~~~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -57,8 +63,11 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error in src/index.ts:2 +Found 2 errors in 2 files. +Errors Files + 1 src/index.ts:2 + 1 tsconfig.json:7 //// [/home/src/workspaces/project/outFile.js] @@ -84,6 +93,12 @@ Output:: 2 export const api = ky.extend({});    ~~~ +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 "outFile": "./outFile.js" +   ~~~~~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' @@ -92,8 +107,11 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error in src/index.ts:2 +Found 2 errors in 2 files. +Errors Files + 1 src/index.ts:2 + 1 tsconfig.json:7 //// [/home/src/workspaces/project/outFile.js] file written with same contents @@ -118,6 +136,12 @@ Output:: 2 export const api = ky.extend({});    ~~~ +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 "outFile": "./outFile.js" +   ~~~~~~~~~ + TSFILE: /home/src/workspaces/project/outFile.js TSFILE: /home/src/workspaces/project/outFile.tsbuildinfo ../../tslibs/TS/Lib/lib.d.ts @@ -129,7 +153,7 @@ src/index.ts [HH:MM:SS AM] Updating unchanged output timestamps of project '/home/src/workspaces/project/tsconfig.json'... -Found 1 error. +Found 2 errors. diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js index c70832bae91e0..cd4eeb91b5fea 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental-declaration.js @@ -54,13 +54,14 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -134,6 +135,95 @@ declare module "src/noChangeFile" { declare function someFunc(arguments: boolean, ...rest: any[]): void; +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "545032748-export class classC {\n prop = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefilewithemitspecificerror.ts", + "not cached or not changed" + ] + ], + "version": "FakeTSVersion", + "size": 1296 +} + + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated + +Change:: No Change run with noEmit + +Input:: + +/home/src/tslibs/TS/Lib/tsc.js --p . --noEmit +Output:: + + //// [/home/src/workspaces/outFile.tsbuildinfo] {"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} @@ -198,17 +288,6 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; } -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - -Change:: No Change run with noEmit - -Input:: - -/home/src/tslibs/TS/Lib/tsc.js --p . --noEmit -Output:: - - - exitCode:: ExitStatus.Success Change:: No Change run with noEmit @@ -386,20 +465,21 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.d.ts] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -443,22 +523,37 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1466 + "size": 1296 } @@ -470,13 +565,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -491,6 +587,69 @@ Input:: Output:: +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "545032748-export class classC {\n prop = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "./project/src/nochangefilewithemitspecificerror.ts", + [ + { + "start": 18, + "length": 18, + "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", + "category": 1, + "code": 2396, + "skippedOn": "noEmit" + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 1466 +} + exitCode:: ExitStatus.Success @@ -511,13 +670,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -535,38 +695,15 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5: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. -2 new indirectClass().classC.prop; -   ~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +Found 1 error in tsconfig.json:5 - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.js] @@ -640,7 +777,7 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -684,66 +821,37 @@ declare function someFunc(arguments: boolean, ...rest: any[]): void; "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2044 + "size": 1298 } @@ -755,38 +863,15 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5: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. -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +5 "outFile": "../outFile.js", +   ~~~~~~~~~ -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +Found 1 error in tsconfig.json:5 - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 @@ -826,8 +911,115 @@ Errors Files 1 src/indirectUse.ts:2 +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "1786859709-export class classC {\n prop1 = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "declaration": true, + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "./project/src/directuse.ts", + [ + { + "start": 76, + "length": 4, + "code": 2551, + "category": 1, + "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./project/src/class.ts", + "start": 26, + "length": 5, + "messageText": "'prop1' is declared here.", + "category": 3, + "code": 2728 + } + ] + } + ] + ], + [ + "./project/src/indirectuse.ts", + [ + { + "start": 76, + "length": 4, + "code": 2551, + "category": 1, + "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./project/src/class.ts", + "start": 26, + "length": 5, + "messageText": "'prop1' is declared here.", + "category": 3, + "code": 2728 + } + ] + } + ] + ], + [ + "./project/src/nochangefilewithemitspecificerror.ts", + [ + { + "start": 18, + "length": 18, + "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", + "category": 1, + "code": 2396, + "skippedOn": "noEmit" + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 2044 +} -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with noEmit @@ -872,38 +1064,15 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5: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. -2 new indirectClass().classC.prop; -   ~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? -2 new indirectClass().classC.prop; -   ~~~~ +Found 1 error in tsconfig.json:5 - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 @@ -998,13 +1167,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -1172,13 +1342,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js index f16b9647d15a4..242bf88eb8b63 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js @@ -53,13 +53,14 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:4 @@ -113,6 +114,94 @@ function someFunc(arguments) { } +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "545032748-export class classC {\n prop = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefilewithemitspecificerror.ts", + "not cached or not changed" + ] + ], + "version": "FakeTSVersion", + "size": 1277 +} + + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated + +Change:: No Change run with noEmit + +Input:: + +/home/src/tslibs/TS/Lib/tsc.js --p . --noEmit +Output:: + + //// [/home/src/workspaces/outFile.tsbuildinfo] {"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} @@ -176,17 +265,6 @@ function someFunc(arguments) { } -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - -Change:: No Change run with noEmit - -Input:: - -/home/src/tslibs/TS/Lib/tsc.js --p . --noEmit -Output:: - - - exitCode:: ExitStatus.Success Change:: No Change run with noEmit @@ -363,19 +441,20 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:4 //// [/home/src/workspaces/outFile.js] file written with same contents //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -418,22 +497,37 @@ Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], + [ + "./project/src/directuse.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectuse.ts", + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" + ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 1447 + "size": 1277 } @@ -445,13 +539,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:4 @@ -466,6 +561,68 @@ Input:: Output:: +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","545032748-export class classC {\n prop = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "545032748-export class classC {\n prop = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "./project/src/nochangefilewithemitspecificerror.ts", + [ + { + "start": 18, + "length": 18, + "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", + "category": 1, + "code": 2396, + "skippedOn": "noEmit" + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 1447 +} + exitCode:: ExitStatus.Success @@ -486,13 +643,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:4 @@ -510,38 +668,15 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:4: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. -2 new indirectClass().classC.prop; -   ~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +Found 1 error in tsconfig.json:4 -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.js] @@ -595,7 +730,7 @@ function someFunc(arguments) { //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -638,66 +773,37 @@ function someFunc(arguments) { "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2025 + "size": 1279 } @@ -709,38 +815,15 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:4: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. -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? - -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. +4 "outFile": "../outFile.js", +   ~~~~~~~~~ -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +Found 1 error in tsconfig.json:4 - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 @@ -780,8 +863,114 @@ Errors Files 1 src/indirectUse.ts:2 +//// [/home/src/workspaces/outFile.tsbuildinfo] +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} + +//// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] +{ + "fileNames": [ + "../tslibs/ts/lib/lib.d.ts", + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ], + "fileInfos": { + "../tslibs/ts/lib/lib.d.ts": "-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "./project/src/class.ts": "1786859709-export class classC {\n prop1 = 1;\n}", + "./project/src/indirectclass.ts": "6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}", + "./project/src/directuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/indirectuse.ts": "-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;", + "./project/src/nochangefile.ts": "6714567633-export function writeLog(s: string) {\n}", + "./project/src/nochangefilewithemitspecificerror.ts": "-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}" + }, + "root": [ + [ + [ + 2, + 7 + ], + [ + "./project/src/class.ts", + "./project/src/indirectclass.ts", + "./project/src/directuse.ts", + "./project/src/indirectuse.ts", + "./project/src/nochangefile.ts", + "./project/src/nochangefilewithemitspecificerror.ts" + ] + ] + ], + "options": { + "module": 2, + "outFile": "./outFile.js" + }, + "semanticDiagnosticsPerFile": [ + [ + "./project/src/directuse.ts", + [ + { + "start": 76, + "length": 4, + "code": 2551, + "category": 1, + "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./project/src/class.ts", + "start": 26, + "length": 5, + "messageText": "'prop1' is declared here.", + "category": 3, + "code": 2728 + } + ] + } + ] + ], + [ + "./project/src/indirectuse.ts", + [ + { + "start": 76, + "length": 4, + "code": 2551, + "category": 1, + "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", + "relatedInformation": [ + { + "file": "./project/src/class.ts", + "start": 26, + "length": 5, + "messageText": "'prop1' is declared here.", + "category": 3, + "code": 2728 + } + ] + } + ] + ], + [ + "./project/src/nochangefilewithemitspecificerror.ts", + [ + { + "start": 18, + "length": 18, + "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", + "category": 1, + "code": 2396, + "skippedOn": "noEmit" + } + ] + ] + ], + "version": "FakeTSVersion", + "size": 2025 +} -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated Change:: No Change run with noEmit @@ -826,38 +1015,15 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:4: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. -2 new indirectClass().classC.prop; -   ~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? -2 new indirectClass().classC.prop; -   ~~~~ +Found 1 error in tsconfig.json:4 - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 @@ -951,13 +1117,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:4 @@ -1104,13 +1271,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:4 diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js index 81f6b376efefb..716683e8ade46 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental-declaration.js @@ -132,13 +132,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 @@ -289,42 +290,19 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:5: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. -2 new indirectClass().classC.prop; -   ~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +Found 1 error in tsconfig.json:5 -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -368,66 +346,37 @@ Errors Files "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2044 + "size": 1298 } //// [/home/src/workspaces/outFile.js] @@ -592,13 +541,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:5: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +5 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:5 diff --git a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js index d0a5763751289..f0a8bb2011991 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-with-initial-noEmit-incremental.js @@ -130,13 +130,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:4 @@ -266,42 +267,19 @@ export class classC { /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/directUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +tsconfig.json:4: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. -2 new indirectClass().classC.prop; -   ~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. -src/indirectUse.ts:2:28 - error TS2551: Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'? +Found 1 error in tsconfig.json:4 -2 new indirectClass().classC.prop; -   ~~~~ - - src/class.ts:2:5 - 2 prop1 = 1; -    ~~~~~ - 'prop1' is declared here. - -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. - -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ - - -Found 3 errors in 3 files. - -Errors Files - 1 src/directUse.ts:2 - 1 src/indirectUse.ts:2 - 1 src/noChangeFileWithEmitSpecificError.ts:1 //// [/home/src/workspaces/outFile.tsbuildinfo] -{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[[4,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[5,[{"start":76,"length":4,"code":2551,"category":1,"messageText":"Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?","relatedInformation":[{"file":"./project/src/class.ts","start":26,"length":5,"messageText":"'prop1' is declared here.","category":3,"code":2728}]}]],[7,[{"start":18,"length":18,"messageText":"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.","category":1,"code":2396,"skippedOn":"noEmit"}]]],"version":"FakeTSVersion"} +{"fileNames":["../tslibs/ts/lib/lib.d.ts","./project/src/class.ts","./project/src/indirectclass.ts","./project/src/directuse.ts","./project/src/indirectuse.ts","./project/src/nochangefile.ts","./project/src/nochangefilewithemitspecificerror.ts"],"fileInfos":["-25093698414-interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1786859709-export class classC {\n prop1 = 1;\n}","6324910780-import { classC } from './class';\nexport class indirectClass {\n classC = new classC();\n}","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","-8953710208-import { indirectClass } from './indirectClass';\nnew indirectClass().classC.prop;","6714567633-export function writeLog(s: string) {\n}","-19339541508-function someFunc(arguments: boolean, ...rest: any[]) {\n}"],"root":[[2,7]],"options":{"module":2,"outFile":"./outFile.js"},"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7],"version":"FakeTSVersion"} //// [/home/src/workspaces/outFile.tsbuildinfo.readable.baseline.txt] { @@ -344,66 +322,37 @@ Errors Files "outFile": "./outFile.js" }, "semanticDiagnosticsPerFile": [ + [ + "../tslibs/ts/lib/lib.d.ts", + "not cached or not changed" + ], + [ + "./project/src/class.ts", + "not cached or not changed" + ], + [ + "./project/src/indirectclass.ts", + "not cached or not changed" + ], [ "./project/src/directuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" ], [ "./project/src/indirectuse.ts", - [ - { - "start": 76, - "length": 4, - "code": 2551, - "category": 1, - "messageText": "Property 'prop' does not exist on type 'classC'. Did you mean 'prop1'?", - "relatedInformation": [ - { - "file": "./project/src/class.ts", - "start": 26, - "length": 5, - "messageText": "'prop1' is declared here.", - "category": 3, - "code": 2728 - } - ] - } - ] + "not cached or not changed" + ], + [ + "./project/src/nochangefile.ts", + "not cached or not changed" ], [ "./project/src/nochangefilewithemitspecificerror.ts", - [ - { - "start": 18, - "length": 18, - "messageText": "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.", - "category": 1, - "code": 2396, - "skippedOn": "noEmit" - } - ] + "not cached or not changed" ] ], "version": "FakeTSVersion", - "size": 2025 + "size": 1279 } //// [/home/src/workspaces/outFile.js] @@ -547,13 +496,14 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js --p . Output:: -src/noChangeFileWithEmitSpecificError.ts:1:19 - error TS2396: Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. +tsconfig.json:4: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. -1 function someFunc(arguments: boolean, ...rest: any[]) { -   ~~~~~~~~~~~~~~~~~~ +4 "outFile": "../outFile.js", +   ~~~~~~~~~ -Found 1 error in src/noChangeFileWithEmitSpecificError.ts:1 +Found 1 error in tsconfig.json:4 diff --git a/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js index 192e87a30e772..e0c90deb7683d 100644 --- a/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js +++ b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js @@ -33,6 +33,12 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js Output:: +tsconfig.json:4: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. + +4 "outFile": "theApp.js" +   ~~~~~~~~~ + tsconfig.json:7:5 - error TS6053: File '/home/src/workspaces/Util/Dates' not found. 7 { @@ -43,7 +49,7 @@ Output::   ~~~~~ -Found 1 error in tsconfig.json:7 +Found 2 errors in the same file, starting at: tsconfig.json:4 diff --git a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js index 27af645135385..d6532845e8d72 100644 --- a/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js +++ b/tests/baselines/reference/tscWatch/emit/emit-with-outFile-or-out-setting/with---outFile-and-multiple-declaration-files-in-the-program.js @@ -46,10 +46,11 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -src/main2.ts:1:114 - error TS2724: 'Common.SomeComponent.DynamicMenu' has no exported member named 'z'. Did you mean 'Z'? +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. -1 namespace main.file4 { import DynamicMenu = Common.SomeComponent.DynamicMenu; export function foo(a: DynamicMenu.z) { } } -   ~ +3 "outFile": "../output/common.js", +   ~~~~~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -116,12 +117,7 @@ Program files:: /home/src/projects/a/b/project/src/main.ts /home/src/projects/a/b/project/src/main2.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/home/src/projects/a/b/output/AnotherDependency/file1.d.ts -/home/src/projects/a/b/dependencies/file2.d.ts -/home/src/projects/a/b/project/src/main.ts -/home/src/projects/a/b/project/src/main2.ts +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: diff --git a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js index 8562406544be1..fc649c80dea66 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js +++ b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-not-specified.js @@ -168,7 +168,45 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/app1/app.ts", "configFile": "/user/username/projects/myproject/app1/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "text": "File '/user/username/projects/myproject/core/core.ts' is not under 'rootDir' '/user/username/projects/myproject/app1'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6059, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 22 + }, + "file": "/user/username/projects/myproject/app1/tsconfig.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + }, + { + "start": { + "line": 7, + "offset": 5 + }, + "end": { + "line": 7, + "offset": 14 + }, + "text": "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.\n Visit https://aka.ms/ts6 for migration information.", + "code": 5011, + "category": "error", + "fileName": "/user/username/projects/myproject/app1/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/app1/tsconfig.json' (Configured) @@ -344,7 +382,45 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/app2/app.ts", "configFile": "/user/username/projects/myproject/app2/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "text": "File '/user/username/projects/myproject/core/core.ts' is not under 'rootDir' '/user/username/projects/myproject/app2'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6059, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 22 + }, + "file": "/user/username/projects/myproject/app2/tsconfig.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + }, + { + "start": { + "line": 7, + "offset": 5 + }, + "end": { + "line": 7, + "offset": 14 + }, + "text": "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.\n Visit https://aka.ms/ts6 for migration information.", + "code": 5011, + "category": "error", + "fileName": "/user/username/projects/myproject/app2/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/app1/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js index b34f833cabc78..8ae9aeb0078cc 100644 --- a/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js +++ b/tests/baselines/reference/tsserver/compileOnSave/CompileOnSaveAffectedFileListRequest-when-projectFile-is-specified.js @@ -168,7 +168,45 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/app1/app.ts", "configFile": "/user/username/projects/myproject/app1/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "text": "File '/user/username/projects/myproject/core/core.ts' is not under 'rootDir' '/user/username/projects/myproject/app1'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6059, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 22 + }, + "file": "/user/username/projects/myproject/app1/tsconfig.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + }, + { + "start": { + "line": 7, + "offset": 5 + }, + "end": { + "line": 7, + "offset": 14 + }, + "text": "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.\n Visit https://aka.ms/ts6 for migration information.", + "code": 5011, + "category": "error", + "fileName": "/user/username/projects/myproject/app1/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/app1/tsconfig.json' (Configured) @@ -344,7 +382,45 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/myproject/app2/app.ts", "configFile": "/user/username/projects/myproject/app2/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "text": "File '/user/username/projects/myproject/core/core.ts' is not under 'rootDir' '/user/username/projects/myproject/app2'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6059, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 22 + }, + "file": "/user/username/projects/myproject/app2/tsconfig.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + }, + { + "start": { + "line": 7, + "offset": 5 + }, + "end": { + "line": 7, + "offset": 14 + }, + "text": "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.\n Visit https://aka.ms/ts6 for migration information.", + "code": 5011, + "category": "error", + "fileName": "/user/username/projects/myproject/app2/tsconfig.json" + } + ] } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/app1/tsconfig.json' (Configured)