diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 3d31d02ea8dbc..92baf7f8f100b 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -4469,6 +4469,10 @@ "category": "Error", "code": 5010 }, + "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 + }, "Cannot read file '{0}': {1}.": { "category": "Error", "code": 5012 diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 000861e55dd44..9ba1afcae27ea 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); @@ -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/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index 1c5f22e25bd9c..743d137583ca4 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -2886,7 +2886,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/program.ts b/src/compiler/program.ts index c381f27d2112c..d8dd274bb4075 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -109,6 +109,7 @@ import { GetCanonicalFileName, getCommonSourceDirectory as ts_getCommonSourceDirectory, getCommonSourceDirectoryOfConfig, + getComputedCommonSourceDirectory, getDeclarationDiagnostics as ts_getDeclarationDiagnostics, getDefaultLibFileName, getDirectoryPath, @@ -132,6 +133,7 @@ import { getPackageScopeForPath, getPathFromPathComponents, getPositionOfLineAndCharacter, + getRelativePathFromFile, getResolvedModuleFromResolution, getResolvedTypeReferenceDirectiveFromResolution, getResolveJsonModule, @@ -4254,6 +4256,35 @@ 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 + options.outFile) + ) { + // 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 + createDiagnosticForOption( + /*onKey*/ true, + 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, + getBaseFileName(options.configFilePath), + getRelativePathFromFile(options.configFilePath, dir59, getCanonicalFileName), + ), + ); + } + } + if (options.checkJs && !getAllowJSCompilerOption(options)) { createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs"); } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 7f40d470abd17..86f0d73d37c93 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -6634,7 +6634,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; 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.js b/tests/baselines/reference/commonSourceDirectory.js index 126ffe0183d1f..a07a563aae8af 100644 --- a/tests/baselines/reference/commonSourceDirectory.js +++ b/tests/baselines/reference/commonSourceDirectory.js @@ -27,3 +27,36 @@ foo_1.x + bar_1.y; //// [/app/bin/index.d.ts] /// export {}; + + +//// [DtsFileErrors] + + +/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. + + +==== /app/tsconfig.json (1 errors) ==== + { + "compilerOptions": { + "outDir": "bin", + ~~~~~~~~ +!!! 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, + "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..39317702628a7 --- /dev/null +++ b/tests/baselines/reference/commonSourceDirectory_dts.errors.txt @@ -0,0 +1,25 @@ +/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. + + +==== /app/tsconfig.json (1 errors) ==== + { + "compilerOptions": { + "outDir": "bin", + ~~~~~~~~ +!!! 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", + "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/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/declarationEmitMonorepoBaseUrl.errors.txt b/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt index e8805648d8e91..1208b91dd9ea0 100644 --- a/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt +++ b/tests/baselines/reference/declarationEmitMonorepoBaseUrl.errors.txt @@ -1,13 +1,18 @@ +/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. -==== /tsconfig.json (1 errors) ==== +==== /tsconfig.json (2 errors) ==== { "compilerOptions": { "module": "nodenext", "declaration": true, "outDir": "temp", + ~~~~~~~~ +!!! 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": "." ~~~~~~~~~ !!! 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 653d7e7aca506..07f7344ed0bd0 100644 --- a/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt +++ b/tests/baselines/reference/declarationEmitPathMappingMonorepo.errors.txt @@ -1,11 +1,16 @@ +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. -==== packages/b/tsconfig.json (1 errors) ==== +==== packages/b/tsconfig.json (2 errors) ==== { "compilerOptions": { "outDir": "dist", + ~~~~~~~~ +!!! 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 e9a010c421b52..dc74d26c3004d 100644 --- a/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt +++ b/tests/baselines/reference/declarationEmitPathMappingMonorepo2.errors.txt @@ -1,11 +1,16 @@ +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. -==== packages/lab/tsconfig.json (1 errors) ==== +==== packages/lab/tsconfig.json (2 errors) ==== { "compilerOptions": { "outDir": "dist", + ~~~~~~~~ +!!! 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 0a0189ac4c6d4..79c4aeaf74393 100644 --- a/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js +++ b/tests/baselines/reference/declarationEmitToDeclarationDirWithDeclarationOption.js @@ -17,3 +17,20 @@ interface Foo { x: number; } export default Foo; + + +//// [DtsFileErrors] + + +/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. + + +==== /foo/tsconfig.json (1 errors) ==== + { + "compilerOptions": { "declaration": true, "declarationDir": "out" } + ~~~~~~~~~~~~~~~~ +!!! 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/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 index b1c065299a09f..f0d423f0440c3 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_realRootFile.errors.txt @@ -1,8 +1,14 @@ +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: 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. -==== /root/tsconfig.json (1 errors) ==== +!!! error TS5055: Cannot write file '/bar.js' because it would overwrite input file. +==== /root/tsconfig.json (2 errors) ==== { "compilerOptions": { "baseUrl": ".", @@ -14,12 +20,19 @@ }, "allowJs": true, "outDir": "bin" + ~~~~~~~~ +!!! 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. } } -==== /root/a.ts (0 errors) ==== +==== /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() {} 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 index dd15993906e4e..b5c772fe8a854 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_noAliasWithRoot_realRootFile.errors.txt @@ -1,8 +1,14 @@ +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: 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. -==== /root/tsconfig.json (1 errors) ==== +!!! error TS5055: Cannot write file '/bar.js' because it would overwrite input file. +==== /root/tsconfig.json (2 errors) ==== { "compilerOptions": { "baseUrl": ".", @@ -14,12 +20,19 @@ }, "allowJs": true, "outDir": "bin" + ~~~~~~~~ +!!! 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. } } -==== /root/a.ts (0 errors) ==== +==== /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() {} 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 b5e69974ec6c9..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,12 +72,12 @@ ky.d.ts src/index.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 1 error. +Found 2 errors. //// [/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; @@ -80,7 +86,7 @@ define("index", ["require", "exports", "ky"], function (require, exports, ky_1) //// [/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("index", ["require", "exports", "ky"], function (require, exports, ky_1) "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("index", ["require", "exports", "ky"], function (require, exports, ky_1) ] ], "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 3511845632291..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,12 +73,12 @@ 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. //// [/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; @@ -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 a077d50fea902..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. @@ -72,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; @@ -84,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; @@ -96,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; @@ -122,27 +123,27 @@ 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; //// [/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,38 +762,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.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; @@ -645,7 +786,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; @@ -657,17 +798,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; @@ -683,27 +824,27 @@ 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; //// [/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. @@ -1100,7 +1282,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; @@ -1112,7 +1294,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; @@ -1124,17 +1306,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; @@ -1150,20 +1332,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; @@ -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 8f2ad2d8b8510..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. @@ -71,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; @@ -83,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; @@ -95,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; @@ -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,38 +735,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'? - -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. //// [/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; @@ -620,7 +759,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; @@ -632,17 +771,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; @@ -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. @@ -1053,7 +1232,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; @@ -1065,7 +1244,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; @@ -1077,17 +1256,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; @@ -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 2df30dd3a279b..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. @@ -220,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; @@ -232,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; @@ -244,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; @@ -270,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; @@ -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,70 +367,41 @@ 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] -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; @@ -460,7 +413,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; @@ -472,17 +425,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; @@ -498,20 +451,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; @@ -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. @@ -697,7 +651,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; @@ -709,7 +663,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; @@ -721,17 +675,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; @@ -747,20 +701,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 9d81185e29c7b..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. @@ -217,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; @@ -229,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; @@ -241,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; @@ -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,70 +343,41 @@ 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] -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; @@ -436,7 +389,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; @@ -448,17 +401,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; @@ -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. @@ -651,7 +605,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; @@ -663,7 +617,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; @@ -675,17 +629,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 a44a67f919819..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,9 +34,18 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/tsconfig.json'... +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" +   ~~~~~~~~ + + +Found 1 error. + -//// [/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; @@ -44,19 +53,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 @@ -67,12 +77,26 @@ 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 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'... + +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" +   ~~~~~~~~ + + +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 @@ -80,8 +104,17 @@ Input:: /home/src/tslibs/TS/Lib/tsc.js -p /home/src/workspaces/project/tsconfig.json Output:: +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" +   ~~~~~~~~ + + +Found 1 error in tsconfig.json:3 + -//// [/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 +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 48b7f0bf6918a..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,8 +57,14 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js +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", +   ~~~~~~~~ + +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' @@ -68,17 +74,17 @@ project/src/hello.json project/src/index.ts Part of 'files' list in tsconfig.json -Found 1 error. +Found 2 errors. -//// [/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 dbc124145bbae..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,8 +59,14 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js +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", +   ~~~~~~~~ + +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,17 +76,17 @@ project/src/hello.json project/src/index.ts Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -Found 1 error. +Found 2 errors. -//// [/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 ac1efff10a590..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,8 +57,14 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/index.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js +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", +   ~~~~~~~~ + +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' @@ -68,17 +74,17 @@ project/src/index.json project/src/index.ts Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -Found 1 error. +Found 2 errors. -//// [/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 8a9c4344dc91e..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,8 +57,14 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js +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", +   ~~~~~~~~ + +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' @@ -68,17 +74,17 @@ project/src/hello.json project/src/index.ts Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -Found 1 error. +Found 2 errors. -//// [/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 eb86a24df8e31..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,8 +56,14 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/index.js +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", +   ~~~~~~~~ + +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' @@ -66,17 +72,17 @@ project/src/hello.json project/src/index.ts Matched by include pattern 'src/**/*' in 'project/tsconfig.json' -Found 1 error. +Found 2 errors. -//// [/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 f87ba26ad09b3..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,8 +56,13 @@ Output:: 3 "moduleResolution": "node",    ~~~~~~ -TSFILE: /home/src/workspaces/solution/project/dist/hello.json -TSFILE: /home/src/workspaces/solution/project/dist/project/src/index.js +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", +   ~~~~~~~~ + +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 +70,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. +Found 2 errors. -//// [/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 2f84aaa75577b..5e4b9284008a7 100644 --- a/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js +++ b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap-non-composite.js @@ -58,9 +58,15 @@ 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 +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", +   ~~~~~~~~ + +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' @@ -70,20 +76,20 @@ project/src/hello.json project/src/index.ts Part of 'files' list in tsconfig.json -Found 1 error. +Found 2 errors. -//// [/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 }; @@ -129,9 +135,15 @@ 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 +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", +   ~~~~~~~~ + +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' @@ -141,13 +153,13 @@ project/src/hello.json project/src/index.ts Part of 'files' list in tsconfig.json -Found 1 error. +Found 2 errors. -//// [/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 13988d1360687..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,12 +63,15 @@ 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] -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; @@ -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/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js b/tests/baselines/reference/tsc/declarationEmit/when-using-Windows-paths-and-uppercase-letters.js index e525ab98ee276..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,6 +95,12 @@ 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: 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", +   ~~~~~~~~ + 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. @@ -118,21 +124,21 @@ src/utils/index.ts src/main.ts Matched by include pattern 'src' in 'tsconfig.json' -Found 2 errors in the same file, starting at: tsconfig.json:14 +Found 3 errors in the same file, starting at: tsconfig.json:13 //// [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; }; @@ -141,10 +147,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; @@ -156,15 +162,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; @@ -176,7 +182,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 a93277bc5447a..6d972b9cf3ee5 100644 --- a/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js +++ b/tests/baselines/reference/tsc/moduleResolution/pnpm-style-layout.js @@ -316,6 +316,12 @@ Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/ 9 "baseUrl": ".",    ~~~~~~~~~ +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" +   ~~~~~~~~ + ../../../../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 @@ -332,13 +338,13 @@ Found 'package.json' at '/home/src/projects/component-type-checker/node_modules/ src/app.tsx Matched by include pattern 'src' in 'tsconfig.json' -Found 2 errors in the same file, starting at: tsconfig.json:8 +Found 3 errors in the same file, starting at: 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 2eba67bf86944..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,18 +54,19 @@ 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 //// [/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 +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; @@ -89,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; @@ -115,25 +116,114 @@ 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; +//// [/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,42 +695,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'? - -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] -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; @@ -582,7 +719,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; @@ -594,17 +731,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; @@ -620,27 +757,27 @@ 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; //// [/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,18 +1167,19 @@ 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 //// [/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; @@ -1021,7 +1191,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; @@ -1033,17 +1203,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; @@ -1059,20 +1229,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; @@ -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 c20da536756bf..242bf88eb8b63 100644 --- a/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js +++ b/tests/baselines/reference/tsc/noEmit/outFile/changes-incremental.js @@ -53,18 +53,19 @@ 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 //// [/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; @@ -76,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; @@ -88,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; @@ -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,42 +668,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'? - -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] -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; @@ -557,7 +692,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; @@ -569,17 +704,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; @@ -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,18 +1117,19 @@ 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 //// [/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; @@ -974,7 +1141,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; @@ -986,17 +1153,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; @@ -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 8b2f6e99759e1..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 @@ -206,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; @@ -218,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; @@ -230,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; @@ -256,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; @@ -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,70 +346,41 @@ 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] -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; @@ -443,7 +392,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; @@ -455,17 +404,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; @@ -481,20 +430,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; @@ -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 @@ -666,7 +616,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; @@ -678,7 +628,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; @@ -690,17 +640,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; @@ -716,20 +666,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 2f97c54d2bfc8..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 @@ -203,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; @@ -215,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; @@ -227,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; @@ -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,70 +322,41 @@ 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] -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; @@ -419,7 +368,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; @@ -431,17 +380,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; @@ -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 @@ -620,7 +570,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; @@ -632,7 +582,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; @@ -644,17 +594,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 0e47ded1c8d30..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,12 +49,12 @@ Output::   ~~~~~ -Found 1 error in tsconfig.json:7 +Found 2 errors in the same file, starting at: tsconfig.json:4 //// [/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/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/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 806dead3ea782..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,16 +46,17 @@ 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 "outDir": "../output", +   ~~~~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/home/src/projects/a/b/output/main.js] +//// [/home/src/projects/a/b/output/src/main.js] var Main; (function (Main) { function fooBar() { } @@ -63,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; @@ -119,12 +120,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 8dd4e5f86e7c7..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,15 +38,21 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +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/" +   ~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/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; @@ -92,10 +98,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) @@ -123,12 +126,18 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +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/" +   ~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/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; @@ -151,10 +160,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/moduleResolution/diagnostics-from-cache.js b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js index 84466037c8f5d..16d22909279f4 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/diagnostics-from-cache.js @@ -71,14 +71,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. @@ -201,14 +199,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 c95f00791185e..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,13 +48,19 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +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" +   ~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. //// [/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(); @@ -115,10 +121,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) @@ -147,11 +150,17 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +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" +   ~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/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: [ @@ -173,8 +182,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/symlinks/packages-outside-project-folder-Linux.js b/tests/baselines/reference/tscWatch/symlinks/packages-outside-project-folder-Linux.js index a6ff0220d8f39..cd5627ef2ac0e 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" @@ -97,7 +100,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'. @@ -266,6 +269,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, @@ -362,17 +366,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 @@ -412,26 +416,27 @@ 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 -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 @@ -498,10 +503,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 @@ -511,10 +516,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 @@ -524,7 +529,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'. @@ -705,6 +710,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, @@ -780,14 +786,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 @@ -810,12 +812,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 @@ -840,12 +836,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 @@ -921,11 +911,11 @@ FsWatches *deleted*:: {"inode":151} 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 @@ -935,7 +925,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'. @@ -1105,6 +1095,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, @@ -1147,6 +1138,10 @@ exitCode:: ExitStatus.undefined Change:: Build dependencies Input:: +//// [/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 }); @@ -1182,31 +1177,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; @@ -1227,24 +1209,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 -} - Timeout callback:: count: 1 25: timerToUpdateChildWatches *new* @@ -1289,7 +1258,7 @@ 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/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1344,7 +1313,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'. @@ -1473,11 +1442,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: *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: @@ -1523,6 +1492,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 6deef5d471e4b..77df5648182a8 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" @@ -97,7 +100,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'. @@ -262,6 +265,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, @@ -358,17 +362,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 @@ -408,17 +412,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 } @@ -438,12 +442,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 @@ -473,7 +477,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'. @@ -656,6 +660,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, @@ -753,14 +758,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 @@ -783,12 +784,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 @@ -812,12 +807,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 @@ -890,12 +879,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:: @@ -904,7 +893,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'. @@ -1066,7 +1055,7 @@ FsWatchesRecursive *deleted*:: {"inode":4} Timeout callback:: count: 0 -28: timerToInvalidateFailedLookupResolutions *deleted* +24: timerToInvalidateFailedLookupResolutions *deleted* Program root files: [ @@ -1074,6 +1063,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, @@ -1097,6 +1087,10 @@ exitCode:: ExitStatus.undefined Change:: Build dependencies Input:: +//// [/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 }); @@ -1132,31 +1126,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; @@ -1177,24 +1158,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 -} - 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 @@ -1212,21 +1180,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 @@ -1234,10 +1195,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 @@ -1247,7 +1208,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'. @@ -1376,9 +1337,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: @@ -1428,6 +1389,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 51342c5ae753a..aea02e592d5fb 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" @@ -97,7 +100,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'. @@ -262,6 +265,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, @@ -358,17 +362,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] @@ -408,17 +412,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 } @@ -438,12 +442,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 @@ -473,7 +477,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'. @@ -656,6 +660,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, @@ -753,14 +758,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 @@ -781,12 +782,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 @@ -808,24 +803,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:: @@ -834,7 +823,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'. @@ -996,7 +985,7 @@ FsWatchesRecursive *deleted*:: {} Timeout callback:: count: 0 -28: timerToInvalidateFailedLookupResolutions *deleted* +24: timerToInvalidateFailedLookupResolutions *deleted* Program root files: [ @@ -1004,6 +993,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, @@ -1027,6 +1017,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 }); @@ -1062,19 +1056,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 }); @@ -1112,19 +1093,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 @@ -1142,21 +1110,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 @@ -1164,10 +1125,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 @@ -1177,7 +1138,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'. @@ -1358,6 +1319,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 ebe2c84ced5f2..06c0744b64b8b 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" @@ -122,17 +125,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 148 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 148 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 149 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 149 { "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:: 151 @@ -172,17 +175,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 155 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 155 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 156 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 156 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -195,7 +198,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'. @@ -382,6 +385,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, @@ -495,14 +499,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 @@ -525,12 +525,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 @@ -555,12 +549,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 @@ -636,12 +624,12 @@ FsWatches *deleted*:: {"inode":147} 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:: @@ -650,7 +638,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'. @@ -812,7 +800,7 @@ FsWatches *deleted*:: {"inode":12} Timeout callback:: count: 0 -18: timerToInvalidateFailedLookupResolutions *deleted* +14: timerToInvalidateFailedLookupResolutions *deleted* Program root files: [ @@ -820,6 +808,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, @@ -862,6 +851,10 @@ exitCode:: ExitStatus.undefined Change:: Build dependencies Input:: +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 148 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 149 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 155 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 156 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 164 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -897,31 +890,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; @@ -942,30 +922,17 @@ __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 -} - 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:: @@ -1004,7 +971,7 @@ 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/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1033,10 +1000,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 @@ -1046,10 +1013,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 @@ -1059,7 +1026,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'. @@ -1188,11 +1155,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: *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: @@ -1238,6 +1205,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 b471f04a17c72..c4eada03fabfb 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" @@ -122,17 +125,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 148 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 148 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 149 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 149 { "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:: 151 @@ -172,17 +175,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 155 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 155 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 156 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 156 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -195,7 +198,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'. @@ -384,6 +387,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, @@ -541,14 +545,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 @@ -571,12 +571,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 @@ -600,12 +594,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 @@ -678,12 +666,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:: @@ -692,7 +680,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'. @@ -854,7 +842,7 @@ FsWatchesRecursive *deleted*:: {"inode":4} Timeout callback:: count: 0 -22: timerToInvalidateFailedLookupResolutions *deleted* +18: timerToInvalidateFailedLookupResolutions *deleted* Program root files: [ @@ -862,6 +850,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, @@ -885,6 +874,10 @@ exitCode:: ExitStatus.undefined Change:: Build dependencies Input:: +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] file written with same contents Inode:: 148 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 149 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 155 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 156 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 164 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -920,31 +913,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; @@ -965,24 +945,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 -} - 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 @@ -1000,21 +967,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 @@ -1022,10 +982,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 @@ -1035,7 +995,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'. @@ -1164,9 +1124,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: @@ -1216,6 +1176,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 f108753600eef..3c9461653e570 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" @@ -122,17 +125,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] @@ -172,17 +175,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 } @@ -195,7 +198,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'. @@ -384,6 +387,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, @@ -541,14 +545,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 @@ -569,12 +569,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 @@ -596,24 +590,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:: @@ -622,7 +610,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'. @@ -784,7 +772,7 @@ FsWatchesRecursive *deleted*:: {} Timeout callback:: count: 0 -22: timerToInvalidateFailedLookupResolutions *deleted* +18: timerToInvalidateFailedLookupResolutions *deleted* Program root files: [ @@ -792,6 +780,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, @@ -815,6 +804,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 }); @@ -850,19 +843,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 }); @@ -900,19 +880,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 @@ -930,21 +897,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 @@ -952,10 +912,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 @@ -965,7 +925,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'. @@ -1146,6 +1106,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 1edcadc5543e6..dd47731c44d5d 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,18 +33,24 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +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" +   ~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/myproject/dist/file2.js] Inode:: 116 +//// [/user/username/projects/myproject/dist/src/file2.js] Inode:: 117 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; exports.x = 10; -//// [/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 }); @@ -63,6 +69,8 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: *new* {"inode":115} +/user/username/projects/myproject/dist/src: *new* + {"inode":116} /user/username/projects/myproject/src: *new* {"inode":5} /user/username/projects/myproject/src/file1.ts: *new* @@ -87,10 +95,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) @@ -109,7 +114,7 @@ exitCode:: ExitStatus.undefined Change:: rename the file Input:: -//// [/user/username/projects/myproject/src/renamed.ts] Inode:: 118 +//// [/user/username/projects/myproject/src/renamed.ts] Inode:: 119 export const x = 10; //// [/user/username/projects/myproject/src/file2.ts] deleted @@ -133,6 +138,8 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: {"inode":115} +/user/username/projects/myproject/dist/src: + {"inode":116} /user/username/projects/myproject/src: {"inode":5} /user/username/projects/myproject/src/file1.ts: @@ -162,11 +169,17 @@ Output:: The file is in the program because: Matched by default include pattern '**/*' -[HH:MM:SS AM] Found 1 error. Watching for file changes. +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" +   ~~~~~~~~ + +[HH:MM:SS AM] Found 2 errors. Watching for file changes. -//// [/user/username/projects/myproject/dist/file1.js] file written with same contents Inode:: 117 +//// [/user/username/projects/myproject/dist/src/file1.js] file written with same contents Inode:: 118 PolledWatches:: /user/username/projects/myproject/node_modules/@types: @@ -187,6 +200,8 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: {"inode":115} +/user/username/projects/myproject/dist/src: + {"inode":116} /user/username/projects/myproject/src: {"inode":5} /user/username/projects/myproject/src/file1.ts: @@ -209,8 +224,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) @@ -240,16 +254,17 @@ 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. +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 import { x } from "./file2"; -   ~~~~~~~~~ +3 "outDir": "dist" +   ~~~~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/myproject/dist/renamed.js] Inode:: 119 +//// [/user/username/projects/myproject/dist/src/renamed.js] Inode:: 120 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.x = void 0; @@ -274,12 +289,14 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: {"inode":115} +/user/username/projects/myproject/dist/src: + {"inode":116} /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":118} + {"inode":119} /user/username/projects/myproject/tsconfig.json: {"inode":8} @@ -308,9 +325,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 cf3ec378910ca..9df674f0435f9 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,16 +34,22 @@ Output:: >> Screen clear [HH:MM:SS AM] Starting compilation in watch mode... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +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", +   ~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/myproject/dist/file1.js] Inode:: 118 +//// [/user/username/projects/myproject/dist/src/file1.js] Inode:: 119 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/dist/file1.d.ts] Inode:: 119 +//// [/user/username/projects/myproject/dist/src/file1.d.ts] Inode:: 120 export {}; @@ -71,6 +77,8 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: *new* {"inode":117} +/user/username/projects/myproject/dist/src: *new* + {"inode":118} /user/username/projects/myproject/node_modules: *new* {"inode":7} /user/username/projects/myproject/node_modules/file2: *new* @@ -99,10 +107,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) @@ -121,7 +126,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:: 120 +//// [/user/username/projects/myproject/src/file3.ts] Inode:: 121 export const y = 10; @@ -155,18 +160,24 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +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", +   ~~~~~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/user/username/projects/myproject/dist/file3.js] Inode:: 121 +//// [/user/username/projects/myproject/dist/src/file3.js] Inode:: 122 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.y = void 0; exports.y = 10; -//// [/user/username/projects/myproject/dist/file3.d.ts] Inode:: 122 +//// [/user/username/projects/myproject/dist/src/file3.d.ts] Inode:: 123 export declare const y = 10; @@ -194,6 +205,8 @@ FsWatches:: {"inode":4} /user/username/projects/myproject/dist: {"inode":117} +/user/username/projects/myproject/dist/src: + {"inode":118} /user/username/projects/myproject/node_modules: {"inode":7} /user/username/projects/myproject/node_modules/file2: @@ -205,7 +218,7 @@ FsWatches:: /user/username/projects/myproject/src/file1.ts: {"inode":6} /user/username/projects/myproject/src/file3.ts: *new* - {"inode":120} + {"inode":121} /user/username/projects/myproject/tsconfig.json: {"inode":10} @@ -230,8 +243,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 9b43bfb4fd4a3..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 @@ -285,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": "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" + }, { "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 00cfba80758c6..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 @@ -285,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": "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" + }, { "start": { "line": 22, 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) 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 058d2158c6014..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 @@ -340,6 +340,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -1317,6 +1331,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -1659,6 +1687,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, 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 cddeae60cdf73..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 @@ -293,6 +293,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -1045,6 +1059,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -1284,6 +1312,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, 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 1689113ad701f..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 @@ -251,6 +251,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -933,6 +947,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -1142,6 +1170,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, 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 f7e8ec7f871be..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 @@ -248,6 +248,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -1209,6 +1223,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -1791,46 +1819,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": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 14 - }, - "text": "Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", - "code": 5101, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - }, - { - "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) @@ -2027,32 +2015,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": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 14 - }, - "text": "Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", - "code": 5101, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - } - ] - } - } Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { @@ -2640,6 +2602,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -3808,6 +3784,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, 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 1c4679efbafa6..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 @@ -338,6 +338,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -1403,6 +1417,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/main.ts", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -2359,6 +2387,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -3065,6 +3107,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, @@ -4794,6 +4850,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/tsconfig.json", "configFile": "/user/username/projects/myproject/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + }, { "start": { "line": 4, 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 b07d55ef90802..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 @@ -545,6 +545,32 @@ 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": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + } + ] + } + } Info seq [hh:mm:ss:mss] Running: /home/src/projects/project/demos/tsconfig.json Info seq [hh:mm:ss:mss] event: { @@ -1231,6 +1257,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 fbe69cb0549fd..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 @@ -545,6 +545,32 @@ 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": [ + { + "start": { + "line": 3, + "offset": 5 + }, + "end": { + "line": 3, + "offset": 13 + }, + "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" + } + ] + } + } Info seq [hh:mm:ss:mss] Running: /home/src/projects/project/demos/tsconfig.json Info seq [hh:mm:ss:mss] event: { @@ -831,6 +857,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 a4812ae1a698a..dc28e62ace82b 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-fails.js @@ -210,6 +210,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/somefolder/srcfile.ts", "configFile": "/user/username/projects/myproject/src/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 6, + "offset": 13 + }, + "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" + }, { "start": { "line": 7, 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 36f462849103f..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 @@ -222,6 +222,20 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/user/username/projects/myproject/src/somefolder/srcfile.ts", "configFile": "/user/username/projects/myproject/src/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 6, + "offset": 13 + }, + "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" + }, { "start": { "line": 7, 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 7dba2f4820933..6d13c547e5823 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" @@ -120,6 +123,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" } } @@ -456,7 +460,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -961,12 +966,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:: 149 "use strict"; @@ -1003,17 +1006,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 153 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 153 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 154 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 154 { "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:: 156 @@ -1053,17 +1056,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 160 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 160 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 161 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 161 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -1078,8 +1081,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, @@ -1100,12 +1103,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 @@ -1816,29 +1819,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: { @@ -1856,9 +1851,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" ] }, { @@ -1879,9 +1872,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" ] }, { @@ -1910,12 +1901,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 @@ -1936,12 +1921,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 @@ -1949,9 +1928,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* @@ -1994,9 +1973,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 @@ -2276,10 +2255,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: { @@ -2396,13 +2375,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:: 153 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 154 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 160 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 161 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 165 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -2438,31 +2417,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 169 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 170 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 "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:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -2483,24 +2449,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 175 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 176 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 177 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Info seq [hh:mm:ss:mss] request: { @@ -2525,9 +2478,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" ] }, { @@ -2565,12 +2516,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 @@ -2578,7 +2523,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* @@ -2611,7 +2556,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 @@ -2619,8 +2564,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* @@ -2629,8 +2574,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 @@ -2943,10 +2888,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 1c42da9dbfb57..d37b0d073644b 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" @@ -109,6 +112,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" } } @@ -207,7 +211,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -703,7 +708,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:: 149 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -739,17 +744,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 153 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 153 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 154 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 154 { "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:: 156 @@ -789,23 +794,24 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 160 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 160 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 161 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 161 { "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 @@ -867,10 +873,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 @@ -878,8 +884,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* @@ -889,8 +895,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 @@ -1093,10 +1099,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: { @@ -1209,10 +1215,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: { @@ -1325,10 +1331,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: { @@ -1433,12 +1439,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 @@ -1462,31 +1462,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* @@ -1555,8 +1545,8 @@ FsWatches *deleted*:: {"inode":152} 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:: @@ -1888,6 +1878,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:: 153 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 154 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 160 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 161 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 165 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1923,31 +1917,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 169 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 170 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 "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:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1968,24 +1949,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 175 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 176 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 177 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - PolledWatches:: /home/src/projects/b/2/b-impl/b/node_modules/@types: @@ -2023,9 +1991,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":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":175} + {"inode":173} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -2122,11 +2090,11 @@ FsWatches:: /home/src/projects/a/1/a-impl/a: {"inode":19} /home/src/projects/a/1/a-impl/a/lib: *new* - {"inode":171} + {"inode":169} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":175} + {"inode":173} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -2286,11 +2254,11 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib: - {"inode":171} + {"inode":169} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":175} + {"inode":173} /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 5a4e918921212..9f6c66709d6fe 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" @@ -120,6 +123,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" } } @@ -456,7 +460,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -952,8 +957,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:: 149 "use strict"; @@ -990,17 +995,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 153 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 153 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 154 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 154 { "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:: 156 @@ -1040,17 +1045,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 160 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 160 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 161 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 161 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -1065,8 +1070,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, @@ -1087,12 +1092,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 @@ -1803,29 +1808,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: { @@ -1843,9 +1840,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" ] }, { @@ -1866,9 +1861,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" ] }, { @@ -1897,12 +1890,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 @@ -1923,12 +1910,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 @@ -1936,9 +1917,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* @@ -1981,9 +1962,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 @@ -2263,10 +2244,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: { @@ -2374,9 +2355,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:: 153 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 154 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 160 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 161 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 165 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -2412,31 +2397,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 169 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 170 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 "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:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -2457,24 +2429,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 175 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 176 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 177 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Info seq [hh:mm:ss:mss] request: { @@ -2499,9 +2458,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" ] }, { @@ -2539,12 +2496,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 @@ -2552,7 +2503,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* @@ -2585,7 +2536,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 @@ -2593,8 +2544,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* @@ -2603,8 +2554,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 @@ -2917,10 +2868,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 e8af2d175ad79..e4554a8ce20e8 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" @@ -109,6 +112,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" } } @@ -207,7 +211,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -713,12 +718,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:: 149 @@ -756,17 +761,17 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 153 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo] Inode:: 153 +{"root":["./src/c.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 154 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 154 { "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:: 156 @@ -806,17 +811,17 @@ export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 160 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] Inode:: 160 +{"root":["./src/a.ts","./src/index.ts"],"version":"FakeTSVersion"} -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 161 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 161 { "root": [ - "../src/a.ts", - "../src/index.ts" + "./src/a.ts", + "./src/index.ts" ], "version": "FakeTSVersion", - "size": 68 + "size": 66 } @@ -1402,12 +1407,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 @@ -1431,31 +1430,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* @@ -1522,9 +1511,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* @@ -1702,7 +1691,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* @@ -1735,10 +1724,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: { @@ -1868,14 +1857,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:: 153 +//// [/home/src/projects/c/3/c-impl/c/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 154 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo] file written with same contents Inode:: 160 +//// [/home/src/projects/a/1/a-impl/a/tsconfig.tsbuildinfo.readable.baseline.txt] file written with same contents Inode:: 161 //// [/home/src/projects/c/3/c-impl/c/lib/c.js] Inode:: 165 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1911,31 +1898,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 169 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 170 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 "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:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1956,24 +1930,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 175 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 176 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 177 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - PolledWatches:: /home/src/projects/b/2/b-impl/b/node_modules/@types: @@ -2009,9 +1970,9 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":175} + {"inode":173} /home/src/projects/a/1/a-impl/a/package.json: {"inode":24} /home/src/projects/b: @@ -2040,7 +2001,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* @@ -2078,8 +2039,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* @@ -2088,8 +2049,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 @@ -2196,9 +2157,9 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":175} + {"inode":173} /home/src/projects/a/1/a-impl/a/package.json: {"inode":24} /home/src/projects/b: @@ -2293,10 +2254,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 f7d9e6df0b004..3f8c86d7d36b7 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" @@ -120,6 +123,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" } } @@ -456,7 +460,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -961,12 +966,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"; @@ -1003,17 +1006,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] @@ -1053,17 +1056,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 } @@ -1078,8 +1081,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, @@ -1100,12 +1103,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 @@ -1816,29 +1819,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: { @@ -1856,9 +1851,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" ] }, { @@ -1879,9 +1872,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" ] }, { @@ -1910,12 +1901,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 @@ -1936,12 +1921,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 @@ -1949,9 +1928,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* @@ -1994,9 +1973,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 @@ -2276,10 +2255,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: { @@ -2396,13 +2375,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 }); @@ -2438,19 +2417,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 }); @@ -2488,19 +2454,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: { @@ -2525,9 +2478,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" ] }, { @@ -2565,12 +2516,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 @@ -2578,7 +2523,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* @@ -2611,7 +2556,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 @@ -2619,8 +2564,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* @@ -2629,8 +2574,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 @@ -2943,10 +2888,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 34be68855102f..a97b61bd6566e 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" @@ -109,6 +112,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" } } @@ -207,7 +211,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -713,12 +718,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] @@ -756,17 +761,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] @@ -806,17 +811,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 } @@ -1402,12 +1407,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 @@ -1431,36 +1430,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* @@ -1638,7 +1627,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* @@ -1671,10 +1660,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: { @@ -1796,14 +1785,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 }); @@ -1839,19 +1826,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 }); @@ -1889,22 +1863,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* @@ -1942,8 +1903,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* @@ -1952,8 +1913,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 @@ -2157,10 +2118,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 7c86d75d0a3ea..78b29e615813e 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" @@ -125,17 +128,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 @@ -175,17 +178,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 } @@ -218,6 +221,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" } } @@ -613,7 +617,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1324,29 +1329,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: { @@ -1364,9 +1361,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" ] }, { @@ -1387,9 +1382,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" ] }, { @@ -1418,12 +1411,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 @@ -1444,12 +1431,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 @@ -1457,9 +1438,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* @@ -1503,9 +1484,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 @@ -1786,10 +1767,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: { @@ -1906,13 +1887,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:: 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:: 165 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1948,31 +1929,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 169 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 170 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 "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:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1993,24 +1961,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 175 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 176 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 177 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Info seq [hh:mm:ss:mss] request: { @@ -2035,9 +1990,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" ] }, { @@ -2075,12 +2028,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 @@ -2088,7 +2035,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* @@ -2121,7 +2068,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 @@ -2129,8 +2076,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* @@ -2139,8 +2086,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 @@ -2453,10 +2400,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 83abd941c89bf..9ee5ba8371484 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" @@ -125,17 +128,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 @@ -175,17 +178,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 } @@ -207,6 +210,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" } } @@ -320,7 +324,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1043,12 +1048,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 @@ -1072,31 +1071,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* @@ -1165,9 +1154,9 @@ FsWatches *deleted*:: {"inode":150} 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* @@ -1346,7 +1335,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* @@ -1380,10 +1369,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: { @@ -1499,7 +1488,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:: 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:: 165 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1535,31 +1528,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 169 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 170 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 "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:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1580,24 +1560,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 175 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 176 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 177 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - PolledWatches:: /home/src/projects/b/2/b-impl/b/node_modules/@types: @@ -1635,9 +1602,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":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":175} + {"inode":173} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1668,7 +1635,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* @@ -1734,11 +1701,11 @@ FsWatches:: /home/src/projects/a/1/a-impl/a: {"inode":19} /home/src/projects/a/1/a-impl/a/lib: *new* - {"inode":171} + {"inode":169} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":175} + {"inode":173} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1769,10 +1736,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 @@ -1780,8 +1747,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* @@ -1790,8 +1757,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 @@ -1898,11 +1865,11 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib: - {"inode":171} + {"inode":169} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":175} + {"inode":173} /home/src/projects/a/1/a-impl/a/node_modules: {"inode":25} /home/src/projects/a/1/a-impl/a/package.json: @@ -1993,10 +1960,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 d5a3611394b71..e40098bfbd2cd 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" @@ -125,17 +128,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 @@ -175,17 +178,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 } @@ -218,6 +221,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" } } @@ -613,7 +617,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1324,29 +1329,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: { @@ -1364,9 +1361,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" ] }, { @@ -1387,9 +1382,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" ] }, { @@ -1418,12 +1411,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 @@ -1444,12 +1431,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 @@ -1457,9 +1438,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* @@ -1503,9 +1484,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 @@ -1786,10 +1767,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: { @@ -1897,9 +1878,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:: 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:: 165 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1935,31 +1920,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 169 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 170 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 "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:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1980,24 +1952,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 175 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 176 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 177 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - Info seq [hh:mm:ss:mss] request: { @@ -2022,9 +1981,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" ] }, { @@ -2062,12 +2019,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 @@ -2075,7 +2026,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* @@ -2108,7 +2059,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 @@ -2116,8 +2067,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* @@ -2126,8 +2077,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 @@ -2440,10 +2391,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 c6303534c07eb..eaea2c10e3ab5 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" @@ -125,17 +128,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 @@ -175,17 +178,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 } @@ -207,6 +210,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" } } @@ -320,7 +324,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1077,12 +1082,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 @@ -1106,31 +1105,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* @@ -1197,9 +1186,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* @@ -1378,7 +1367,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* @@ -1412,10 +1401,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: { @@ -1545,14 +1534,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:: 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:: 165 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1588,31 +1575,18 @@ __exportStar(require("./c"), exports); export * from './c'; -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo] Inode:: 169 -{"root":["../src/c.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/c/3/c-impl/c/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 170 -{ - "root": [ - "../src/c.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - -//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 172 +//// [/home/src/projects/a/1/a-impl/a/lib/a.js] Inode:: 170 "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:: 173 +//// [/home/src/projects/a/1/a-impl/a/lib/a.d.ts] Inode:: 171 export declare const a: string; -//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 174 +//// [/home/src/projects/a/1/a-impl/a/lib/index.js] Inode:: 172 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1633,24 +1607,11 @@ __exportStar(require("./a"), exports); __exportStar(require("c"), exports); -//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 175 +//// [/home/src/projects/a/1/a-impl/a/lib/index.d.ts] Inode:: 173 export * from './a'; export * from 'c'; -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo] Inode:: 176 -{"root":["../src/a.ts","../src/index.ts"],"version":"FakeTSVersion"} - -//// [/home/src/projects/a/1/a-impl/a/lib/tsconfig.tsbuildinfo.readable.baseline.txt] Inode:: 177 -{ - "root": [ - "../src/a.ts", - "../src/index.ts" - ], - "version": "FakeTSVersion", - "size": 68 -} - PolledWatches:: /home/src/projects/b/2/b-impl/b/node_modules/@types: @@ -1686,9 +1647,9 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: *new* - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: *new* - {"inode":175} + {"inode":173} /home/src/projects/a/1/a-impl/a/package.json: {"inode":24} /home/src/projects/b: @@ -1717,7 +1678,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* @@ -1755,8 +1716,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* @@ -1765,8 +1726,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 @@ -1873,9 +1834,9 @@ FsWatches:: /home/src/projects: {"inode":3} /home/src/projects/a/1/a-impl/a/lib/a.d.ts: - {"inode":173} + {"inode":171} /home/src/projects/a/1/a-impl/a/lib/index.d.ts: - {"inode":175} + {"inode":173} /home/src/projects/a/1/a-impl/a/package.json: {"inode":24} /home/src/projects/b: @@ -1970,10 +1931,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 d2a429226c0cf..4853a4d8411e9 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" @@ -125,17 +128,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] @@ -175,17 +178,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 } @@ -218,6 +221,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" } } @@ -613,7 +617,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1324,29 +1329,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: { @@ -1364,9 +1361,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" ] }, { @@ -1387,9 +1382,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" ] }, { @@ -1418,12 +1411,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 @@ -1444,12 +1431,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 @@ -1457,9 +1438,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* @@ -1503,9 +1484,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 @@ -1786,10 +1767,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: { @@ -1906,13 +1887,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 }); @@ -1948,19 +1929,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 }); @@ -1998,19 +1966,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: { @@ -2035,9 +1990,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" ] }, { @@ -2075,12 +2028,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 @@ -2088,7 +2035,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* @@ -2121,7 +2068,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 @@ -2129,8 +2076,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* @@ -2139,8 +2086,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 @@ -2453,10 +2400,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 20890dfb5784b..70df05073173c 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" @@ -125,17 +128,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] @@ -175,17 +178,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 } @@ -207,6 +210,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" } } @@ -320,7 +324,8 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "outDir": "" + "outDir": "", + "rootDir": "" }, "typeAcquisition": { "enable": false, @@ -1077,12 +1082,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 @@ -1106,36 +1105,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* @@ -1314,7 +1303,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* @@ -1348,10 +1337,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: { @@ -1473,14 +1462,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 }); @@ -1516,19 +1503,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 }); @@ -1566,22 +1540,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* @@ -1619,8 +1580,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* @@ -1629,8 +1590,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 @@ -1834,10 +1795,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: {