From 5f96e29ce9eddeb092ee7d2b10443274d0298c5c Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Wed, 15 Feb 2023 16:20:14 -0800
Subject: [PATCH 01/10] Skip resolving files directly inside node_modules
or in @types. Although the node module resolution algorithm looks for
.js files there, they would never be there in correctly configured
node_modules. So it should be safe to skip *.ts, *.js, *.tsx, etc.
Also skips looking for files directly in node_modules/@types.
Fixes #52695
---
src/compiler/moduleNameResolver.ts | 2 +-
src/testRunner/unittests/moduleResolution.ts | 13 +-
.../unittests/tscWatch/programUpdates.ts | 2 +-
.../unittests/tsserver/configuredProjects.ts | 2 +-
.../events/projectUpdatedInBackground.ts | 2 +-
.../reference/cachedModuleResolution1.js | 5 +-
.../reference/cachedModuleResolution1.symbols | 4 +-
.../cachedModuleResolution1.trace.json | 13 +-
.../reference/cachedModuleResolution1.types | 2 +-
.../reference/cachedModuleResolution2.js | 2 +-
.../reference/cachedModuleResolution2.symbols | 4 +-
.../cachedModuleResolution2.trace.json | 13 +-
.../reference/cachedModuleResolution2.types | 2 +-
.../reference/cachedModuleResolution5.js | 5 +-
.../reference/cachedModuleResolution5.symbols | 4 +-
.../cachedModuleResolution5.trace.json | 13 +-
.../reference/cachedModuleResolution5.types | 2 +-
...esolvepackagejsonexports=false).trace.json | 3 -
...age_relativeImportWithinPackage.trace.json | 6 -
...ativeImportWithinPackage_scoped.trace.json | 6 -
...mportShouldNotBeElidedInDeclarationEmit.js | 2 +-
...ShouldNotBeElidedInDeclarationEmit.symbols | 12 +-
...rtShouldNotBeElidedInDeclarationEmit.types | 12 +-
.../reference/library-reference-11.trace.json | 1 -
.../reference/library-reference-12.trace.json | 1 -
.../reference/library-reference-3.trace.json | 1 -
.../reference/library-reference-4.trace.json | 4 -
.../reference/library-reference-5.trace.json | 4 -
.../reference/library-reference-7.trace.json | 1 -
...brary-reference-scoped-packages.trace.json | 1 -
...NodeModuleJsDepthDefaultsToZero.trace.json | 5 -
.../node-baseUrl-path-mappings.js | 16 +-
.../moduleResolution/node-baseUrl.js | 24 +-
.../non-relative-module-name-as-directory.js | 30 --
...module-name-as-file-ts-files-not-loaded.js | 24 +-
.../non-relative-module-name-as-file.js | 32 +--
.../non-relative-preserveSymlinks.js | 6 -
...ive-preserves-originalPath-on-cache-hit.js | 18 --
...-relative-uses-originalPath-for-caching.js | 20 --
...-name-as-directory-with-invalid-typings.js | 70 -----
.../type-reference-from-primary-location.js | 14 +-
.../type-reference-from-secondary-location.js | 48 +---
...geIdWithRelativeAndAbsolutePath.trace.json | 3 -
...lutionWithExtensions_unexpected.trace.json | 9 -
...utionWithExtensions_unexpected2.trace.json | 5 -
...thExtensions_withAmbientPresent.trace.json | 5 -
...WithSuffixes_one_externalModule.trace.json | 3 -
...thSuffixes_one_externalTSModule.trace.json | 3 -
.../moduleResolutionWithSymlinks.trace.json | 3 -
...onWithSymlinks_preserveSymlinks.trace.json | 13 -
...tionWithSymlinks_referenceTypes.trace.json | 6 -
...solutionWithSymlinks_withOutDir.trace.json | 3 -
...ution_packageJson_scopedPackage.trace.json | 3 -
...ageRoot_mainFieldInSubDirectory.trace.json | 3 -
.../reference/node10IsNode_node.trace.json | 3 -
.../reference/node10IsNode_node10.trace.json | 3 -
.../nodeModulesAtTypesPriority.trace.json | 10 -
tests/baselines/reference/nodeResolution2.js | 5 +-
.../reference/nodeResolution2.symbols | 4 +-
.../baselines/reference/nodeResolution2.types | 2 +-
tests/baselines/reference/nodeResolution5.js | 2 +-
.../reference/nodeResolution5.symbols | 6 +-
.../baselines/reference/nodeResolution5.types | 2 +-
tests/baselines/reference/nodeResolution6.js | 2 +-
.../reference/nodeResolution6.symbols | 6 +-
.../baselines/reference/nodeResolution6.types | 4 +-
.../reference/packageJsonMain.trace.json | 15 -
.../packageJsonMain_isNonRecursive.trace.json | 5 -
...pingBasedModuleResolution3_node.trace.json | 3 -
...pingBasedModuleResolution4_node.trace.json | 3 -
.../pathMappingBasedModuleResolution5_node.js | 7 +-
...MappingBasedModuleResolution5_node.symbols | 4 +-
...pingBasedModuleResolution5_node.trace.json | 7 +-
...thMappingBasedModuleResolution5_node.types | 2 +-
.../pathMappingBasedModuleResolution7_node.js | 2 +-
...MappingBasedModuleResolution7_node.symbols | 4 +-
...pingBasedModuleResolution7_node.trace.json | 11 +-
...thMappingBasedModuleResolution7_node.types | 2 +-
.../reference/requireOfJsonFileNonRelative.js | 33 ---
.../requireOfJsonFileNonRelative.symbols | 47 ----
.../requireOfJsonFileNonRelative.types | 58 ----
...NonRelativeWithoutExtensionResolvesToTs.js | 9 +-
...lativeWithoutExtensionResolvesToTs.symbols | 3 +-
...RelativeWithoutExtensionResolvesToTs.types | 3 +-
...stic1(moduleresolution=bundler).trace.json | 8 -
...le-declarations-from-non-modified-files.js | 15 -
...ge-affects-a-single-module-of-a-package.js | 6 -
.../change-affects-imports.js | 4 -
.../change-affects-tripleslash-references.js | 2 -
.../change-affects-type-directives.js | 4 -
.../change-affects-type-references.js | 4 -
...ge-does-not-affect-imports-or-type-refs.js | 4 -
.../change-doesnot-affect-type-references.js | 4 -
.../config-path-changes.js | 4 -
.../fetches-imports-after-npm-install.js | 18 --
.../missing-file-is-created.js | 4 -
.../missing-files-remain-missing.js | 4 -
.../module-kind-changes.js | 4 -
.../redirect-no-change.js | 24 --
.../redirect-previous-duplicate-packages.js | 24 --
.../redirect-target-changes.js | 24 --
.../redirect-underlying-changes.js | 24 --
...rect-with-getSourceFileByPath-no-change.js | 24 --
...eFileByPath-previous-duplicate-packages.js | 24 --
...with-getSourceFileByPath-target-changes.js | 24 --
...-getSourceFileByPath-underlying-changes.js | 24 --
.../resolution-cache-follows-imports.js | 1 -
...irectives-cache-follows-type-directives.js | 2 -
.../reuseProgramStructure/rootdir-changes.js | 4 -
.../reference/scopedPackages.trace.json | 4 -
.../scopedPackagesClassic.trace.json | 1 -
...project-correctly-with-preserveSymlinks.js | 3 -
...-file-from-referenced-project-correctly.js | 3 -
...for-changes-to-package-json-main-fields.js | 9 -
...t-correctly-with-cts-and-mts-extensions.js | 9 -
...ther-symlinked-package-moduleCaseChange.js | 9 -
...age-with-indirect-link-moduleCaseChange.js | 9 -
...er-symlinked-package-with-indirect-link.js | 9 -
...gh-source-and-another-symlinked-package.js | 9 -
.../with-nodeNext-resolution.js | 3 -
.../type-reference-resolutions-reuse.js | 1 -
...for-changes-to-package-json-main-fields.js | 9 -
...odule-resolution-changes-in-config-file.js | 18 +-
.../reusing-type-ref-resolution.js | 14 -
...are-global-and-installed-at-later-point.js | 4 -
.../with-modules-linked-to-sibling-folder.js | 2 -
...ymlinks-to-folders-in-recursive-folders.js | 3 -
...disableSourceOfProjectReferenceRedirect.js | 76 +++--
...port-with-referenced-project-when-built.js | 76 +++--
.../auto-import-with-referenced-project.js | 72 +++--
...solution-is-built-with-preserveSymlinks.js | 6 +-
...-and-has-index.ts-and-solution-is-built.js | 6 +-
...tion-is-not-built-with-preserveSymlinks.js | 6 +-
...-has-index.ts-and-solution-is-not-built.js | 6 +-
...solution-is-built-with-preserveSymlinks.js | 6 +-
...th-scoped-package-and-solution-is-built.js | 6 +-
...tion-is-not-built-with-preserveSymlinks.js | 6 +-
...coped-package-and-solution-is-not-built.js | 6 +-
...ts-have-allowJs-and-emitDeclarationOnly.js | 74 ++---
...he-session-and-project-is-at-root-level.js | 2 +-
...ession-and-project-is-not-at-root-level.js | 75 ++---
...oundUpdate-and-project-is-at-root-level.js | 2 +-
...Update-and-project-is-not-at-root-level.js | 79 +++---
...oundUpdate-and-project-is-at-root-level.js | 4 +-
...Update-and-project-is-not-at-root-level.js | 77 +++---
...unnecessary-lookup-invalidation-on-save.js | 91 +++---
...an-load-typings-that-are-proper-modules.js | 36 ++-
...le-name-from-files-in-different-folders.js | 225 ++++++++-------
...e-module-name-from-files-in-same-folder.js | 145 +++++-----
...ative-module-name-from-inferred-project.js | 261 +++++++++---------
.../not-sharing-across-references.js | 86 +++---
.../sharing-across-references.js | 79 +++---
...tion-when-project-compiles-from-sources.js | 188 ++++++-------
...mpiles-after-deleting-generated-folders.js | 96 +++----
...mMultipleNodeModulesDirectories.trace.json | 36 ---
...romNodeModulesInParentDirectory.trace.json | 6 -
.../typesVersions.ambientModules.trace.json | 3 -
.../typesVersions.multiFile.trace.json | 3 -
...VersionsDeclarationEmit.ambient.trace.json | 3 -
...rsionsDeclarationEmit.multiFile.trace.json | 3 -
...it.multiFileBackReferenceToSelf.trace.json | 3 -
...ultiFileBackReferenceToUnmapped.trace.json | 3 -
.../reference/typingsLookup4.trace.json | 16 --
.../reference/typingsLookupAmd.trace.json | 3 -
.../cases/compiler/cachedModuleResolution1.ts | 4 +-
.../cases/compiler/cachedModuleResolution2.ts | 2 +-
.../cases/compiler/cachedModuleResolution5.ts | 4 +-
...mportShouldNotBeElidedInDeclarationEmit.ts | 2 +-
tests/cases/compiler/nodeResolution2.ts | 4 +-
tests/cases/compiler/nodeResolution5.ts | 2 +-
tests/cases/compiler/nodeResolution6.ts | 4 +-
.../pathMappingBasedModuleResolution5_node.ts | 4 +-
.../pathMappingBasedModuleResolution7_node.ts | 2 +-
.../compiler/requireOfJsonFileNonRelative.ts | 26 --
...NonRelativeWithoutExtensionResolvesToTs.ts | 6 +-
175 files changed, 993 insertions(+), 2118 deletions(-)
delete mode 100644 tests/baselines/reference/requireOfJsonFileNonRelative.js
delete mode 100644 tests/baselines/reference/requireOfJsonFileNonRelative.symbols
delete mode 100644 tests/baselines/reference/requireOfJsonFileNonRelative.types
delete mode 100644 tests/cases/compiler/requireOfJsonFileNonRelative.ts
diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts
index f6b15356cdb08..c91943993ea42 100644
--- a/src/compiler/moduleNameResolver.ts
+++ b/src/compiler/moduleNameResolver.ts
@@ -2868,7 +2868,7 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions: Extensions, modu
const loader: ResolutionKindSpecificLoader = (extensions, candidate, onlyRecordFailures, state) => {
let pathAndExtension =
- loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) ||
+ rest && loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) ||
loadNodeModuleFromDirectoryWorker(
extensions,
candidate,
diff --git a/src/testRunner/unittests/moduleResolution.ts b/src/testRunner/unittests/moduleResolution.ts
index 560d68b7e954f..6be5fb521be26 100644
--- a/src/testRunner/unittests/moduleResolution.ts
+++ b/src/testRunner/unittests/moduleResolution.ts
@@ -262,7 +262,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
function test(hasDirectoryExists: boolean) {
const containingFile = { name: "/a/b/c/d/e.ts" };
- const moduleFile = { name: "/a/b/node_modules/foo.ts" };
+ const moduleFile = { name: "/a/b/node_modules/foo/index.ts" };
baselines.push(`Resolving "foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`);
const resolution = ts.nodeModuleNameResolver("foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile));
baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`);
@@ -278,7 +278,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
function test(hasDirectoryExists: boolean) {
const containingFile = { name: "/a/b/c/d/e.ts" };
- const moduleFile = { name: "/a/b/node_modules/foo.d.ts" };
+ const moduleFile = { name: "/a/b/node_modules/foo/index.d.ts" };
baselines.push(`Resolving "foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`);
const resolution = ts.nodeModuleNameResolver("foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile));
baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`);
@@ -672,7 +672,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", (
const m2: File = { name: "/root/m2/index.d.ts" }; // load folder as module
const m3: File = { name: "/root/m3/package.json", content: JSON.stringify({ typings: "dist/typings.d.ts" }) };
const m3Typings: File = { name: "/root/m3/dist/typings.d.ts" };
- const m4: File = { name: "/root/node_modules/m4.ts" }; // fallback to node
+ const m4: File = { name: "/root/node_modules/m4/index.ts" }; // fallback to node
const options: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.Node10, baseUrl: "/root" };
const host = createModuleResolutionHost(baselines, hasDirectoryExists, main, m1, m2, m3, m3Typings, m4);
@@ -732,7 +732,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", (
const file4Typings: File = { name: "/root/generated/folder2/file4/package.json", content: JSON.stringify({ typings: "dist/types.d.ts" }) };
const file4: File = { name: "/root/generated/folder2/file4/dist/types.d.ts" }; // load file pointed by typings
const file5: File = { name: "/root/someanotherfolder/file5/index.d.ts" }; // load remapped module from folder
- const file6: File = { name: "/root/node_modules/file6.ts" }; // fallback to node
+ const file6: File = { name: "/root/node_modules/file6/index.ts" }; // fallback to node
const host = createModuleResolutionHost(baselines, hasDirectoryExists, file1, file2, file3, file4, file4Typings, file5, file6);
const options: ts.CompilerOptions = {
@@ -969,11 +969,6 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ",
});
it("Can be resolved from secondary location", () => {
const baselines: string[] = [];
- {
- const f1 = { name: "/root/src/app.ts" };
- const f2 = { name: "/root/node_modules/lib.d.ts" };
- test(baselines, /*typesRoot*/"/root/src/types", /* typeDirective */"lib", f1, f2);
- }
{
const f1 = { name: "/root/src/app.ts" };
const f2 = { name: "/root/node_modules/lib/index.d.ts" };
diff --git a/src/testRunner/unittests/tscWatch/programUpdates.ts b/src/testRunner/unittests/tscWatch/programUpdates.ts
index 82f28e61aee54..b62804c37ceee 100644
--- a/src/testRunner/unittests/tscWatch/programUpdates.ts
+++ b/src/testRunner/unittests/tscWatch/programUpdates.ts
@@ -389,7 +389,7 @@ export class A {
content: `import { T } from "module1";`
};
const nodeModuleFile: File = {
- path: "/a/b/node_modules/module1.ts",
+ path: "/a/b/node_modules/module1/index.ts",
content: `export interface T {}`
};
const classicModuleFile: File = {
diff --git a/src/testRunner/unittests/tsserver/configuredProjects.ts b/src/testRunner/unittests/tsserver/configuredProjects.ts
index f205fedce7f12..87b6cb16fa602 100644
--- a/src/testRunner/unittests/tsserver/configuredProjects.ts
+++ b/src/testRunner/unittests/tsserver/configuredProjects.ts
@@ -217,7 +217,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => {
content: `import { T } from "module1";`
};
const nodeModuleFile: File = {
- path: "/a/b/node_modules/module1.ts",
+ path: "/a/b/node_modules/module1/index.ts",
content: `export interface T {}`
};
const classicModuleFile: File = {
diff --git a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts
index 9ef212685d5a0..244a8a7e4bea7 100644
--- a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts
+++ b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts
@@ -439,7 +439,7 @@ describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => {
content: 'import a from "file2"'
};
const file2: File = {
- path: rootFolder + "a/b/node_modules/file2.d.ts",
+ path: rootFolder + "a/b/node_modules/file2/index.d.ts",
content: "export class a { }"
};
const file3: File = {
diff --git a/tests/baselines/reference/cachedModuleResolution1.js b/tests/baselines/reference/cachedModuleResolution1.js
index 2a8211b1e600f..914ee81aad754 100644
--- a/tests/baselines/reference/cachedModuleResolution1.js
+++ b/tests/baselines/reference/cachedModuleResolution1.js
@@ -1,13 +1,14 @@
//// [tests/cases/compiler/cachedModuleResolution1.ts] ////
-//// [foo.d.ts]
+//// [index.d.ts]
export declare let x: number
//// [app.ts]
import {x} from "foo";
//// [lib.ts]
-import {x} from "foo";
+import {x} from "foo";
+
//// [app.js]
"use strict";
diff --git a/tests/baselines/reference/cachedModuleResolution1.symbols b/tests/baselines/reference/cachedModuleResolution1.symbols
index 87685f4f14739..84a503569c05c 100644
--- a/tests/baselines/reference/cachedModuleResolution1.symbols
+++ b/tests/baselines/reference/cachedModuleResolution1.symbols
@@ -1,6 +1,6 @@
-=== /a/b/node_modules/foo.d.ts ===
+=== /a/b/node_modules/foo/index.d.ts ===
export declare let x: number
->x : Symbol(x, Decl(foo.d.ts, 0, 18))
+>x : Symbol(x, Decl(index.d.ts, 0, 18))
=== /a/b/c/d/e/app.ts ===
import {x} from "foo";
diff --git a/tests/baselines/reference/cachedModuleResolution1.trace.json b/tests/baselines/reference/cachedModuleResolution1.trace.json
index 9a60d81337756..f82925d2673ed 100644
--- a/tests/baselines/reference/cachedModuleResolution1.trace.json
+++ b/tests/baselines/reference/cachedModuleResolution1.trace.json
@@ -5,14 +5,15 @@
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
- "File '/a/b/node_modules/foo.ts' does not exist.",
- "File '/a/b/node_modules/foo.tsx' does not exist.",
- "File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result.",
- "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
+ "File '/a/b/node_modules/foo/package.json' does not exist.",
+ "File '/a/b/node_modules/foo/index.ts' does not exist.",
+ "File '/a/b/node_modules/foo/index.tsx' does not exist.",
+ "File '/a/b/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
+ "Resolving real path for '/a/b/node_modules/foo/index.d.ts', result '/a/b/node_modules/foo/index.d.ts'.",
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========",
"======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Resolution for module 'foo' was found in cache from location '/a/b/c'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========"
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/cachedModuleResolution1.types b/tests/baselines/reference/cachedModuleResolution1.types
index ccc9e1311c83b..fd769552cb7f0 100644
--- a/tests/baselines/reference/cachedModuleResolution1.types
+++ b/tests/baselines/reference/cachedModuleResolution1.types
@@ -1,4 +1,4 @@
-=== /a/b/node_modules/foo.d.ts ===
+=== /a/b/node_modules/foo/index.d.ts ===
export declare let x: number
>x : number
diff --git a/tests/baselines/reference/cachedModuleResolution2.js b/tests/baselines/reference/cachedModuleResolution2.js
index d649b3c53ee37..104787f53c69f 100644
--- a/tests/baselines/reference/cachedModuleResolution2.js
+++ b/tests/baselines/reference/cachedModuleResolution2.js
@@ -1,6 +1,6 @@
//// [tests/cases/compiler/cachedModuleResolution2.ts] ////
-//// [foo.d.ts]
+//// [index.d.ts]
export declare let x: number
//// [lib.ts]
diff --git a/tests/baselines/reference/cachedModuleResolution2.symbols b/tests/baselines/reference/cachedModuleResolution2.symbols
index b9080b03cbfa2..3d39e8f2c2072 100644
--- a/tests/baselines/reference/cachedModuleResolution2.symbols
+++ b/tests/baselines/reference/cachedModuleResolution2.symbols
@@ -1,6 +1,6 @@
-=== /a/b/node_modules/foo.d.ts ===
+=== /a/b/node_modules/foo/index.d.ts ===
export declare let x: number
->x : Symbol(x, Decl(foo.d.ts, 0, 18))
+>x : Symbol(x, Decl(index.d.ts, 0, 18))
=== /a/b/c/lib.ts ===
import {x} from "foo";
diff --git a/tests/baselines/reference/cachedModuleResolution2.trace.json b/tests/baselines/reference/cachedModuleResolution2.trace.json
index 9e990b3955dea..899eef52f41ad 100644
--- a/tests/baselines/reference/cachedModuleResolution2.trace.json
+++ b/tests/baselines/reference/cachedModuleResolution2.trace.json
@@ -3,16 +3,17 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
- "File '/a/b/node_modules/foo.ts' does not exist.",
- "File '/a/b/node_modules/foo.tsx' does not exist.",
- "File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result.",
- "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
+ "File '/a/b/node_modules/foo/package.json' does not exist.",
+ "File '/a/b/node_modules/foo/index.ts' does not exist.",
+ "File '/a/b/node_modules/foo/index.tsx' does not exist.",
+ "File '/a/b/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
+ "Resolving real path for '/a/b/node_modules/foo/index.d.ts', result '/a/b/node_modules/foo/index.d.ts'.",
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========",
"======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
"Resolution for module 'foo' was found in cache from location '/a/b/c'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========"
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/cachedModuleResolution2.types b/tests/baselines/reference/cachedModuleResolution2.types
index 4c34d48b3a9ed..86183073314b0 100644
--- a/tests/baselines/reference/cachedModuleResolution2.types
+++ b/tests/baselines/reference/cachedModuleResolution2.types
@@ -1,4 +1,4 @@
-=== /a/b/node_modules/foo.d.ts ===
+=== /a/b/node_modules/foo/index.d.ts ===
export declare let x: number
>x : number
diff --git a/tests/baselines/reference/cachedModuleResolution5.js b/tests/baselines/reference/cachedModuleResolution5.js
index dee5a46122c61..329948c2bc4c7 100644
--- a/tests/baselines/reference/cachedModuleResolution5.js
+++ b/tests/baselines/reference/cachedModuleResolution5.js
@@ -1,13 +1,14 @@
//// [tests/cases/compiler/cachedModuleResolution5.ts] ////
-//// [foo.d.ts]
+//// [index.d.ts]
export declare let x: number
//// [app.ts]
import {x} from "foo";
//// [lib.ts]
-import {x} from "foo";
+import {x} from "foo";
+
//// [app.js]
"use strict";
diff --git a/tests/baselines/reference/cachedModuleResolution5.symbols b/tests/baselines/reference/cachedModuleResolution5.symbols
index 6c18677efcfed..ae77a3c9a0b05 100644
--- a/tests/baselines/reference/cachedModuleResolution5.symbols
+++ b/tests/baselines/reference/cachedModuleResolution5.symbols
@@ -1,6 +1,6 @@
-=== /a/b/node_modules/foo.d.ts ===
+=== /a/b/node_modules/foo/index.d.ts ===
export declare let x: number
->x : Symbol(x, Decl(foo.d.ts, 0, 18))
+>x : Symbol(x, Decl(index.d.ts, 0, 18))
=== /a/b/c/d/e/app.ts ===
import {x} from "foo";
diff --git a/tests/baselines/reference/cachedModuleResolution5.trace.json b/tests/baselines/reference/cachedModuleResolution5.trace.json
index e83bb61bfb11d..2bcfde70718e3 100644
--- a/tests/baselines/reference/cachedModuleResolution5.trace.json
+++ b/tests/baselines/reference/cachedModuleResolution5.trace.json
@@ -5,14 +5,15 @@
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
- "File '/a/b/node_modules/foo.ts' does not exist.",
- "File '/a/b/node_modules/foo.tsx' does not exist.",
- "File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result.",
- "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
+ "File '/a/b/node_modules/foo/package.json' does not exist.",
+ "File '/a/b/node_modules/foo/index.ts' does not exist.",
+ "File '/a/b/node_modules/foo/index.tsx' does not exist.",
+ "File '/a/b/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
+ "Resolving real path for '/a/b/node_modules/foo/index.d.ts', result '/a/b/node_modules/foo/index.d.ts'.",
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========",
"======== Resolving module 'foo' from '/a/b/lib.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Resolution for module 'foo' was found in cache from location '/a/b'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========"
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/cachedModuleResolution5.types b/tests/baselines/reference/cachedModuleResolution5.types
index e827caaf9228d..bbb74ad4247aa 100644
--- a/tests/baselines/reference/cachedModuleResolution5.types
+++ b/tests/baselines/reference/cachedModuleResolution5.types
@@ -1,4 +1,4 @@
-=== /a/b/node_modules/foo.d.ts ===
+=== /a/b/node_modules/foo/index.d.ts ===
export declare let x: number
>x : number
diff --git a/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json b/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json
index 18012df5f4b4b..e50fcee6fa91b 100644
--- a/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json
+++ b/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json
@@ -4,9 +4,6 @@
"File '/package.json' does not exist.",
"Loading module 'lodash' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Found 'package.json' at '/node_modules/lodash/package.json'.",
- "File '/node_modules/lodash.ts' does not exist.",
- "File '/node_modules/lodash.tsx' does not exist.",
- "File '/node_modules/lodash.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json
index f850edc8c179f..1c6e28a37d19d 100644
--- a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json
+++ b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json
@@ -13,9 +13,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/a/package.json' does not exist.",
- "File '/node_modules/a.ts' does not exist.",
- "File '/node_modules/a.tsx' does not exist.",
- "File '/node_modules/a.d.ts' does not exist.",
"File '/node_modules/a/index.ts' does not exist.",
"File '/node_modules/a/index.tsx' does not exist.",
"File '/node_modules/a/index.d.ts' exists - use it as a name resolution result.",
@@ -33,9 +30,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/a/node_modules/foo/package.json'.",
- "File '/node_modules/a/node_modules/foo.ts' does not exist.",
- "File '/node_modules/a/node_modules/foo.tsx' does not exist.",
- "File '/node_modules/a/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json
index dcdd083a59458..9a49bdebc86fe 100644
--- a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json
+++ b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json
@@ -13,9 +13,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/a/package.json' does not exist.",
- "File '/node_modules/a.ts' does not exist.",
- "File '/node_modules/a.tsx' does not exist.",
- "File '/node_modules/a.d.ts' does not exist.",
"File '/node_modules/a/index.ts' does not exist.",
"File '/node_modules/a/index.tsx' does not exist.",
"File '/node_modules/a/index.d.ts' exists - use it as a name resolution result.",
@@ -33,9 +30,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/a/node_modules/@foo/bar/package.json'.",
- "File '/node_modules/a/node_modules/@foo/bar.ts' does not exist.",
- "File '/node_modules/a/node_modules/@foo/bar.tsx' does not exist.",
- "File '/node_modules/a/node_modules/@foo/bar.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.js b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.js
index a4d31dabc8000..676fbe3915ad5 100644
--- a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.js
+++ b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.js
@@ -1,6 +1,6 @@
//// [tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts] ////
-//// [umd.d.ts]
+//// [index.d.ts]
export as namespace UMD;
export type Thing = {
diff --git a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.symbols b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.symbols
index 4ac0f4928b0c1..68f43a3aebbdf 100644
--- a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.symbols
+++ b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.symbols
@@ -1,17 +1,17 @@
-=== tests/cases/compiler/node_modules/umd.d.ts ===
+=== tests/cases/compiler/node_modules/umd/index.d.ts ===
export as namespace UMD;
->UMD : Symbol(UMD, Decl(umd.d.ts, 0, 0))
+>UMD : Symbol(UMD, Decl(index.d.ts, 0, 0))
export type Thing = {
->Thing : Symbol(Thing, Decl(umd.d.ts, 0, 24))
+>Thing : Symbol(Thing, Decl(index.d.ts, 0, 24))
a: number;
->a : Symbol(a, Decl(umd.d.ts, 2, 21))
+>a : Symbol(a, Decl(index.d.ts, 2, 21))
}
export declare function makeThing(): Thing;
->makeThing : Symbol(makeThing, Decl(umd.d.ts, 4, 1))
->Thing : Symbol(Thing, Decl(umd.d.ts, 0, 24))
+>makeThing : Symbol(makeThing, Decl(index.d.ts, 4, 1))
+>Thing : Symbol(Thing, Decl(index.d.ts, 0, 24))
=== tests/cases/compiler/index.ts ===
import { makeThing } from "umd";
diff --git a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.types b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.types
index 7e71235bb2fb1..def367267061d 100644
--- a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.types
+++ b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.types
@@ -1,6 +1,6 @@
-=== tests/cases/compiler/node_modules/umd.d.ts ===
+=== tests/cases/compiler/node_modules/umd/index.d.ts ===
export as namespace UMD;
->UMD : typeof import("tests/cases/compiler/node_modules/umd")
+>UMD : typeof import("tests/cases/compiler/node_modules/umd/index")
export type Thing = {
>Thing : { a: number; }
@@ -14,10 +14,10 @@ export declare function makeThing(): Thing;
=== tests/cases/compiler/index.ts ===
import { makeThing } from "umd";
->makeThing : () => import("tests/cases/compiler/node_modules/umd").Thing
+>makeThing : () => import("tests/cases/compiler/node_modules/umd/index").Thing
export const thing = makeThing();
->thing : import("tests/cases/compiler/node_modules/umd").Thing
->makeThing() : import("tests/cases/compiler/node_modules/umd").Thing
->makeThing : () => import("tests/cases/compiler/node_modules/umd").Thing
+>thing : import("tests/cases/compiler/node_modules/umd/index").Thing
+>makeThing() : import("tests/cases/compiler/node_modules/umd/index").Thing
+>makeThing : () => import("tests/cases/compiler/node_modules/umd/index").Thing
diff --git a/tests/baselines/reference/library-reference-11.trace.json b/tests/baselines/reference/library-reference-11.trace.json
index 020fbdae08a1a..603f5eec2df9e 100644
--- a/tests/baselines/reference/library-reference-11.trace.json
+++ b/tests/baselines/reference/library-reference-11.trace.json
@@ -4,7 +4,6 @@
"Looking up in 'node_modules' folder, initial location '/a/b'.",
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
"Found 'package.json' at '/a/node_modules/jquery/package.json'.",
- "File '/a/node_modules/jquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' has 'typings' field 'jquery.d.ts' that references '/a/node_modules/jquery/jquery.d.ts'.",
"File '/a/node_modules/jquery/jquery.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/library-reference-12.trace.json b/tests/baselines/reference/library-reference-12.trace.json
index a138305793937..b5279751af3e5 100644
--- a/tests/baselines/reference/library-reference-12.trace.json
+++ b/tests/baselines/reference/library-reference-12.trace.json
@@ -4,7 +4,6 @@
"Looking up in 'node_modules' folder, initial location '/a/b'.",
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
"Found 'package.json' at '/a/node_modules/jquery/package.json'.",
- "File '/a/node_modules/jquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'dist/jquery.d.ts' that references '/a/node_modules/jquery/dist/jquery.d.ts'.",
diff --git a/tests/baselines/reference/library-reference-3.trace.json b/tests/baselines/reference/library-reference-3.trace.json
index 79516a6139027..45dd92461ce56 100644
--- a/tests/baselines/reference/library-reference-3.trace.json
+++ b/tests/baselines/reference/library-reference-3.trace.json
@@ -3,7 +3,6 @@
"Root directory cannot be determined, skipping primary search paths.",
"Looking up in 'node_modules' folder, initial location '/src'.",
"File '/src/node_modules/jquery/package.json' does not exist.",
- "File '/src/node_modules/jquery.d.ts' does not exist.",
"File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'.",
"======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ========"
diff --git a/tests/baselines/reference/library-reference-4.trace.json b/tests/baselines/reference/library-reference-4.trace.json
index 60ce5559db24e..35352dcdbf333 100644
--- a/tests/baselines/reference/library-reference-4.trace.json
+++ b/tests/baselines/reference/library-reference-4.trace.json
@@ -4,7 +4,6 @@
"Looking up in 'node_modules' folder, initial location '/src'.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"File '/node_modules/foo/package.json' does not exist.",
- "File '/node_modules/foo.d.ts' does not exist.",
"File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'.",
"======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ========",
@@ -13,7 +12,6 @@
"Looking up in 'node_modules' folder, initial location '/src'.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"File '/node_modules/bar/package.json' does not exist.",
- "File '/node_modules/bar.d.ts' does not exist.",
"File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'.",
"======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ========",
@@ -21,7 +19,6 @@
"Resolving with primary search path '/src'.",
"Looking up in 'node_modules' folder, initial location '/node_modules/foo'.",
"File '/node_modules/foo/node_modules/alpha/package.json' does not exist.",
- "File '/node_modules/foo/node_modules/alpha.d.ts' does not exist.",
"File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'.",
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ========",
@@ -29,7 +26,6 @@
"Resolving with primary search path '/src'.",
"Looking up in 'node_modules' folder, initial location '/node_modules/bar'.",
"File '/node_modules/bar/node_modules/alpha/package.json' does not exist.",
- "File '/node_modules/bar/node_modules/alpha.d.ts' does not exist.",
"File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'.",
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ========"
diff --git a/tests/baselines/reference/library-reference-5.trace.json b/tests/baselines/reference/library-reference-5.trace.json
index 127af0de623f5..7469efe8df7f4 100644
--- a/tests/baselines/reference/library-reference-5.trace.json
+++ b/tests/baselines/reference/library-reference-5.trace.json
@@ -5,7 +5,6 @@
"Looking up in 'node_modules' folder, initial location '/src'.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"File '/node_modules/foo/package.json' does not exist.",
- "File '/node_modules/foo.d.ts' does not exist.",
"File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'.",
"======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ========",
@@ -15,7 +14,6 @@
"Looking up in 'node_modules' folder, initial location '/src'.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"File '/node_modules/bar/package.json' does not exist.",
- "File '/node_modules/bar.d.ts' does not exist.",
"File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'.",
"======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ========",
@@ -24,7 +22,6 @@
"Directory 'types' does not exist, skipping all lookups in it.",
"Looking up in 'node_modules' folder, initial location '/node_modules/foo'.",
"File '/node_modules/foo/node_modules/alpha/package.json' does not exist.",
- "File '/node_modules/foo/node_modules/alpha.d.ts' does not exist.",
"File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'.",
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ========",
@@ -33,7 +30,6 @@
"Directory 'types' does not exist, skipping all lookups in it.",
"Looking up in 'node_modules' folder, initial location '/node_modules/bar'.",
"File '/node_modules/bar/node_modules/alpha/package.json' does not exist.",
- "File '/node_modules/bar/node_modules/alpha.d.ts' does not exist.",
"File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'.",
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ========"
diff --git a/tests/baselines/reference/library-reference-7.trace.json b/tests/baselines/reference/library-reference-7.trace.json
index 79516a6139027..45dd92461ce56 100644
--- a/tests/baselines/reference/library-reference-7.trace.json
+++ b/tests/baselines/reference/library-reference-7.trace.json
@@ -3,7 +3,6 @@
"Root directory cannot be determined, skipping primary search paths.",
"Looking up in 'node_modules' folder, initial location '/src'.",
"File '/src/node_modules/jquery/package.json' does not exist.",
- "File '/src/node_modules/jquery.d.ts' does not exist.",
"File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'.",
"======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ========"
diff --git a/tests/baselines/reference/library-reference-scoped-packages.trace.json b/tests/baselines/reference/library-reference-scoped-packages.trace.json
index c3576ed31bc8b..2bbe82ed5a22c 100644
--- a/tests/baselines/reference/library-reference-scoped-packages.trace.json
+++ b/tests/baselines/reference/library-reference-scoped-packages.trace.json
@@ -5,7 +5,6 @@
"Looking up in 'node_modules' folder, initial location '/'.",
"Scoped package detected, looking in 'beep__boop'",
"File '/node_modules/@types/beep__boop/package.json' does not exist.",
- "File '/node_modules/@types/beep__boop.d.ts' does not exist.",
"File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'.",
"======== Type reference directive '@beep/boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: false. ========"
diff --git a/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json b/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json
index 1e986019cd429..9eb16fce49a7d 100644
--- a/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json
+++ b/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json
@@ -3,17 +3,12 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/shortid/package.json' does not exist.",
- "File '/node_modules/shortid.ts' does not exist.",
- "File '/node_modules/shortid.tsx' does not exist.",
- "File '/node_modules/shortid.d.ts' does not exist.",
"File '/node_modules/shortid/index.ts' does not exist.",
"File '/node_modules/shortid/index.tsx' does not exist.",
"File '/node_modules/shortid/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'shortid' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/shortid/package.json' does not exist according to earlier cached lookups.",
- "File '/node_modules/shortid.js' does not exist.",
- "File '/node_modules/shortid.jsx' does not exist.",
"File '/node_modules/shortid/index.js' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/shortid/index.js', result '/node_modules/shortid/index.js'.",
"======== Module name 'shortid' was successfully resolved to '/node_modules/shortid/index.js'. ========"
diff --git a/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js b/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js
index 30e9c41445cc7..1afcbd0e0db08 100644
--- a/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js
+++ b/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js
@@ -16,7 +16,7 @@
//// [/root/someanotherfolder/file5/index.d.ts]
-//// [/root/node_modules/file6.ts]
+//// [/root/node_modules/file6/index.ts]
Resolving "folder1/file1" from /root/folder1/main.ts
@@ -129,7 +129,7 @@ Resolution:: {
Resolving "file6" from /root/folder1/main.ts
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/root/node_modules/file6.ts",
+ "resolvedFileName": "/root/node_modules/file6/index.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -150,14 +150,10 @@ Resolution:: {
"/root/generated/file6/index.tsx",
"/root/generated/file6/index.d.ts",
"/root/folder1/node_modules/file6/package.json",
- "/root/folder1/node_modules/file6.ts",
- "/root/folder1/node_modules/file6.tsx",
- "/root/folder1/node_modules/file6.d.ts",
"/root/folder1/node_modules/file6/index.ts",
"/root/folder1/node_modules/file6/index.tsx",
"/root/folder1/node_modules/file6/index.d.ts",
"/root/folder1/node_modules/@types/file6/package.json",
- "/root/folder1/node_modules/@types/file6.d.ts",
"/root/folder1/node_modules/@types/file6/index.d.ts",
"/root/node_modules/file6/package.json"
]
@@ -181,7 +177,7 @@ Resolution:: {
//// [/root/someanotherfolder/file5/index.d.ts]
-//// [/root/node_modules/file6.ts]
+//// [/root/node_modules/file6/index.ts]
Resolving "folder1/file1" from /root/folder1/main.ts with host that doesnt have directoryExists
@@ -294,7 +290,7 @@ Resolution:: {
Resolving "file6" from /root/folder1/main.ts with host that doesnt have directoryExists
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/root/node_modules/file6.ts",
+ "resolvedFileName": "/root/node_modules/file6/index.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -315,14 +311,10 @@ Resolution:: {
"/root/generated/file6/index.tsx",
"/root/generated/file6/index.d.ts",
"/root/folder1/node_modules/file6/package.json",
- "/root/folder1/node_modules/file6.ts",
- "/root/folder1/node_modules/file6.tsx",
- "/root/folder1/node_modules/file6.d.ts",
"/root/folder1/node_modules/file6/index.ts",
"/root/folder1/node_modules/file6/index.tsx",
"/root/folder1/node_modules/file6/index.d.ts",
"/root/folder1/node_modules/@types/file6/package.json",
- "/root/folder1/node_modules/@types/file6.d.ts",
"/root/folder1/node_modules/@types/file6/index.d.ts",
"/root/node_modules/file6/package.json"
]
diff --git a/tests/baselines/reference/moduleResolution/node-baseUrl.js b/tests/baselines/reference/moduleResolution/node-baseUrl.js
index ecb69b2076974..77ed9d33d0de8 100644
--- a/tests/baselines/reference/moduleResolution/node-baseUrl.js
+++ b/tests/baselines/reference/moduleResolution/node-baseUrl.js
@@ -13,7 +13,7 @@
//// [/root/m3/dist/typings.d.ts]
-//// [/root/node_modules/m4.ts]
+//// [/root/node_modules/m4/index.ts]
Resolving "m1" from /root/a/b/main.ts
@@ -65,7 +65,7 @@ Resolution:: {
Resolving "m4" from /root/a/b/main.ts
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/root/node_modules/m4.ts",
+ "resolvedFileName": "/root/node_modules/m4/index.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -79,24 +79,16 @@ Resolution:: {
"/root/m4/index.tsx",
"/root/m4/index.d.ts",
"/root/a/b/node_modules/m4/package.json",
- "/root/a/b/node_modules/m4.ts",
- "/root/a/b/node_modules/m4.tsx",
- "/root/a/b/node_modules/m4.d.ts",
"/root/a/b/node_modules/m4/index.ts",
"/root/a/b/node_modules/m4/index.tsx",
"/root/a/b/node_modules/m4/index.d.ts",
"/root/a/b/node_modules/@types/m4/package.json",
- "/root/a/b/node_modules/@types/m4.d.ts",
"/root/a/b/node_modules/@types/m4/index.d.ts",
"/root/a/node_modules/m4/package.json",
- "/root/a/node_modules/m4.ts",
- "/root/a/node_modules/m4.tsx",
- "/root/a/node_modules/m4.d.ts",
"/root/a/node_modules/m4/index.ts",
"/root/a/node_modules/m4/index.tsx",
"/root/a/node_modules/m4/index.d.ts",
"/root/a/node_modules/@types/m4/package.json",
- "/root/a/node_modules/@types/m4.d.ts",
"/root/a/node_modules/@types/m4/index.d.ts",
"/root/node_modules/m4/package.json"
]
@@ -117,7 +109,7 @@ Resolution:: {
//// [/root/m3/dist/typings.d.ts]
-//// [/root/node_modules/m4.ts]
+//// [/root/node_modules/m4/index.ts]
Resolving "m1" from /root/a/b/main.ts with host that doesnt have directoryExists
@@ -169,7 +161,7 @@ Resolution:: {
Resolving "m4" from /root/a/b/main.ts with host that doesnt have directoryExists
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/root/node_modules/m4.ts",
+ "resolvedFileName": "/root/node_modules/m4/index.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -183,24 +175,16 @@ Resolution:: {
"/root/m4/index.tsx",
"/root/m4/index.d.ts",
"/root/a/b/node_modules/m4/package.json",
- "/root/a/b/node_modules/m4.ts",
- "/root/a/b/node_modules/m4.tsx",
- "/root/a/b/node_modules/m4.d.ts",
"/root/a/b/node_modules/m4/index.ts",
"/root/a/b/node_modules/m4/index.tsx",
"/root/a/b/node_modules/m4/index.d.ts",
"/root/a/b/node_modules/@types/m4/package.json",
- "/root/a/b/node_modules/@types/m4.d.ts",
"/root/a/b/node_modules/@types/m4/index.d.ts",
"/root/a/node_modules/m4/package.json",
- "/root/a/node_modules/m4.ts",
- "/root/a/node_modules/m4.tsx",
- "/root/a/node_modules/m4.d.ts",
"/root/a/node_modules/m4/index.ts",
"/root/a/node_modules/m4/index.tsx",
"/root/a/node_modules/m4/index.d.ts",
"/root/a/node_modules/@types/m4/package.json",
- "/root/a/node_modules/@types/m4.d.ts",
"/root/a/node_modules/@types/m4/index.d.ts",
"/root/node_modules/m4/package.json"
]
diff --git a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-directory.js b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-directory.js
index f631d3c016e7b..397874359476e 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-directory.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-directory.js
@@ -14,39 +14,24 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/c/node_modules/d/node_modules/foo/package.json",
- "/a/node_modules/b/c/node_modules/d/node_modules/foo.ts",
- "/a/node_modules/b/c/node_modules/d/node_modules/foo.tsx",
- "/a/node_modules/b/c/node_modules/d/node_modules/foo.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.tsx",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/@types/foo/package.json",
- "/a/node_modules/b/c/node_modules/d/node_modules/@types/foo.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/@types/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/foo/package.json",
- "/a/node_modules/b/c/node_modules/foo.ts",
- "/a/node_modules/b/c/node_modules/foo.tsx",
- "/a/node_modules/b/c/node_modules/foo.d.ts",
"/a/node_modules/b/c/node_modules/foo/index.ts",
"/a/node_modules/b/c/node_modules/foo/index.tsx",
"/a/node_modules/b/c/node_modules/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/@types/foo/package.json",
- "/a/node_modules/b/c/node_modules/@types/foo.d.ts",
"/a/node_modules/b/c/node_modules/@types/foo/index.d.ts",
"/a/node_modules/b/node_modules/foo/package.json",
- "/a/node_modules/b/node_modules/foo.ts",
- "/a/node_modules/b/node_modules/foo.tsx",
- "/a/node_modules/b/node_modules/foo.d.ts",
"/a/node_modules/b/node_modules/foo/index.ts",
"/a/node_modules/b/node_modules/foo/index.tsx",
"/a/node_modules/b/node_modules/foo/index.d.ts",
"/a/node_modules/b/node_modules/@types/foo/package.json",
- "/a/node_modules/b/node_modules/@types/foo.d.ts",
"/a/node_modules/b/node_modules/@types/foo/index.d.ts",
"/a/node_modules/foo/package.json",
- "/a/node_modules/foo.ts",
- "/a/node_modules/foo.tsx",
- "/a/node_modules/foo.d.ts",
"/a/node_modules/foo/index.ts",
"/a/node_modules/foo/index.tsx"
]
@@ -68,39 +53,24 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/c/node_modules/d/node_modules/foo/package.json",
- "/a/node_modules/b/c/node_modules/d/node_modules/foo.ts",
- "/a/node_modules/b/c/node_modules/d/node_modules/foo.tsx",
- "/a/node_modules/b/c/node_modules/d/node_modules/foo.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.tsx",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/@types/foo/package.json",
- "/a/node_modules/b/c/node_modules/d/node_modules/@types/foo.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/@types/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/foo/package.json",
- "/a/node_modules/b/c/node_modules/foo.ts",
- "/a/node_modules/b/c/node_modules/foo.tsx",
- "/a/node_modules/b/c/node_modules/foo.d.ts",
"/a/node_modules/b/c/node_modules/foo/index.ts",
"/a/node_modules/b/c/node_modules/foo/index.tsx",
"/a/node_modules/b/c/node_modules/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/@types/foo/package.json",
- "/a/node_modules/b/c/node_modules/@types/foo.d.ts",
"/a/node_modules/b/c/node_modules/@types/foo/index.d.ts",
"/a/node_modules/b/node_modules/foo/package.json",
- "/a/node_modules/b/node_modules/foo.ts",
- "/a/node_modules/b/node_modules/foo.tsx",
- "/a/node_modules/b/node_modules/foo.d.ts",
"/a/node_modules/b/node_modules/foo/index.ts",
"/a/node_modules/b/node_modules/foo/index.tsx",
"/a/node_modules/b/node_modules/foo/index.d.ts",
"/a/node_modules/b/node_modules/@types/foo/package.json",
- "/a/node_modules/b/node_modules/@types/foo.d.ts",
"/a/node_modules/b/node_modules/@types/foo/index.d.ts",
"/a/node_modules/foo/package.json",
- "/a/node_modules/foo.ts",
- "/a/node_modules/foo.tsx",
- "/a/node_modules/foo.d.ts",
"/a/node_modules/foo/index.ts",
"/a/node_modules/foo/index.tsx"
]
diff --git a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js
index b30a6b150a505..3f006cb0963cf 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js
@@ -2,36 +2,28 @@ Resolving "foo" from /a/b/c/d/e.ts
//// [/a/b/c/d/e.ts]
-//// [/a/b/node_modules/foo.ts]
+//// [/a/b/node_modules/foo/index.ts]
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/a/b/node_modules/foo.ts",
+ "resolvedFileName": "/a/b/node_modules/foo/index.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
"/a/b/c/d/node_modules/foo/package.json",
- "/a/b/c/d/node_modules/foo.ts",
- "/a/b/c/d/node_modules/foo.tsx",
- "/a/b/c/d/node_modules/foo.d.ts",
"/a/b/c/d/node_modules/foo/index.ts",
"/a/b/c/d/node_modules/foo/index.tsx",
"/a/b/c/d/node_modules/foo/index.d.ts",
"/a/b/c/d/node_modules/@types/foo/package.json",
- "/a/b/c/d/node_modules/@types/foo.d.ts",
"/a/b/c/d/node_modules/@types/foo/index.d.ts",
"/a/b/c/node_modules/foo/package.json",
- "/a/b/c/node_modules/foo.ts",
- "/a/b/c/node_modules/foo.tsx",
- "/a/b/c/node_modules/foo.d.ts",
"/a/b/c/node_modules/foo/index.ts",
"/a/b/c/node_modules/foo/index.tsx",
"/a/b/c/node_modules/foo/index.d.ts",
"/a/b/c/node_modules/@types/foo/package.json",
- "/a/b/c/node_modules/@types/foo.d.ts",
"/a/b/c/node_modules/@types/foo/index.d.ts",
"/a/b/node_modules/foo/package.json"
]
@@ -41,36 +33,28 @@ Resolving "foo" from /a/b/c/d/e.ts with host that doesnt have directoryExists
//// [/a/b/c/d/e.ts]
-//// [/a/b/node_modules/foo.ts]
+//// [/a/b/node_modules/foo/index.ts]
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/a/b/node_modules/foo.ts",
+ "resolvedFileName": "/a/b/node_modules/foo/index.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
"/a/b/c/d/node_modules/foo/package.json",
- "/a/b/c/d/node_modules/foo.ts",
- "/a/b/c/d/node_modules/foo.tsx",
- "/a/b/c/d/node_modules/foo.d.ts",
"/a/b/c/d/node_modules/foo/index.ts",
"/a/b/c/d/node_modules/foo/index.tsx",
"/a/b/c/d/node_modules/foo/index.d.ts",
"/a/b/c/d/node_modules/@types/foo/package.json",
- "/a/b/c/d/node_modules/@types/foo.d.ts",
"/a/b/c/d/node_modules/@types/foo/index.d.ts",
"/a/b/c/node_modules/foo/package.json",
- "/a/b/c/node_modules/foo.ts",
- "/a/b/c/node_modules/foo.tsx",
- "/a/b/c/node_modules/foo.d.ts",
"/a/b/c/node_modules/foo/index.ts",
"/a/b/c/node_modules/foo/index.tsx",
"/a/b/c/node_modules/foo/index.d.ts",
"/a/b/c/node_modules/@types/foo/package.json",
- "/a/b/c/node_modules/@types/foo.d.ts",
"/a/b/c/node_modules/@types/foo/index.d.ts",
"/a/b/node_modules/foo/package.json"
]
diff --git a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js
index 4ba986ae2ecf4..db09a12d2636a 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js
@@ -2,40 +2,32 @@ Resolving "foo" from /a/b/c/d/e.ts
//// [/a/b/c/d/e.ts]
-//// [/a/b/node_modules/foo.d.ts]
+//// [/a/b/node_modules/foo/index.d.ts]
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/a/b/node_modules/foo.d.ts",
+ "resolvedFileName": "/a/b/node_modules/foo/index.d.ts",
"extension": ".d.ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
"/a/b/c/d/node_modules/foo/package.json",
- "/a/b/c/d/node_modules/foo.ts",
- "/a/b/c/d/node_modules/foo.tsx",
- "/a/b/c/d/node_modules/foo.d.ts",
"/a/b/c/d/node_modules/foo/index.ts",
"/a/b/c/d/node_modules/foo/index.tsx",
"/a/b/c/d/node_modules/foo/index.d.ts",
"/a/b/c/d/node_modules/@types/foo/package.json",
- "/a/b/c/d/node_modules/@types/foo.d.ts",
"/a/b/c/d/node_modules/@types/foo/index.d.ts",
"/a/b/c/node_modules/foo/package.json",
- "/a/b/c/node_modules/foo.ts",
- "/a/b/c/node_modules/foo.tsx",
- "/a/b/c/node_modules/foo.d.ts",
"/a/b/c/node_modules/foo/index.ts",
"/a/b/c/node_modules/foo/index.tsx",
"/a/b/c/node_modules/foo/index.d.ts",
"/a/b/c/node_modules/@types/foo/package.json",
- "/a/b/c/node_modules/@types/foo.d.ts",
"/a/b/c/node_modules/@types/foo/index.d.ts",
"/a/b/node_modules/foo/package.json",
- "/a/b/node_modules/foo.ts",
- "/a/b/node_modules/foo.tsx"
+ "/a/b/node_modules/foo/index.ts",
+ "/a/b/node_modules/foo/index.tsx"
]
}
@@ -43,39 +35,31 @@ Resolving "foo" from /a/b/c/d/e.ts with host that doesnt have directoryExists
//// [/a/b/c/d/e.ts]
-//// [/a/b/node_modules/foo.d.ts]
+//// [/a/b/node_modules/foo/index.d.ts]
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/a/b/node_modules/foo.d.ts",
+ "resolvedFileName": "/a/b/node_modules/foo/index.d.ts",
"extension": ".d.ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
"/a/b/c/d/node_modules/foo/package.json",
- "/a/b/c/d/node_modules/foo.ts",
- "/a/b/c/d/node_modules/foo.tsx",
- "/a/b/c/d/node_modules/foo.d.ts",
"/a/b/c/d/node_modules/foo/index.ts",
"/a/b/c/d/node_modules/foo/index.tsx",
"/a/b/c/d/node_modules/foo/index.d.ts",
"/a/b/c/d/node_modules/@types/foo/package.json",
- "/a/b/c/d/node_modules/@types/foo.d.ts",
"/a/b/c/d/node_modules/@types/foo/index.d.ts",
"/a/b/c/node_modules/foo/package.json",
- "/a/b/c/node_modules/foo.ts",
- "/a/b/c/node_modules/foo.tsx",
- "/a/b/c/node_modules/foo.d.ts",
"/a/b/c/node_modules/foo/index.ts",
"/a/b/c/node_modules/foo/index.tsx",
"/a/b/c/node_modules/foo/index.d.ts",
"/a/b/c/node_modules/@types/foo/package.json",
- "/a/b/c/node_modules/@types/foo.d.ts",
"/a/b/c/node_modules/@types/foo/index.d.ts",
"/a/b/node_modules/foo/package.json",
- "/a/b/node_modules/foo.ts",
- "/a/b/node_modules/foo.tsx"
+ "/a/b/node_modules/foo/index.ts",
+ "/a/b/node_modules/foo/index.tsx"
]
}
diff --git a/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js b/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js
index b5f9ceb12e06c..a6396feae8e80 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js
@@ -16,9 +16,6 @@ Resolution:: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/app/node_modules/linked.ts",
- "/app/node_modules/linked.tsx",
- "/app/node_modules/linked.d.ts",
"/app/node_modules/linked/index",
"/app/node_modules/linked/index.ts",
"/app/node_modules/linked/index.tsx"
@@ -45,9 +42,6 @@ Resolution:: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/app/node_modules/linked.ts",
- "/app/node_modules/linked.tsx",
- "/app/node_modules/linked.d.ts",
"/app/node_modules/linked/index",
"/app/node_modules/linked/index.ts",
"/app/node_modules/linked/index.tsx"
diff --git a/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js b/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js
index 50b20f9a56ff5..8e382c3bd2894 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js
@@ -17,18 +17,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/app/src/node_modules/linked/package.json",
- "/app/src/node_modules/linked.ts",
- "/app/src/node_modules/linked.tsx",
- "/app/src/node_modules/linked.d.ts",
"/app/src/node_modules/linked/index.ts",
"/app/src/node_modules/linked/index.tsx",
"/app/src/node_modules/linked/index.d.ts",
"/app/src/node_modules/@types/linked/package.json",
- "/app/src/node_modules/@types/linked.d.ts",
"/app/src/node_modules/@types/linked/index.d.ts",
- "/app/node_modules/linked.ts",
- "/app/node_modules/linked.tsx",
- "/app/node_modules/linked.d.ts",
"/app/node_modules/linked/index",
"/app/node_modules/linked/index.ts",
"/app/node_modules/linked/index.tsx"
@@ -49,30 +42,19 @@ Resolution:: {
},
"failedLookupLocations": [
"/app/src/node_modules/linked/package.json",
- "/app/src/node_modules/linked.ts",
- "/app/src/node_modules/linked.tsx",
- "/app/src/node_modules/linked.d.ts",
"/app/src/node_modules/linked/index.ts",
"/app/src/node_modules/linked/index.tsx",
"/app/src/node_modules/linked/index.d.ts",
"/app/src/node_modules/@types/linked/package.json",
- "/app/src/node_modules/@types/linked.d.ts",
"/app/src/node_modules/@types/linked/index.d.ts",
- "/app/node_modules/linked.ts",
- "/app/node_modules/linked.tsx",
- "/app/node_modules/linked.d.ts",
"/app/node_modules/linked/index",
"/app/node_modules/linked/index.ts",
"/app/node_modules/linked/index.tsx",
"/app/lib/node_modules/linked/package.json",
- "/app/lib/node_modules/linked.ts",
- "/app/lib/node_modules/linked.tsx",
- "/app/lib/node_modules/linked.d.ts",
"/app/lib/node_modules/linked/index.ts",
"/app/lib/node_modules/linked/index.tsx",
"/app/lib/node_modules/linked/index.d.ts",
"/app/lib/node_modules/@types/linked/package.json",
- "/app/lib/node_modules/@types/linked.d.ts",
"/app/lib/node_modules/@types/linked/index.d.ts"
],
"affectingLocations": [
diff --git a/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js b/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js
index 5508c607f5330..9fa7027625648 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js
@@ -17,18 +17,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/sub/dir/node_modules/a/package.json",
- "/sub/dir/node_modules/a.ts",
- "/sub/dir/node_modules/a.tsx",
- "/sub/dir/node_modules/a.d.ts",
"/sub/dir/node_modules/a/index.ts",
"/sub/dir/node_modules/a/index.tsx",
"/sub/dir/node_modules/a/index.d.ts",
"/sub/dir/node_modules/@types/a/package.json",
- "/sub/dir/node_modules/@types/a.d.ts",
"/sub/dir/node_modules/@types/a/index.d.ts",
- "/sub/node_modules/a.ts",
- "/sub/node_modules/a.tsx",
- "/sub/node_modules/a.d.ts",
"/sub/node_modules/a/index"
],
"affectingLocations": [
@@ -47,18 +40,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/sub/dir/node_modules/a/package.json",
- "/sub/dir/node_modules/a.ts",
- "/sub/dir/node_modules/a.tsx",
- "/sub/dir/node_modules/a.d.ts",
"/sub/dir/node_modules/a/index.ts",
"/sub/dir/node_modules/a/index.tsx",
"/sub/dir/node_modules/a/index.d.ts",
"/sub/dir/node_modules/@types/a/package.json",
- "/sub/dir/node_modules/@types/a.d.ts",
"/sub/dir/node_modules/@types/a/index.d.ts",
- "/sub/node_modules/a.ts",
- "/sub/node_modules/a.tsx",
- "/sub/node_modules/a.d.ts",
"/sub/node_modules/a/index"
],
"affectingLocations": [
@@ -70,18 +56,12 @@ Resolving "a" from /foo.ts
Resolution:: {
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx",
"/node_modules/a/index.d.ts",
"/node_modules/@types/a/package.json",
- "/node_modules/@types/a.d.ts",
"/node_modules/@types/a/index.d.ts",
"/node_modules/a/package.json",
- "/node_modules/a.js",
- "/node_modules/a.jsx",
"/node_modules/a/index.js",
"/node_modules/a/index.jsx"
]
diff --git a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js
index 9e5149dce238b..59e79baa53a6a 100644
--- a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js
+++ b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js
@@ -20,18 +20,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
- "/a/node_modules/b.ts",
- "/a/node_modules/b.tsx",
- "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
- "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -62,18 +55,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
- "/a/node_modules/b.ts",
- "/a/node_modules/b.tsx",
- "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
- "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -104,18 +90,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
- "/a/node_modules/b.ts",
- "/a/node_modules/b.tsx",
- "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
- "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -146,18 +125,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
- "/a/node_modules/b.ts",
- "/a/node_modules/b.tsx",
- "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
- "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -188,18 +160,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
- "/a/node_modules/b.ts",
- "/a/node_modules/b.tsx",
- "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
- "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -230,18 +195,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
- "/a/node_modules/b.ts",
- "/a/node_modules/b.tsx",
- "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
- "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -272,18 +230,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
- "/a/node_modules/b.ts",
- "/a/node_modules/b.tsx",
- "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
- "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -314,18 +265,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
- "/a/node_modules/b.ts",
- "/a/node_modules/b.tsx",
- "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
- "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -356,18 +300,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
- "/a/node_modules/b.ts",
- "/a/node_modules/b.tsx",
- "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
- "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -398,18 +335,11 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
- "/a/node_modules/b.ts",
- "/a/node_modules/b.tsx",
- "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
- "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
diff --git a/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js b/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js
index 282c0bb60a392..84aded3c39e76 100644
--- a/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js
+++ b/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js
@@ -53,8 +53,7 @@ Resolution:: {
"failedLookupLocations": [
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
- "/root/src/node_modules/lib/package.json",
- "/root/src/node_modules/lib.d.ts"
+ "/root/src/node_modules/lib/package.json"
]
}
@@ -76,8 +75,7 @@ Resolution:: {
},
"failedLookupLocations": [
"/root/src/types/lib/package.json",
- "/root/src/types/lib/index.d.ts",
- "/root/src/node_modules/lib.d.ts"
+ "/root/src/types/lib/index.d.ts"
],
"affectingLocations": [
"/root/src/node_modules/lib/package.json"
@@ -101,10 +99,8 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
- "/root/src/node_modules/lib.d.ts",
"/root/src/node_modules/lib/index.d.ts",
- "/root/src/node_modules/@types/lib/package.json",
- "/root/src/node_modules/@types/lib.d.ts"
+ "/root/src/node_modules/@types/lib/package.json"
]
}
@@ -128,9 +124,7 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
- "/root/src/node_modules/lib.d.ts",
- "/root/src/node_modules/lib/index.d.ts",
- "/root/src/node_modules/@types/lib.d.ts"
+ "/root/src/node_modules/lib/index.d.ts"
],
"affectingLocations": [
"/root/src/node_modules/@types/lib/package.json"
diff --git a/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js b/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js
index 8990d303378db..3092cf3fd1f7d 100644
--- a/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js
+++ b/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js
@@ -1,32 +1,6 @@
//// [/root/src/app.ts]
-//// [/root/node_modules/lib.d.ts]
-
-
-Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists
-Resolution:: {
- "resolvedTypeReferenceDirective": {
- "primary": false,
- "resolvedFileName": "/root/node_modules/lib.d.ts",
- "isExternalLibraryImport": true
- },
- "failedLookupLocations": [
- "/root/src/types/lib/package.json",
- "/root/src/types/lib/index.d.ts",
- "/root/src/node_modules/lib/package.json",
- "/root/src/node_modules/lib.d.ts",
- "/root/src/node_modules/lib/index.d.ts",
- "/root/src/node_modules/@types/lib/package.json",
- "/root/src/node_modules/@types/lib.d.ts",
- "/root/src/node_modules/@types/lib/index.d.ts",
- "/root/node_modules/lib/package.json"
- ]
-}
-
-//// [/root/src/app.ts]
-
-
//// [/root/node_modules/lib/index.d.ts]
@@ -41,13 +15,10 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
- "/root/src/node_modules/lib.d.ts",
"/root/src/node_modules/lib/index.d.ts",
"/root/src/node_modules/@types/lib/package.json",
- "/root/src/node_modules/@types/lib.d.ts",
"/root/src/node_modules/@types/lib/index.d.ts",
- "/root/node_modules/lib/package.json",
- "/root/node_modules/lib.d.ts"
+ "/root/node_modules/lib/package.json"
]
}
@@ -71,12 +42,9 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
- "/root/src/node_modules/lib.d.ts",
"/root/src/node_modules/lib/index.d.ts",
"/root/src/node_modules/@types/lib/package.json",
- "/root/src/node_modules/@types/lib.d.ts",
- "/root/src/node_modules/@types/lib/index.d.ts",
- "/root/node_modules/lib.d.ts"
+ "/root/src/node_modules/@types/lib/index.d.ts"
],
"affectingLocations": [
"/root/node_modules/lib/package.json"
@@ -100,16 +68,12 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
- "/root/src/node_modules/lib.d.ts",
"/root/src/node_modules/lib/index.d.ts",
"/root/src/node_modules/@types/lib/package.json",
- "/root/src/node_modules/@types/lib.d.ts",
"/root/src/node_modules/@types/lib/index.d.ts",
"/root/node_modules/lib/package.json",
- "/root/node_modules/lib.d.ts",
"/root/node_modules/lib/index.d.ts",
- "/root/node_modules/@types/lib/package.json",
- "/root/node_modules/@types/lib.d.ts"
+ "/root/node_modules/@types/lib/package.json"
]
}
@@ -133,15 +97,11 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
- "/root/src/node_modules/lib.d.ts",
"/root/src/node_modules/lib/index.d.ts",
"/root/src/node_modules/@types/lib/package.json",
- "/root/src/node_modules/@types/lib.d.ts",
"/root/src/node_modules/@types/lib/index.d.ts",
"/root/node_modules/lib/package.json",
- "/root/node_modules/lib.d.ts",
- "/root/node_modules/lib/index.d.ts",
- "/root/node_modules/@types/lib.d.ts"
+ "/root/node_modules/lib/index.d.ts"
],
"affectingLocations": [
"/root/node_modules/@types/lib/package.json"
diff --git a/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json b/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json
index 18004b1f3de83..b407afb21582f 100644
--- a/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json
+++ b/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json
@@ -13,9 +13,6 @@
"Loading module 'anotherLib' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/project/src/node_modules' does not exist, skipping all lookups in it.",
"File '/project/node_modules/anotherLib/package.json' does not exist.",
- "File '/project/node_modules/anotherLib.ts' does not exist.",
- "File '/project/node_modules/anotherLib.tsx' does not exist.",
- "File '/project/node_modules/anotherLib.d.ts' does not exist.",
"File '/project/node_modules/anotherLib/index.ts' does not exist.",
"File '/project/node_modules/anotherLib/index.tsx' does not exist.",
"File '/project/node_modules/anotherLib/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json
index f62564d9126a6..a5724c00aa0b0 100644
--- a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json
@@ -3,11 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/normalize.css/package.json'.",
- "File name '/node_modules/normalize.css' has a '.css' extension - stripping it.",
- "File '/node_modules/normalize.d.css.ts' does not exist.",
- "File '/node_modules/normalize.css.ts' does not exist.",
- "File '/node_modules/normalize.css.tsx' does not exist.",
- "File '/node_modules/normalize.css.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -25,12 +20,8 @@
"File '/node_modules/normalize.css/index.tsx' does not exist.",
"File '/node_modules/normalize.css/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
- "File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it.",
"Loading module 'normalize.css' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/normalize.css/package.json' exists according to earlier cached lookups.",
- "File name '/node_modules/normalize.css' has a '.css' extension - stripping it.",
- "File '/node_modules/normalize.css.js' does not exist.",
- "File '/node_modules/normalize.css.jsx' does not exist.",
"'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'.",
"File '/node_modules/normalize.css/normalize.css' exists - use it as a name resolution result.",
"File '/node_modules/normalize.css/normalize.css' has an unsupported extension, so skipping it.",
diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json
index a4bb7b420c0be..49bfbfd503ccc 100644
--- a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json
@@ -3,9 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
- "File '/node_modules/foo.ts' does not exist.",
- "File '/node_modules/foo.tsx' does not exist.",
- "File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'foo.js' that references '/node_modules/foo/foo.js'.",
@@ -26,8 +23,6 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'foo' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
- "File '/node_modules/foo.js' does not exist.",
- "File '/node_modules/foo.jsx' does not exist.",
"'package.json' does not have a 'main' field.",
"File '/node_modules/foo/index.js' does not exist.",
"File '/node_modules/foo/index.jsx' does not exist.",
diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json
index 03214ef1f4af9..262345d0c8662 100644
--- a/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json
@@ -3,17 +3,12 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'js' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/js/package.json' does not exist.",
- "File '/node_modules/js.ts' does not exist.",
- "File '/node_modules/js.tsx' does not exist.",
- "File '/node_modules/js.d.ts' does not exist.",
"File '/node_modules/js/index.ts' does not exist.",
"File '/node_modules/js/index.tsx' does not exist.",
"File '/node_modules/js/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'js' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/js/package.json' does not exist according to earlier cached lookups.",
- "File '/node_modules/js.js' does not exist.",
- "File '/node_modules/js.jsx' does not exist.",
"File '/node_modules/js/index.js' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/js/index.js', result '/node_modules/js/index.js'.",
"======== Module name 'js' was successfully resolved to '/node_modules/js/index.js'. ========"
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json
index f99e891ffe88a..854c897945291 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json
@@ -3,9 +3,6 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/some-library/package.json' does not exist.",
- "File '/node_modules/some-library.ios.ts' does not exist.",
- "File '/node_modules/some-library.ios.tsx' does not exist.",
- "File '/node_modules/some-library.ios.d.ts' does not exist.",
"File '/node_modules/some-library/index.ios.ts' does not exist.",
"File '/node_modules/some-library/index.ios.tsx' does not exist.",
"File '/node_modules/some-library/index.ios.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json
index 360fb0ec923ee..bb471c0648242 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json
@@ -3,9 +3,6 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/some-library/package.json' does not exist.",
- "File '/node_modules/some-library.ios.ts' does not exist.",
- "File '/node_modules/some-library.ios.tsx' does not exist.",
- "File '/node_modules/some-library.ios.d.ts' does not exist.",
"File '/node_modules/some-library/index.ios.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/some-library/index.ios.ts', result '/node_modules/some-library/index.ios.ts'.",
"======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/index.ios.ts'. ========"
diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json
index 818c2d2608f91..b6fdc3b0acc63 100644
--- a/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json
@@ -21,9 +21,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/src/library-b/node_modules/library-a/package.json' does not exist.",
- "File '/src/library-b/node_modules/library-a.ts' does not exist.",
- "File '/src/library-b/node_modules/library-a.tsx' does not exist.",
- "File '/src/library-b/node_modules/library-a.d.ts' does not exist.",
"File '/src/library-b/node_modules/library-a/index.ts' exists - use it as a name resolution result.",
"Resolving real path for '/src/library-b/node_modules/library-a/index.ts', result '/src/library-a/index.ts'.",
"======== Module name 'library-a' was successfully resolved to '/src/library-a/index.ts'. ========"
diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json
index a48f4ea42f8ee..270a1bd9b96bf 100644
--- a/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json
@@ -3,7 +3,6 @@
"Root directory cannot be determined, skipping primary search paths.",
"Looking up in 'node_modules' folder, initial location '/app'.",
"File '/app/node_modules/linked/package.json' does not exist.",
- "File '/app/node_modules/linked.d.ts' does not exist.",
"File '/app/node_modules/linked/index.d.ts' exists - use it as a name resolution result.",
"======== Type reference directive 'linked' was successfully resolved to '/app/node_modules/linked/index.d.ts', primary: false. ========",
"======== Resolving module 'real' from '/app/node_modules/linked/index.d.ts'. ========",
@@ -11,9 +10,6 @@
"Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/app/node_modules/linked/node_modules' does not exist, skipping all lookups in it.",
"File '/app/node_modules/real/package.json' does not exist.",
- "File '/app/node_modules/real.ts' does not exist.",
- "File '/app/node_modules/real.tsx' does not exist.",
- "File '/app/node_modules/real.d.ts' does not exist.",
"File '/app/node_modules/real/index.ts' does not exist.",
"File '/app/node_modules/real/index.tsx' does not exist.",
"File '/app/node_modules/real/index.d.ts' exists - use it as a name resolution result.",
@@ -22,9 +18,6 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/app/node_modules/linked/package.json' does not exist according to earlier cached lookups.",
- "File '/app/node_modules/linked.ts' does not exist.",
- "File '/app/node_modules/linked.tsx' does not exist.",
- "File '/app/node_modules/linked.d.ts' does not exist.",
"File '/app/node_modules/linked/index.ts' does not exist.",
"File '/app/node_modules/linked/index.tsx' does not exist.",
"File '/app/node_modules/linked/index.d.ts' exists - use it as a name resolution result.",
@@ -33,9 +26,6 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'linked2' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/app/node_modules/linked2/package.json' does not exist.",
- "File '/app/node_modules/linked2.ts' does not exist.",
- "File '/app/node_modules/linked2.tsx' does not exist.",
- "File '/app/node_modules/linked2.d.ts' does not exist.",
"File '/app/node_modules/linked2/index.ts' does not exist.",
"File '/app/node_modules/linked2/index.tsx' does not exist.",
"File '/app/node_modules/linked2/index.d.ts' exists - use it as a name resolution result.",
@@ -45,9 +35,6 @@
"Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/app/node_modules/linked2/node_modules' does not exist, skipping all lookups in it.",
"File '/app/node_modules/real/package.json' does not exist according to earlier cached lookups.",
- "File '/app/node_modules/real.ts' does not exist.",
- "File '/app/node_modules/real.tsx' does not exist.",
- "File '/app/node_modules/real.d.ts' does not exist.",
"File '/app/node_modules/real/index.ts' does not exist.",
"File '/app/node_modules/real/index.tsx' does not exist.",
"File '/app/node_modules/real/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json
index 612f6940e25e7..8060134d95220 100644
--- a/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json
@@ -2,27 +2,21 @@
"======== Resolving type reference directive 'library-a', containing file '/app.ts', root directory ''. ========",
"Root directory cannot be determined, skipping primary search paths.",
"Looking up in 'node_modules' folder, initial location '/'.",
- "File '/node_modules/library-a.d.ts' does not exist.",
"File '/node_modules/@types/library-a/package.json' does not exist.",
- "File '/node_modules/@types/library-a.d.ts' does not exist.",
"File '/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'.",
"======== Type reference directive 'library-a' was successfully resolved to '/node_modules/@types/library-a/index.d.ts', primary: false. ========",
"======== Resolving type reference directive 'library-b', containing file '/app.ts', root directory ''. ========",
"Root directory cannot be determined, skipping primary search paths.",
"Looking up in 'node_modules' folder, initial location '/'.",
- "File '/node_modules/library-b.d.ts' does not exist.",
"File '/node_modules/@types/library-b/package.json' does not exist.",
- "File '/node_modules/@types/library-b.d.ts' does not exist.",
"File '/node_modules/@types/library-b/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/library-b/index.d.ts', result '/node_modules/@types/library-b/index.d.ts'.",
"======== Type reference directive 'library-b' was successfully resolved to '/node_modules/@types/library-b/index.d.ts', primary: false. ========",
"======== Resolving type reference directive 'library-a', containing file '/node_modules/@types/library-b/index.d.ts', root directory ''. ========",
"Root directory cannot be determined, skipping primary search paths.",
"Looking up in 'node_modules' folder, initial location '/node_modules/@types/library-b'.",
- "File '/node_modules/@types/library-b/node_modules/library-a.d.ts' does not exist.",
"File '/node_modules/@types/library-b/node_modules/@types/library-a/package.json' does not exist.",
- "File '/node_modules/@types/library-b/node_modules/@types/library-a.d.ts' does not exist.",
"File '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'.",
"======== Type reference directive 'library-a' was successfully resolved to '/node_modules/@types/library-a/index.d.ts', primary: false. ========"
diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json
index 818c2d2608f91..b6fdc3b0acc63 100644
--- a/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json
@@ -21,9 +21,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/src/library-b/node_modules/library-a/package.json' does not exist.",
- "File '/src/library-b/node_modules/library-a.ts' does not exist.",
- "File '/src/library-b/node_modules/library-a.tsx' does not exist.",
- "File '/src/library-b/node_modules/library-a.d.ts' does not exist.",
"File '/src/library-b/node_modules/library-a/index.ts' exists - use it as a name resolution result.",
"Resolving real path for '/src/library-b/node_modules/library-a/index.ts', result '/src/library-a/index.ts'.",
"======== Module name 'library-a' was successfully resolved to '/src/library-a/index.ts'. ========"
diff --git a/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json b/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json
index 6b0906831f52d..eaaf736786c38 100644
--- a/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json
+++ b/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json
@@ -3,9 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/@foo/bar/package.json'.",
- "File '/node_modules/@foo/bar.ts' does not exist.",
- "File '/node_modules/@foo/bar.tsx' does not exist.",
- "File '/node_modules/@foo/bar.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'types.d.ts' that references '/node_modules/@foo/bar/types.d.ts'.",
diff --git a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json
index fdd8de393d3b1..8327b6031efee 100644
--- a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json
+++ b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json
@@ -3,9 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
- "File '/node_modules/foo.ts' does not exist.",
- "File '/node_modules/foo.tsx' does not exist.",
- "File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/node10IsNode_node.trace.json b/tests/baselines/reference/node10IsNode_node.trace.json
index 64f126aa69485..4b7960e8a6c09 100644
--- a/tests/baselines/reference/node10IsNode_node.trace.json
+++ b/tests/baselines/reference/node10IsNode_node.trace.json
@@ -3,9 +3,6 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/fancy-lib/package.json'.",
- "File '/node_modules/fancy-lib.ts' does not exist.",
- "File '/node_modules/fancy-lib.tsx' does not exist.",
- "File '/node_modules/fancy-lib.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/node10IsNode_node10.trace.json b/tests/baselines/reference/node10IsNode_node10.trace.json
index 64f126aa69485..4b7960e8a6c09 100644
--- a/tests/baselines/reference/node10IsNode_node10.trace.json
+++ b/tests/baselines/reference/node10IsNode_node10.trace.json
@@ -3,9 +3,6 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/fancy-lib/package.json'.",
- "File '/node_modules/fancy-lib.ts' does not exist.",
- "File '/node_modules/fancy-lib.tsx' does not exist.",
- "File '/node_modules/fancy-lib.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json b/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json
index 55d99d6040655..2675ee8786133 100644
--- a/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json
+++ b/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json
@@ -23,19 +23,12 @@
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'react' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration.",
"File '/packages/a/node_modules/react/package.json' does not exist.",
- "File '/packages/a/node_modules/react.ts' does not exist.",
- "File '/packages/a/node_modules/react.tsx' does not exist.",
- "File '/packages/a/node_modules/react.d.ts' does not exist.",
"File '/packages/a/node_modules/react/index.ts' does not exist.",
"File '/packages/a/node_modules/react/index.tsx' does not exist.",
"File '/packages/a/node_modules/react/index.d.ts' does not exist.",
"Directory '/packages/a/node_modules/@types' does not exist, skipping all lookups in it.",
"Directory '/packages/node_modules' does not exist, skipping all lookups in it.",
- "File '/node_modules/react.ts' does not exist.",
- "File '/node_modules/react.tsx' does not exist.",
- "File '/node_modules/react.d.ts' does not exist.",
"File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups.",
- "File '/node_modules/@types/react.d.ts' does not exist.",
"File '/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/react/index.d.ts', result '/node_modules/@types/react/index.d.ts'.",
"======== Module name 'react' was successfully resolved to '/node_modules/@types/react/index.d.ts'. ========",
@@ -47,9 +40,6 @@
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'redux' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration.",
"File '/packages/a/node_modules/redux/package.json' does not exist according to earlier cached lookups.",
- "File '/packages/a/node_modules/redux.ts' does not exist.",
- "File '/packages/a/node_modules/redux.tsx' does not exist.",
- "File '/packages/a/node_modules/redux.d.ts' does not exist.",
"File '/packages/a/node_modules/redux/index.ts' does not exist.",
"File '/packages/a/node_modules/redux/index.tsx' does not exist.",
"File '/packages/a/node_modules/redux/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/nodeResolution2.js b/tests/baselines/reference/nodeResolution2.js
index 842cfc66c1ef8..e947f904ca73d 100644
--- a/tests/baselines/reference/nodeResolution2.js
+++ b/tests/baselines/reference/nodeResolution2.js
@@ -1,10 +1,11 @@
//// [tests/cases/compiler/nodeResolution2.ts] ////
-//// [a.d.ts]
+//// [index.d.ts]
export var x: number;
//// [b.ts]
-import y = require("a");
+import y = require("a");
+
//// [b.js]
"use strict";
diff --git a/tests/baselines/reference/nodeResolution2.symbols b/tests/baselines/reference/nodeResolution2.symbols
index ead8db27d7e79..6c4bd9b6fb18b 100644
--- a/tests/baselines/reference/nodeResolution2.symbols
+++ b/tests/baselines/reference/nodeResolution2.symbols
@@ -2,7 +2,7 @@
import y = require("a");
>y : Symbol(y, Decl(b.ts, 0, 0))
-=== tests/cases/compiler/node_modules/a.d.ts ===
+=== tests/cases/compiler/node_modules/a/index.d.ts ===
export var x: number;
->x : Symbol(x, Decl(a.d.ts, 0, 10))
+>x : Symbol(x, Decl(index.d.ts, 0, 10))
diff --git a/tests/baselines/reference/nodeResolution2.types b/tests/baselines/reference/nodeResolution2.types
index 3f4e97f7cfc54..4ea52116a8ff2 100644
--- a/tests/baselines/reference/nodeResolution2.types
+++ b/tests/baselines/reference/nodeResolution2.types
@@ -2,7 +2,7 @@
import y = require("a");
>y : typeof y
-=== tests/cases/compiler/node_modules/a.d.ts ===
+=== tests/cases/compiler/node_modules/a/index.d.ts ===
export var x: number;
>x : number
diff --git a/tests/baselines/reference/nodeResolution5.js b/tests/baselines/reference/nodeResolution5.js
index 109810a436458..2b6de26e6678e 100644
--- a/tests/baselines/reference/nodeResolution5.js
+++ b/tests/baselines/reference/nodeResolution5.js
@@ -1,6 +1,6 @@
//// [tests/cases/compiler/nodeResolution5.ts] ////
-//// [a.d.ts]
+//// [index.d.ts]
declare module "a" {
var x: number;
}
diff --git a/tests/baselines/reference/nodeResolution5.symbols b/tests/baselines/reference/nodeResolution5.symbols
index c00eca8188d10..db3bf2753c1ad 100644
--- a/tests/baselines/reference/nodeResolution5.symbols
+++ b/tests/baselines/reference/nodeResolution5.symbols
@@ -2,11 +2,11 @@
import y = require("a");
>y : Symbol(y, Decl(b.ts, 0, 0))
-=== tests/cases/compiler/node_modules/a.d.ts ===
+=== tests/cases/compiler/node_modules/a/index.d.ts ===
declare module "a" {
->"a" : Symbol("a", Decl(a.d.ts, 0, 0))
+>"a" : Symbol("a", Decl(index.d.ts, 0, 0))
var x: number;
->x : Symbol(x, Decl(a.d.ts, 1, 7))
+>x : Symbol(x, Decl(index.d.ts, 1, 7))
}
diff --git a/tests/baselines/reference/nodeResolution5.types b/tests/baselines/reference/nodeResolution5.types
index 3cd5d2dd631a4..fb31e87a0c79c 100644
--- a/tests/baselines/reference/nodeResolution5.types
+++ b/tests/baselines/reference/nodeResolution5.types
@@ -2,7 +2,7 @@
import y = require("a");
>y : typeof y
-=== tests/cases/compiler/node_modules/a.d.ts ===
+=== tests/cases/compiler/node_modules/a/index.d.ts ===
declare module "a" {
>"a" : typeof import("a")
diff --git a/tests/baselines/reference/nodeResolution6.js b/tests/baselines/reference/nodeResolution6.js
index 3ee4da97624c6..362bf6ecf9b26 100644
--- a/tests/baselines/reference/nodeResolution6.js
+++ b/tests/baselines/reference/nodeResolution6.js
@@ -3,7 +3,7 @@
//// [ref.ts]
var x = 1;
-//// [a.d.ts]
+//// [index.d.ts]
///
export declare var y;
diff --git a/tests/baselines/reference/nodeResolution6.symbols b/tests/baselines/reference/nodeResolution6.symbols
index 24864d15a7966..98004d1e5a150 100644
--- a/tests/baselines/reference/nodeResolution6.symbols
+++ b/tests/baselines/reference/nodeResolution6.symbols
@@ -2,13 +2,13 @@
import y = require("a");
>y : Symbol(y, Decl(b.ts, 0, 0))
-=== tests/cases/compiler/node_modules/ref.ts ===
+=== tests/cases/compiler/node_modules/a/ref.ts ===
var x = 1;
>x : Symbol(x, Decl(ref.ts, 0, 3))
-=== tests/cases/compiler/node_modules/a.d.ts ===
+=== tests/cases/compiler/node_modules/a/index.d.ts ===
///
export declare var y;
->y : Symbol(y, Decl(a.d.ts, 1, 18))
+>y : Symbol(y, Decl(index.d.ts, 1, 18))
diff --git a/tests/baselines/reference/nodeResolution6.types b/tests/baselines/reference/nodeResolution6.types
index 1c08f9c9113c3..4f5da344e14e7 100644
--- a/tests/baselines/reference/nodeResolution6.types
+++ b/tests/baselines/reference/nodeResolution6.types
@@ -2,12 +2,12 @@
import y = require("a");
>y : typeof y
-=== tests/cases/compiler/node_modules/ref.ts ===
+=== tests/cases/compiler/node_modules/a/ref.ts ===
var x = 1;
>x : number
>1 : 1
-=== tests/cases/compiler/node_modules/a.d.ts ===
+=== tests/cases/compiler/node_modules/a/index.d.ts ===
///
export declare var y;
>y : any
diff --git a/tests/baselines/reference/packageJsonMain.trace.json b/tests/baselines/reference/packageJsonMain.trace.json
index 2f2c406dfa0ad..814d3e7a058a0 100644
--- a/tests/baselines/reference/packageJsonMain.trace.json
+++ b/tests/baselines/reference/packageJsonMain.trace.json
@@ -3,9 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
- "File '/node_modules/foo.ts' does not exist.",
- "File '/node_modules/foo.tsx' does not exist.",
- "File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -22,8 +19,6 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'foo' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
- "File '/node_modules/foo.js' does not exist.",
- "File '/node_modules/foo.jsx' does not exist.",
"'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'.",
"File '/node_modules/foo/oof' does not exist.",
"Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript.",
@@ -34,9 +29,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/bar/package.json'.",
- "File '/node_modules/bar.ts' does not exist.",
- "File '/node_modules/bar.tsx' does not exist.",
- "File '/node_modules/bar.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -58,8 +50,6 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'bar' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/bar/package.json' exists according to earlier cached lookups.",
- "File '/node_modules/bar.js' does not exist.",
- "File '/node_modules/bar.jsx' does not exist.",
"'package.json' has 'main' field 'rab.js' that references '/node_modules/bar/rab.js'.",
"File '/node_modules/bar/rab.js' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/bar/rab.js', result '/node_modules/bar/rab.js'.",
@@ -68,9 +58,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'baz' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/baz/package.json'.",
- "File '/node_modules/baz.ts' does not exist.",
- "File '/node_modules/baz.tsx' does not exist.",
- "File '/node_modules/baz.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -89,8 +76,6 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'baz' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/baz/package.json' exists according to earlier cached lookups.",
- "File '/node_modules/baz.js' does not exist.",
- "File '/node_modules/baz.jsx' does not exist.",
"'package.json' has 'main' field 'zab' that references '/node_modules/baz/zab'.",
"File '/node_modules/baz/zab' does not exist.",
"Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: JavaScript.",
diff --git a/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json b/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json
index 566bb33e120eb..41f3d9aae2fc6 100644
--- a/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json
+++ b/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json
@@ -3,9 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
- "File '/node_modules/foo.ts' does not exist.",
- "File '/node_modules/foo.tsx' does not exist.",
- "File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -24,8 +21,6 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'foo' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
- "File '/node_modules/foo.js' does not exist.",
- "File '/node_modules/foo.jsx' does not exist.",
"'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'.",
"File '/node_modules/foo/oof' does not exist.",
"Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript.",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json
index 6888ae3a5ee0a..526e5b817dbf0 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json
@@ -24,9 +24,6 @@
"Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it.",
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
"File 'c:/node_modules/file4/package.json' does not exist.",
- "File 'c:/node_modules/file4.ts' does not exist.",
- "File 'c:/node_modules/file4.tsx' does not exist.",
- "File 'c:/node_modules/file4.d.ts' does not exist.",
"File 'c:/node_modules/file4/index.ts' does not exist.",
"File 'c:/node_modules/file4/index.tsx' does not exist.",
"File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json
index 6888ae3a5ee0a..526e5b817dbf0 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json
@@ -24,9 +24,6 @@
"Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it.",
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
"File 'c:/node_modules/file4/package.json' does not exist.",
- "File 'c:/node_modules/file4.ts' does not exist.",
- "File 'c:/node_modules/file4.tsx' does not exist.",
- "File 'c:/node_modules/file4.d.ts' does not exist.",
"File 'c:/node_modules/file4/index.ts' does not exist.",
"File 'c:/node_modules/file4/index.tsx' does not exist.",
"File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.js b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.js
index c1865e7c6c8b8..8a1a8479344b7 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.js
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.js
@@ -22,8 +22,9 @@ export var y = 1;
//// [index.d.ts]
export var z: number;
-//// [file4.ts]
-export var z1 = 1;
+//// [index.ts]
+export var z1 = 1;
+
//// [file1.js]
"use strict";
@@ -35,7 +36,7 @@ exports.x = 1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.y = void 0;
exports.y = 1;
-//// [file4.js]
+//// [index.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.z1 = void 0;
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.symbols b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.symbols
index 4baefdba819f3..54f38e9c9f2ea 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.symbols
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.symbols
@@ -51,7 +51,7 @@ export var y = 1;
export var z: number;
>z : Symbol(z, Decl(index.d.ts, 0, 10))
-=== c:/node_modules/file4.ts ===
+=== c:/node_modules/file4/index.ts ===
export var z1 = 1;
->z1 : Symbol(z1, Decl(file4.ts, 0, 10))
+>z1 : Symbol(z1, Decl(index.ts, 0, 10))
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json
index c47afb6b59c51..3ed3bb099544e 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json
@@ -54,7 +54,8 @@
"Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it.",
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
- "File 'c:/node_modules/file4.ts' exists - use it as a name resolution result.",
- "Resolving real path for 'c:/node_modules/file4.ts', result 'c:/node_modules/file4.ts'.",
- "======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4.ts'. ========"
+ "File 'c:/node_modules/file4/package.json' does not exist.",
+ "File 'c:/node_modules/file4/index.ts' exists - use it as a name resolution result.",
+ "Resolving real path for 'c:/node_modules/file4/index.ts', result 'c:/node_modules/file4/index.ts'.",
+ "======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.ts'. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types
index 2cdc99dcd8cab..b05f1154565a1 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types
@@ -61,7 +61,7 @@ export var y = 1;
export var z: number;
>z : number
-=== c:/node_modules/file4.ts ===
+=== c:/node_modules/file4/index.ts ===
export var z1 = 1;
>z1 : number
>1 : 1
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.js b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.js
index 9279af3793d68..75e79c8316d69 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.js
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.js
@@ -23,7 +23,7 @@ export let b: number;
//// [index.d.ts]
export let x: number;
-//// [module3.d.ts]
+//// [index.d.ts]
export let y: number;
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.symbols b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.symbols
index 5da6a8717cacf..e1db50212484c 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.symbols
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.symbols
@@ -50,8 +50,8 @@ export let b: number;
export let x: number;
>x : Symbol(x, Decl(index.d.ts, 0, 10))
-=== c:/node_modules/module3.d.ts ===
+=== c:/node_modules/module3/index.d.ts ===
export let y: number;
->y : Symbol(y, Decl(module3.d.ts, 0, 10))
+>y : Symbol(y, Decl(index.d.ts, 0, 10))
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json
index 2a5e7a47ee3c9..e68499e5316b1 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json
@@ -33,11 +33,12 @@
"Loading module 'module3' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.",
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
- "File 'c:/node_modules/module3.ts' does not exist.",
- "File 'c:/node_modules/module3.tsx' does not exist.",
- "File 'c:/node_modules/module3.d.ts' exists - use it as a name resolution result.",
- "Resolving real path for 'c:/node_modules/module3.d.ts', result 'c:/node_modules/module3.d.ts'.",
- "======== Module name 'module3' was successfully resolved to 'c:/node_modules/module3.d.ts'. ========",
+ "File 'c:/node_modules/module3/package.json' does not exist.",
+ "File 'c:/node_modules/module3/index.ts' does not exist.",
+ "File 'c:/node_modules/module3/index.tsx' does not exist.",
+ "File 'c:/node_modules/module3/index.d.ts' exists - use it as a name resolution result.",
+ "Resolving real path for 'c:/node_modules/module3/index.d.ts', result 'c:/node_modules/module3/index.d.ts'.",
+ "======== Module name 'module3' was successfully resolved to 'c:/node_modules/module3/index.d.ts'. ========",
"======== Resolving module 'module1' from 'c:/root/generated/src/project/file2.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'module1'.",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types
index 974f710b4c280..041aacc40501d 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types
@@ -56,7 +56,7 @@ export let b: number;
export let x: number;
>x : number
-=== c:/node_modules/module3.d.ts ===
+=== c:/node_modules/module3/index.d.ts ===
export let y: number;
>y : number
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelative.js b/tests/baselines/reference/requireOfJsonFileNonRelative.js
deleted file mode 100644
index c5827a943a7ab..0000000000000
--- a/tests/baselines/reference/requireOfJsonFileNonRelative.js
+++ /dev/null
@@ -1,33 +0,0 @@
-//// [tests/cases/compiler/requireOfJsonFileNonRelative.ts] ////
-
-//// [file1.ts]
-import b1 = require('b.json');
-let x = b1.a;
-import b2 = require('c.json');
-if (x) {
- let b = b2.b;
- x = (b1.b === b);
-}
-
-//// [b.json]
-{
- "a": true,
- "b": "hello"
-}
-
-//// [c.json]
-{
- "a": true,
- "b": "hello"
-}
-
-//// [out/file1.js]
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var b1 = require("b.json");
-var x = b1.a;
-var b2 = require("c.json");
-if (x) {
- var b = b2.b;
- x = (b1.b === b);
-}
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelative.symbols b/tests/baselines/reference/requireOfJsonFileNonRelative.symbols
deleted file mode 100644
index 4a38120620494..0000000000000
--- a/tests/baselines/reference/requireOfJsonFileNonRelative.symbols
+++ /dev/null
@@ -1,47 +0,0 @@
-=== /src/projects/file1.ts ===
-import b1 = require('b.json');
->b1 : Symbol(b1, Decl(file1.ts, 0, 0))
-
-let x = b1.a;
->x : Symbol(x, Decl(file1.ts, 1, 3))
->b1.a : Symbol("a", Decl(b.json, 0, 1))
->b1 : Symbol(b1, Decl(file1.ts, 0, 0))
->a : Symbol("a", Decl(b.json, 0, 1))
-
-import b2 = require('c.json');
->b2 : Symbol(b2, Decl(file1.ts, 1, 13))
-
-if (x) {
->x : Symbol(x, Decl(file1.ts, 1, 3))
-
- let b = b2.b;
->b : Symbol(b, Decl(file1.ts, 4, 7))
->b2.b : Symbol("b", Decl(c.json, 1, 14))
->b2 : Symbol(b2, Decl(file1.ts, 1, 13))
->b : Symbol("b", Decl(c.json, 1, 14))
-
- x = (b1.b === b);
->x : Symbol(x, Decl(file1.ts, 1, 3))
->b1.b : Symbol("b", Decl(b.json, 1, 14))
->b1 : Symbol(b1, Decl(file1.ts, 0, 0))
->b : Symbol("b", Decl(b.json, 1, 14))
->b : Symbol(b, Decl(file1.ts, 4, 7))
-}
-
-=== /src/projects/node_modules/b.json ===
-{
- "a": true,
->"a" : Symbol("a", Decl(b.json, 0, 1))
-
- "b": "hello"
->"b" : Symbol("b", Decl(b.json, 1, 14))
-}
-
-=== /src/node_modules/c.json ===
-{
- "a": true,
->"a" : Symbol("a", Decl(c.json, 0, 1))
-
- "b": "hello"
->"b" : Symbol("b", Decl(c.json, 1, 14))
-}
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelative.types b/tests/baselines/reference/requireOfJsonFileNonRelative.types
deleted file mode 100644
index 20c8fa75ba82d..0000000000000
--- a/tests/baselines/reference/requireOfJsonFileNonRelative.types
+++ /dev/null
@@ -1,58 +0,0 @@
-=== /src/projects/file1.ts ===
-import b1 = require('b.json');
->b1 : { a: boolean; b: string; }
-
-let x = b1.a;
->x : boolean
->b1.a : boolean
->b1 : { a: boolean; b: string; }
->a : boolean
-
-import b2 = require('c.json');
->b2 : { a: boolean; b: string; }
-
-if (x) {
->x : boolean
-
- let b = b2.b;
->b : string
->b2.b : string
->b2 : { a: boolean; b: string; }
->b : string
-
- x = (b1.b === b);
->x = (b1.b === b) : boolean
->x : boolean
->(b1.b === b) : boolean
->b1.b === b : boolean
->b1.b : string
->b1 : { a: boolean; b: string; }
->b : string
->b : string
-}
-
-=== /src/projects/node_modules/b.json ===
-{
->{ "a": true, "b": "hello"} : { a: boolean; b: string; }
-
- "a": true,
->"a" : boolean
->true : true
-
- "b": "hello"
->"b" : string
->"hello" : "hello"
-}
-
-=== /src/node_modules/c.json ===
-{
->{ "a": true, "b": "hello"} : { a: boolean; b: string; }
-
- "a": true,
->"a" : boolean
->true : true
-
- "b": "hello"
->"b" : string
->"hello" : "hello"
-}
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.js b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.js
index e773adf45857a..ba2ed909f8d4d 100644
--- a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.js
+++ b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.js
@@ -4,16 +4,17 @@
import f = require("f"); // should work to f.ts
let fnumber: number = f;
-//// [f.json]
+//// [index.json]
{
"a": true,
"b": "hello"
}
-//// [f.ts]
-export = 10;
+//// [index.ts]
+export = 10;
-//// [out/node_modules/f.js]
+
+//// [out/node_modules/f/index.js]
"use strict";
module.exports = 10;
//// [out/projects/file1.js]
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.symbols b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.symbols
index 0b46f3348e116..abadc64a13415 100644
--- a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.symbols
+++ b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.symbols
@@ -6,6 +6,7 @@ let fnumber: number = f;
>fnumber : Symbol(fnumber, Decl(file1.ts, 1, 3))
>f : Symbol(f, Decl(file1.ts, 0, 0))
-=== /src/node_modules/f.ts ===
+=== /src/node_modules/f/index.ts ===
export = 10;
+
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.types b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.types
index 44b49ab470fa1..de19c0e6e651c 100644
--- a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.types
+++ b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.types
@@ -6,6 +6,7 @@ let fnumber: number = f;
>fnumber : number
>f : 10
-=== /src/node_modules/f.ts ===
+=== /src/node_modules/f/index.ts ===
export = 10;
+
diff --git a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json
index 2a50df0adeead..049a0d50003b2 100644
--- a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json
+++ b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json
@@ -13,7 +13,6 @@
"Failed to resolve under condition 'import'.",
"Saw non-matching condition 'require'.",
"Exiting conditional exports.",
- "File '/node_modules/@types/foo.d.ts' does not exist.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"Entering conditional exports.",
"Matched 'exports' condition 'import'.",
@@ -26,9 +25,6 @@
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
- "File '/node_modules/foo.ts' does not exist.",
- "File '/node_modules/foo.tsx' does not exist.",
- "File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index.d.ts' that references '/node_modules/foo/index.d.ts'.",
@@ -65,9 +61,6 @@
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/bar/package.json' exists according to earlier cached lookups.",
- "File '/node_modules/bar.ts' does not exist.",
- "File '/node_modules/bar.tsx' does not exist.",
- "File '/node_modules/bar.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -87,7 +80,6 @@
"File '/node_modules/bar/index.tsx' does not exist.",
"File '/node_modules/bar/index.d.ts' does not exist.",
"File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups.",
- "File '/node_modules/@types/bar.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'.",
diff --git a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js
index aa9523ed48836..90ec0cf7d0a32 100644
--- a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js
+++ b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js
@@ -16,13 +16,10 @@ fs: {
"/fs.tsx",
"/fs.d.ts",
"/a/b/node_modules/@types/fs/package.json",
- "/a/b/node_modules/@types/fs.d.ts",
"/a/b/node_modules/@types/fs/index.d.ts",
"/a/node_modules/@types/fs/package.json",
- "/a/node_modules/@types/fs.d.ts",
"/a/node_modules/@types/fs/index.d.ts",
"/node_modules/@types/fs/package.json",
- "/node_modules/@types/fs.d.ts",
"/node_modules/@types/fs/index.d.ts",
"/a/b/fs.js",
"/a/b/fs.jsx",
@@ -53,13 +50,10 @@ File '/fs.ts' does not exist.
File '/fs.tsx' does not exist.
File '/fs.d.ts' does not exist.
File '/a/b/node_modules/@types/fs/package.json' does not exist.
-File '/a/b/node_modules/@types/fs.d.ts' does not exist.
File '/a/b/node_modules/@types/fs/index.d.ts' does not exist.
File '/a/node_modules/@types/fs/package.json' does not exist.
-File '/a/node_modules/@types/fs.d.ts' does not exist.
File '/a/node_modules/@types/fs/index.d.ts' does not exist.
File '/node_modules/@types/fs/package.json' does not exist.
-File '/node_modules/@types/fs.d.ts' does not exist.
File '/node_modules/@types/fs/index.d.ts' does not exist.
File '/a/b/fs.js' does not exist.
File '/a/b/fs.jsx' does not exist.
@@ -92,13 +86,10 @@ fs: {
"/fs.tsx",
"/fs.d.ts",
"/a/b/node_modules/@types/fs/package.json",
- "/a/b/node_modules/@types/fs.d.ts",
"/a/b/node_modules/@types/fs/index.d.ts",
"/a/node_modules/@types/fs/package.json",
- "/a/node_modules/@types/fs.d.ts",
"/a/node_modules/@types/fs/index.d.ts",
"/node_modules/@types/fs/package.json",
- "/node_modules/@types/fs.d.ts",
"/node_modules/@types/fs/index.d.ts",
"/a/b/fs.js",
"/a/b/fs.jsx",
@@ -142,13 +133,10 @@ fs: {
"/fs.tsx",
"/fs.d.ts",
"/a/b/node_modules/@types/fs/package.json",
- "/a/b/node_modules/@types/fs.d.ts",
"/a/b/node_modules/@types/fs/index.d.ts",
"/a/node_modules/@types/fs/package.json",
- "/a/node_modules/@types/fs.d.ts",
"/a/node_modules/@types/fs/index.d.ts",
"/node_modules/@types/fs/package.json",
- "/node_modules/@types/fs.d.ts",
"/node_modules/@types/fs/index.d.ts",
"/a/b/fs.js",
"/a/b/fs.jsx",
@@ -179,13 +167,10 @@ File '/fs.ts' does not exist.
File '/fs.tsx' does not exist.
File '/fs.d.ts' does not exist.
File '/a/b/node_modules/@types/fs/package.json' does not exist.
-File '/a/b/node_modules/@types/fs.d.ts' does not exist.
File '/a/b/node_modules/@types/fs/index.d.ts' does not exist.
File '/a/node_modules/@types/fs/package.json' does not exist.
-File '/a/node_modules/@types/fs.d.ts' does not exist.
File '/a/node_modules/@types/fs/index.d.ts' does not exist.
File '/node_modules/@types/fs/package.json' does not exist.
-File '/node_modules/@types/fs.d.ts' does not exist.
File '/node_modules/@types/fs/index.d.ts' does not exist.
File '/a/b/fs.js' does not exist.
File '/a/b/fs.jsx' does not exist.
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js b/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js
index a6ec1e0691cbd..6a80d3f0a573d 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js
@@ -51,9 +51,6 @@ b: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -122,9 +119,6 @@ b: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js
index b1af4711871a3..76baebb010ff1 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js
@@ -28,10 +28,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -82,10 +80,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js b/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js
index ccb5fb4735f0b..0ae3470808a7b 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js
@@ -28,10 +28,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js b/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js
index 01de928c937d2..e4a7f5d1e173c 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js
@@ -28,10 +28,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -73,10 +71,8 @@ typerefs1: {
"node_modules/@types/typerefs1/package.json",
"node_modules/@types/typerefs1/index.d.ts",
"node_modules/typerefs1/package.json",
- "node_modules/typerefs1.d.ts",
"node_modules/typerefs1/index.d.ts",
"node_modules/@types/typerefs1/package.json",
- "node_modules/@types/typerefs1.d.ts",
"node_modules/@types/typerefs1/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js b/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js
index e13a7eb95fd6c..59c5c0286b6ed 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js
@@ -28,10 +28,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -74,10 +72,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js b/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js
index 102fa9c3086ac..09cc31700ee40 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js
@@ -28,10 +28,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -74,10 +72,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js b/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js
index 1e7e9f8be90e0..4242f6314f31e 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js
@@ -28,10 +28,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -74,10 +72,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/config-path-changes.js b/tests/baselines/reference/reuseProgramStructure/config-path-changes.js
index 42f692e5bba13..c3c5c7f858696 100644
--- a/tests/baselines/reference/reuseProgramStructure/config-path-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/config-path-changes.js
@@ -28,10 +28,8 @@ typerefs: {
"/a/b/node_modules/@types/typerefs/package.json",
"/a/b/node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -74,10 +72,8 @@ typerefs: {
"/a/c/node_modules/@types/typerefs/package.json",
"/a/c/node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js
index a3e14fb994ab5..84a70a00b88ee 100644
--- a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js
+++ b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js
@@ -7,18 +7,12 @@ resolvedModules:
a: {
"failedLookupLocations": [
"node_modules/a/package.json",
- "node_modules/a.ts",
- "node_modules/a.tsx",
- "node_modules/a.d.ts",
"node_modules/a/index.ts",
"node_modules/a/index.tsx",
"node_modules/a/index.d.ts",
"node_modules/@types/a/package.json",
- "node_modules/@types/a.d.ts",
"node_modules/@types/a/index.d.ts",
"node_modules/a/package.json",
- "node_modules/a.js",
- "node_modules/a.jsx",
"node_modules/a/index.js",
"node_modules/a/index.jsx"
]
@@ -36,19 +30,13 @@ resolvedTypeReferenceDirectiveNames: undefined
Explicitly specified module resolution kind: 'Node10'.
Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.
File 'node_modules/a/package.json' does not exist.
-File 'node_modules/a.ts' does not exist.
-File 'node_modules/a.tsx' does not exist.
-File 'node_modules/a.d.ts' does not exist.
File 'node_modules/a/index.ts' does not exist.
File 'node_modules/a/index.tsx' does not exist.
File 'node_modules/a/index.d.ts' does not exist.
File 'node_modules/@types/a/package.json' does not exist.
-File 'node_modules/@types/a.d.ts' does not exist.
File 'node_modules/@types/a/index.d.ts' does not exist.
Loading module 'a' from 'node_modules' folder, target file types: JavaScript.
File 'node_modules/a/package.json' does not exist according to earlier cached lookups.
-File 'node_modules/a.js' does not exist.
-File 'node_modules/a.jsx' does not exist.
File 'node_modules/a/index.js' does not exist.
File 'node_modules/a/index.jsx' does not exist.
======== Module name 'a' was not resolved. ========
@@ -81,9 +69,6 @@ a: {
},
"failedLookupLocations": [
"node_modules/a/package.json",
- "node_modules/a.ts",
- "node_modules/a.tsx",
- "node_modules/a.d.ts",
"node_modules/a/index.ts",
"node_modules/a/index.tsx"
]
@@ -101,9 +86,6 @@ resolvedTypeReferenceDirectiveNames: undefined
Explicitly specified module resolution kind: 'Node10'.
Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.
File 'node_modules/a/package.json' does not exist.
-File 'node_modules/a.ts' does not exist.
-File 'node_modules/a.tsx' does not exist.
-File 'node_modules/a.d.ts' does not exist.
File 'node_modules/a/index.ts' does not exist.
File 'node_modules/a/index.tsx' does not exist.
File 'node_modules/a/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js b/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js
index 33f09a3917b7b..ef07d8bc0fd37 100644
--- a/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js
+++ b/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js
@@ -28,10 +28,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -81,10 +79,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js b/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js
index a31ec62764d03..5488186bc99cb 100644
--- a/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js
+++ b/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js
@@ -28,10 +28,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -74,10 +72,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js b/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js
index 2f2b2cc768930..114a7c15778a6 100644
--- a/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js
@@ -28,10 +28,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -74,10 +72,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js b/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js
index d6851e614b653..677710981a1ca 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js
@@ -24,9 +24,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -61,9 +58,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -87,9 +81,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -103,9 +94,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -144,9 +132,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -181,9 +166,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -207,9 +189,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -223,9 +202,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js
index f7a11625082e9..b14a4af9b5b34 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js
@@ -24,9 +24,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -61,9 +58,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -87,9 +81,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -103,9 +94,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -146,9 +134,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -183,9 +168,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -209,9 +191,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -225,9 +204,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js
index 83f61703a58aa..520cb41a560d0 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js
@@ -24,9 +24,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -61,9 +58,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -87,9 +81,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -103,9 +94,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -139,9 +127,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -176,9 +161,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -202,9 +184,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -218,9 +197,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js
index b22376b0f96a6..c49ae9bceb5e4 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js
@@ -24,9 +24,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -61,9 +58,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -87,9 +81,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -103,9 +94,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -144,9 +132,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -181,9 +166,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -207,9 +189,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -223,9 +202,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js
index d6851e614b653..677710981a1ca 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js
@@ -24,9 +24,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -61,9 +58,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -87,9 +81,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -103,9 +94,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -144,9 +132,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -181,9 +166,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -207,9 +189,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -223,9 +202,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js
index f7a11625082e9..b14a4af9b5b34 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js
@@ -24,9 +24,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -61,9 +58,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -87,9 +81,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -103,9 +94,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -146,9 +134,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -183,9 +168,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -209,9 +191,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -225,9 +204,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js
index 83f61703a58aa..520cb41a560d0 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js
@@ -24,9 +24,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -61,9 +58,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -87,9 +81,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -103,9 +94,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -139,9 +127,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -176,9 +161,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -202,9 +184,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -218,9 +197,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js
index b22376b0f96a6..c49ae9bceb5e4 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js
@@ -24,9 +24,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -61,9 +58,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -87,9 +81,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -103,9 +94,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -144,9 +132,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/a/node_modules/x.ts",
- "/node_modules/a/node_modules/x.tsx",
- "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -181,9 +166,6 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
- "/node_modules/b/node_modules/x.ts",
- "/node_modules/b/node_modules/x.tsx",
- "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -207,9 +189,6 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
- "/node_modules/a.ts",
- "/node_modules/a.tsx",
- "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -223,9 +202,6 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
- "/node_modules/b.ts",
- "/node_modules/b.tsx",
- "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js
index b9a3e2a4fc7ed..e315ea42fa395 100644
--- a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js
+++ b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js
@@ -101,7 +101,6 @@ c: {
"c.tsx",
"c.d.ts",
"node_modules/@types/c/package.json",
- "node_modules/@types/c.d.ts",
"node_modules/@types/c/index.d.ts",
"c.js",
"c.jsx"
diff --git a/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js b/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js
index 4f4075a6bdb92..6c46cdd04eca7 100644
--- a/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js
+++ b/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js
@@ -105,10 +105,8 @@ typedefs2: {
"/types/typedefs2/package.json",
"/types/typedefs2/index.d.ts",
"/node_modules/typedefs2/package.json",
- "/node_modules/typedefs2.d.ts",
"/node_modules/typedefs2/index.d.ts",
"/node_modules/@types/typedefs2/package.json",
- "/node_modules/@types/typedefs2.d.ts",
"/node_modules/@types/typedefs2/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js b/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js
index 563eddd3f9628..f48ca2e85538e 100644
--- a/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js
@@ -28,10 +28,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -76,10 +74,8 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
- "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
- "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/scopedPackages.trace.json b/tests/baselines/reference/scopedPackages.trace.json
index 6234794befcf5..e751597316b62 100644
--- a/tests/baselines/reference/scopedPackages.trace.json
+++ b/tests/baselines/reference/scopedPackages.trace.json
@@ -3,9 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@cow/boy' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/@cow/boy/package.json' does not exist.",
- "File '/node_modules/@cow/boy.ts' does not exist.",
- "File '/node_modules/@cow/boy.tsx' does not exist.",
- "File '/node_modules/@cow/boy.d.ts' does not exist.",
"File '/node_modules/@cow/boy/index.ts' does not exist.",
"File '/node_modules/@cow/boy/index.tsx' does not exist.",
"File '/node_modules/@cow/boy/index.d.ts' exists - use it as a name resolution result.",
@@ -16,7 +13,6 @@
"Loading module '@be/bop' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'be__bop'",
"File '/node_modules/@types/be__bop/package.json' does not exist.",
- "File '/node_modules/@types/be__bop.d.ts' does not exist.",
"File '/node_modules/@types/be__bop/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/be__bop/index.d.ts', result '/node_modules/@types/be__bop/index.d.ts'.",
"======== Module name '@be/bop' was successfully resolved to '/node_modules/@types/be__bop/index.d.ts'. ========",
diff --git a/tests/baselines/reference/scopedPackagesClassic.trace.json b/tests/baselines/reference/scopedPackagesClassic.trace.json
index 8269737774a34..ffb821243cdaf 100644
--- a/tests/baselines/reference/scopedPackagesClassic.trace.json
+++ b/tests/baselines/reference/scopedPackagesClassic.trace.json
@@ -3,7 +3,6 @@
"Explicitly specified module resolution kind: 'Classic'.",
"Scoped package detected, looking in 'see__saw'",
"File '/node_modules/@types/see__saw/package.json' does not exist.",
- "File '/node_modules/@types/see__saw.d.ts' does not exist.",
"File '/node_modules/@types/see__saw/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/see__saw/index.d.ts', result '/node_modules/@types/see__saw/index.d.ts'.",
"======== Module name '@see/saw' was successfully resolved to '/node_modules/@types/see__saw/index.d.ts'. ========"
diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js
index 352cf72e3a71a..0baa858fd12f4 100644
--- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js
+++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js
@@ -60,9 +60,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js
index ba7a283822ba1..57fe9ad512166 100644
--- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js
+++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js
@@ -60,9 +60,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js
index 646ecec302922..42722611bbd29 100644
--- a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js
+++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js
@@ -68,9 +68,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -312,9 +309,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -401,9 +395,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js
index c519f8e24b03b..b7a1bb1260527 100644
--- a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js
+++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js
@@ -308,9 +308,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -528,9 +525,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -660,9 +654,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js
index da6015197894b..ca5c4e1c4721a 100644
--- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js
+++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js
@@ -91,9 +91,6 @@ Output::
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -107,9 +104,6 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.d.ts' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.ts' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.tsx' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.d.ts' exists - use it as a name resolution result.
@@ -119,9 +113,6 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json'.
-File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.ts' does not exist.
-File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.tsx' does not exist.
-File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js
index 35775f1a5dab4..2dd8ca3d1c01c 100644
--- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js
+++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js
@@ -93,9 +93,6 @@ Output::
Module resolution kind is not specified, using 'Node10'.
Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json'.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -112,9 +109,6 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -130,9 +124,6 @@ Loading module 'typescript-fsa' from 'node_modules' folder, target file types: T
Directory '/user/username/projects/myProject/plugin-two/dist/commonjs/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myProject/plugin-two/dist/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json'.
-File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.ts' does not exist.
-File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.tsx' does not exist.
-File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js
index 3b599c0d394ae..81760087329b0 100644
--- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js
+++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js
@@ -93,9 +93,6 @@ Output::
Module resolution kind is not specified, using 'Node10'.
Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json'.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -112,9 +109,6 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -130,9 +124,6 @@ Loading module 'typescript-fsa' from 'node_modules' folder, target file types: T
Directory '/user/username/projects/myproject/plugin-two/dist/commonjs/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/plugin-two/dist/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json'.
-File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.ts' does not exist.
-File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.tsx' does not exist.
-File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js
index 8c264f124a2d5..84cc098148986 100644
--- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js
+++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js
@@ -91,9 +91,6 @@ Output::
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -107,9 +104,6 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist.
-File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.d.ts' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.ts' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.tsx' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.d.ts' exists - use it as a name resolution result.
@@ -119,9 +113,6 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json'.
-File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.ts' does not exist.
-File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.tsx' does not exist.
-File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js
index 20deca3dbd2fb..fc0a2af4f3b70 100644
--- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js
+++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js
@@ -50,9 +50,6 @@ File '/Users/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
Loading module 'yargs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration.
Directory '/Users/name/projects/web/src/node_modules' does not exist, skipping all lookups in it.
-File '/Users/name/projects/web/node_modules/yargs.ts' does not exist.
-File '/Users/name/projects/web/node_modules/yargs.tsx' does not exist.
-File '/Users/name/projects/web/node_modules/yargs.d.ts' does not exist.
Found 'package.json' at '/Users/name/projects/web/node_modules/@types/yargs/package.json'.
Entering conditional exports.
Matched 'exports' condition 'types'.
diff --git a/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js b/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js
index 827b58d73b992..2263ba7748ee1 100644
--- a/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js
+++ b/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js
@@ -96,7 +96,6 @@ File name '/user/username/projects/myproject/node_modules/pkg1/require.js' has a
File '/user/username/projects/myproject/node_modules/pkg1/require.d.ts' does not exist.
Failed to resolve under condition 'require'.
Exiting conditional exports.
-File '/user/username/projects/myproject/node_modules/@types/pkg1.d.ts' does not exist.
Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/node_modules' does not exist, skipping all lookups in it.
Directory '/user/node_modules' does not exist, skipping all lookups in it.
diff --git a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js
index b050db421d4aa..a1f2d6e6e788a 100644
--- a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js
+++ b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js
@@ -47,9 +47,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -156,9 +153,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -247,9 +241,6 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
-File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
-File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js
index f7d4ae6493f28..bda2095097d22 100644
--- a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js
+++ b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js
@@ -15,7 +15,7 @@ interface Array { length: number; [n: number]: T; }
//// [/a/b/file1.ts]
import { T } from "module1";
-//// [/a/b/node_modules/module1.ts]
+//// [/a/b/node_modules/module1/index.ts]
export interface T {}
//// [/a/module1.ts]
@@ -33,9 +33,9 @@ export interface T {}
/a/lib/tsc.js -w -p /a/b/tsconfig.json
Output::
>> Screen clear
-[[90m12:00:21 AM[0m] Starting compilation in watch mode...
+[[90m12:00:23 AM[0m] Starting compilation in watch mode...
-[[90m12:00:24 AM[0m] Found 0 errors. Watching for file changes.
+[[90m12:00:26 AM[0m] Found 0 errors. Watching for file changes.
@@ -44,17 +44,17 @@ Program options: {"moduleResolution":2,"watch":true,"project":"/a/b/tsconfig.jso
Program structureReused: Not
Program files::
/a/lib/lib.d.ts
-/a/b/node_modules/module1.ts
+/a/b/node_modules/module1/index.ts
/a/b/file1.ts
Semantic diagnostics in builder refreshed for::
/a/lib/lib.d.ts
-/a/b/node_modules/module1.ts
+/a/b/node_modules/module1/index.ts
/a/b/file1.ts
Shape signatures in builder refreshed for::
/a/lib/lib.d.ts (used version)
-/a/b/node_modules/module1.ts (used version)
+/a/b/node_modules/module1/index.ts (used version)
/a/b/file1.ts (used version)
PolledWatches::
@@ -66,7 +66,7 @@ FsWatches::
{}
/a/b/file1.ts:
{}
-/a/b/node_modules/module1.ts:
+/a/b/node_modules/module1/index.ts:
{}
/a/lib/lib.d.ts:
{}
@@ -97,9 +97,9 @@ Input::
Output::
>> Screen clear
-[[90m12:00:28 AM[0m] File change detected. Starting incremental compilation...
+[[90m12:00:30 AM[0m] File change detected. Starting incremental compilation...
-[[90m12:00:34 AM[0m] Found 0 errors. Watching for file changes.
+[[90m12:00:36 AM[0m] Found 0 errors. Watching for file changes.
diff --git a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js
index f05f093e47998..241e4e1d7046b 100644
--- a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js
+++ b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js
@@ -49,9 +49,6 @@ FileWatcher:: Added:: WatchInfo: /src/project/fileWithImports.ts 250 undefined S
Module resolution kind is not specified, using 'Node10'.
Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/src/project/node_modules/pkg0/package.json' does not exist.
-File '/src/project/node_modules/pkg0.ts' does not exist.
-File '/src/project/node_modules/pkg0.tsx' does not exist.
-File '/src/project/node_modules/pkg0.d.ts' does not exist.
File '/src/project/node_modules/pkg0/index.ts' does not exist.
File '/src/project/node_modules/pkg0/index.tsx' does not exist.
File '/src/project/node_modules/pkg0/index.d.ts' exists - use it as a name resolution result.
@@ -60,15 +57,10 @@ Resolving real path for '/src/project/node_modules/pkg0/index.d.ts', result '/sr
======== Resolving module 'pkg1' from '/src/project/fileWithImports.ts'. ========
Module resolution kind is not specified, using 'Node10'.
Loading module 'pkg1' from 'node_modules' folder, target file types: TypeScript, Declaration.
-File '/src/project/node_modules/pkg1.ts' does not exist.
-File '/src/project/node_modules/pkg1.tsx' does not exist.
-File '/src/project/node_modules/pkg1.d.ts' does not exist.
Directory '/src/project/node_modules/@types' does not exist, skipping all lookups in it.
Directory '/src/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
Loading module 'pkg1' from 'node_modules' folder, target file types: JavaScript.
-File '/src/project/node_modules/pkg1.js' does not exist.
-File '/src/project/node_modules/pkg1.jsx' does not exist.
Directory '/src/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
======== Module name 'pkg1' was not resolved. ========
@@ -78,14 +70,12 @@ FileWatcher:: Added:: WatchInfo: /src/project/fileWithTypeRefs.ts 250 undefined
Root directory cannot be determined, skipping primary search paths.
Looking up in 'node_modules' folder, initial location '/src/project'.
File '/src/project/node_modules/pkg2/package.json' does not exist.
-File '/src/project/node_modules/pkg2.d.ts' does not exist.
File '/src/project/node_modules/pkg2/index.d.ts' exists - use it as a name resolution result.
Resolving real path for '/src/project/node_modules/pkg2/index.d.ts', result '/src/project/node_modules/pkg2/index.d.ts'.
======== Type reference directive 'pkg2' was successfully resolved to '/src/project/node_modules/pkg2/index.d.ts', primary: false. ========
======== Resolving type reference directive 'pkg3', containing file '/src/project/fileWithTypeRefs.ts', root directory not set. ========
Root directory cannot be determined, skipping primary search paths.
Looking up in 'node_modules' folder, initial location '/src/project'.
-File '/src/project/node_modules/pkg3.d.ts' does not exist.
Directory '/src/project/node_modules/@types' does not exist, skipping all lookups in it.
Directory '/src/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -352,9 +342,6 @@ Reusing resolution of module 'pkg0' from '/src/project/fileWithImports.ts' of ol
Module resolution kind is not specified, using 'Node10'.
Loading module 'pkg1' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/src/project/node_modules/pkg1/package.json' does not exist.
-File '/src/project/node_modules/pkg1.ts' does not exist.
-File '/src/project/node_modules/pkg1.tsx' does not exist.
-File '/src/project/node_modules/pkg1.d.ts' does not exist.
File '/src/project/node_modules/pkg1/index.ts' does not exist.
File '/src/project/node_modules/pkg1/index.tsx' does not exist.
File '/src/project/node_modules/pkg1/index.d.ts' exists - use it as a name resolution result.
@@ -590,7 +577,6 @@ Reusing resolution of type reference directive 'pkg2' from '/src/project/fileWit
Root directory cannot be determined, skipping primary search paths.
Looking up in 'node_modules' folder, initial location '/src/project'.
File '/src/project/node_modules/pkg3/package.json' does not exist.
-File '/src/project/node_modules/pkg3.d.ts' does not exist.
File '/src/project/node_modules/pkg3/index.d.ts' exists - use it as a name resolution result.
Resolving real path for '/src/project/node_modules/pkg3/index.d.ts', result '/src/project/node_modules/pkg3/index.d.ts'.
======== Type reference directive 'pkg3' was successfully resolved to '/src/project/node_modules/pkg3/index.d.ts', primary: false. ========
diff --git a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js
index 68ddf1b43970e..ed6a34306f1e7 100644
--- a/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js
+++ b/tests/baselines/reference/tscWatch/resolutionCache/when-types-in-compiler-option-are-global-and-installed-at-later-point.js
@@ -130,8 +130,6 @@ FsWatches::
FsWatchesRecursive::
/user/username/projects/myproject:
{}
-/user/username/projects/myproject/node_modules:
- {}
exitCode:: ExitStatus.undefined
@@ -160,8 +158,6 @@ FsWatches::
FsWatchesRecursive::
/user/username/projects/myproject:
{}
-/user/username/projects/myproject/node_modules:
- {}
exitCode:: ExitStatus.undefined
diff --git a/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js b/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js
index dec22bd7b207c..36920cb6e3347 100644
--- a/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js
+++ b/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js
@@ -84,8 +84,6 @@ FsWatches::
FsWatchesRecursive::
/user/username/projects/myproject/linked-package:
{}
-/user/username/projects/myproject/main/node_modules:
- {}
exitCode:: ExitStatus.undefined
diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js
index 37d0cb8478d0e..7c769f7a1bc9e 100644
--- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js
+++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js
@@ -45,9 +45,6 @@ Module resolution kind is not specified, using 'Node10'.
Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/user/projects/myproject/src/node_modules' does not exist, skipping all lookups in it.
File '/home/user/projects/myproject/node_modules/a/package.json' does not exist.
-File '/home/user/projects/myproject/node_modules/a.ts' does not exist.
-File '/home/user/projects/myproject/node_modules/a.tsx' does not exist.
-File '/home/user/projects/myproject/node_modules/a.d.ts' does not exist.
File '/home/user/projects/myproject/node_modules/a/index.ts' does not exist.
File '/home/user/projects/myproject/node_modules/a/index.tsx' does not exist.
File '/home/user/projects/myproject/node_modules/a/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js
index 84ad070d7e772..4b16817acba36 100644
--- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js
+++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js
@@ -267,20 +267,18 @@ Info 19 [00:01:30.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 20 [00:01:31.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info 21 [00:01:32.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:33.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
-Info 23 [00:01:34.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:35.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:36.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution
-Info 26 [00:01:37.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 27 [00:01:38.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 28 [00:01:39.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 29 [00:01:40.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 30 [00:01:41.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 31 [00:01:42.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 32 [00:01:43.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 33 [00:01:44.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 34 [00:01:45.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/app/src/program/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 35 [00:01:46.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
-Info 36 [00:01:47.000] Files (4)
+Info 23 [00:01:34.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:35.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 25 [00:01:36.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 26 [00:01:37.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 27 [00:01:38.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 28 [00:01:39.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 29 [00:01:40.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 30 [00:01:41.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 31 [00:01:42.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 32 [00:01:43.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/app/src/program/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 33 [00:01:44.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
+Info 34 [00:01:45.000] Files (4)
/a/lib/lib.d.ts
/user/username/projects/myproject/shared/bld/library/index.d.ts
/user/username/projects/myproject/app/src/program/bar.ts
@@ -296,24 +294,24 @@ Info 36 [00:01:47.000] Files (4)
index.ts
Matched by default include pattern '**/*'
-Info 37 [00:01:48.000] -----------------------------------------------
-Info 38 [00:01:49.000] Search path: /user/username/projects/myproject/app/src/program
-Info 39 [00:01:50.000] For info: /user/username/projects/myproject/app/src/program/tsconfig.json :: Config file name: /user/username/projects/myproject/tsconfig.json
-Info 40 [00:01:51.000] Creating configuration project /user/username/projects/myproject/tsconfig.json
-Info 41 [00:01:52.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file
-Info 42 [00:01:53.000] Search path: /user/username/projects/myproject
-Info 43 [00:01:54.000] For info: /user/username/projects/myproject/tsconfig.json :: No config files found.
-Info 44 [00:01:55.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
-Info 44 [00:01:56.000] Files (4)
-
-Info 44 [00:01:57.000] -----------------------------------------------
-Info 44 [00:01:58.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 44 [00:01:59.000] Files (0) InitialLoadPending
-
-Info 44 [00:02:00.000] -----------------------------------------------
-Info 44 [00:02:01.000] Open files:
-Info 44 [00:02:02.000] FileName: /user/username/projects/myproject/app/src/program/index.ts ProjectRootPath: undefined
-Info 44 [00:02:03.000] Projects: /user/username/projects/myproject/app/src/program/tsconfig.json
+Info 35 [00:01:46.000] -----------------------------------------------
+Info 36 [00:01:47.000] Search path: /user/username/projects/myproject/app/src/program
+Info 37 [00:01:48.000] For info: /user/username/projects/myproject/app/src/program/tsconfig.json :: Config file name: /user/username/projects/myproject/tsconfig.json
+Info 38 [00:01:49.000] Creating configuration project /user/username/projects/myproject/tsconfig.json
+Info 39 [00:01:50.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file
+Info 40 [00:01:51.000] Search path: /user/username/projects/myproject
+Info 41 [00:01:52.000] For info: /user/username/projects/myproject/tsconfig.json :: No config files found.
+Info 42 [00:01:53.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
+Info 42 [00:01:54.000] Files (4)
+
+Info 42 [00:01:55.000] -----------------------------------------------
+Info 42 [00:01:56.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 42 [00:01:57.000] Files (0) InitialLoadPending
+
+Info 42 [00:01:58.000] -----------------------------------------------
+Info 42 [00:01:59.000] Open files:
+Info 42 [00:02:00.000] FileName: /user/username/projects/myproject/app/src/program/index.ts ProjectRootPath: undefined
+Info 42 [00:02:01.000] Projects: /user/username/projects/myproject/app/src/program/tsconfig.json
After request
PolledWatches::
@@ -353,14 +351,12 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/shared/src/library:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 44 [00:02:04.000] response:
+Info 42 [00:02:02.000] response:
{
"responseRequired": false
}
-Info 45 [00:02:05.000] request:
+Info 43 [00:02:03.000] request:
{
"command": "getCodeFixes",
"arguments": {
@@ -415,11 +411,9 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/shared/src/library:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 46 [00:02:06.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 47 [00:02:07.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 44 [00:02:04.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 45 [00:02:05.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
After request
PolledWatches::
@@ -462,7 +456,7 @@ FsWatchesRecursive::
/user/username/projects/myproject/node_modules:
{}
-Info 48 [00:02:08.000] response:
+Info 46 [00:02:06.000] response:
{
"response": [
{
diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js
index d4b1acb0ed249..92a4e21ec33f1 100644
--- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js
+++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js
@@ -266,20 +266,18 @@ Info 19 [00:01:30.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 20 [00:01:31.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info 21 [00:01:32.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:33.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
-Info 23 [00:01:34.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:35.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:36.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution
-Info 26 [00:01:37.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 27 [00:01:38.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 28 [00:01:39.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 29 [00:01:40.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 30 [00:01:41.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 31 [00:01:42.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 32 [00:01:43.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 33 [00:01:44.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 34 [00:01:45.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/app/src/program/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 35 [00:01:46.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
-Info 36 [00:01:47.000] Files (4)
+Info 23 [00:01:34.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:35.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 25 [00:01:36.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 26 [00:01:37.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 27 [00:01:38.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 28 [00:01:39.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 29 [00:01:40.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 30 [00:01:41.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 31 [00:01:42.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 32 [00:01:43.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/app/src/program/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 33 [00:01:44.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
+Info 34 [00:01:45.000] Files (4)
/a/lib/lib.d.ts
/user/username/projects/myproject/shared/src/library/index.ts
/user/username/projects/myproject/app/src/program/bar.ts
@@ -295,24 +293,24 @@ Info 36 [00:01:47.000] Files (4)
index.ts
Matched by default include pattern '**/*'
-Info 37 [00:01:48.000] -----------------------------------------------
-Info 38 [00:01:49.000] Search path: /user/username/projects/myproject/app/src/program
-Info 39 [00:01:50.000] For info: /user/username/projects/myproject/app/src/program/tsconfig.json :: Config file name: /user/username/projects/myproject/tsconfig.json
-Info 40 [00:01:51.000] Creating configuration project /user/username/projects/myproject/tsconfig.json
-Info 41 [00:01:52.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file
-Info 42 [00:01:53.000] Search path: /user/username/projects/myproject
-Info 43 [00:01:54.000] For info: /user/username/projects/myproject/tsconfig.json :: No config files found.
-Info 44 [00:01:55.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
-Info 44 [00:01:56.000] Files (4)
-
-Info 44 [00:01:57.000] -----------------------------------------------
-Info 44 [00:01:58.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 44 [00:01:59.000] Files (0) InitialLoadPending
-
-Info 44 [00:02:00.000] -----------------------------------------------
-Info 44 [00:02:01.000] Open files:
-Info 44 [00:02:02.000] FileName: /user/username/projects/myproject/app/src/program/index.ts ProjectRootPath: undefined
-Info 44 [00:02:03.000] Projects: /user/username/projects/myproject/app/src/program/tsconfig.json
+Info 35 [00:01:46.000] -----------------------------------------------
+Info 36 [00:01:47.000] Search path: /user/username/projects/myproject/app/src/program
+Info 37 [00:01:48.000] For info: /user/username/projects/myproject/app/src/program/tsconfig.json :: Config file name: /user/username/projects/myproject/tsconfig.json
+Info 38 [00:01:49.000] Creating configuration project /user/username/projects/myproject/tsconfig.json
+Info 39 [00:01:50.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file
+Info 40 [00:01:51.000] Search path: /user/username/projects/myproject
+Info 41 [00:01:52.000] For info: /user/username/projects/myproject/tsconfig.json :: No config files found.
+Info 42 [00:01:53.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
+Info 42 [00:01:54.000] Files (4)
+
+Info 42 [00:01:55.000] -----------------------------------------------
+Info 42 [00:01:56.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 42 [00:01:57.000] Files (0) InitialLoadPending
+
+Info 42 [00:01:58.000] -----------------------------------------------
+Info 42 [00:01:59.000] Open files:
+Info 42 [00:02:00.000] FileName: /user/username/projects/myproject/app/src/program/index.ts ProjectRootPath: undefined
+Info 42 [00:02:01.000] Projects: /user/username/projects/myproject/app/src/program/tsconfig.json
After request
PolledWatches::
@@ -352,14 +350,12 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/shared/src/library:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 44 [00:02:04.000] response:
+Info 42 [00:02:02.000] response:
{
"responseRequired": false
}
-Info 45 [00:02:05.000] request:
+Info 43 [00:02:03.000] request:
{
"command": "getCodeFixes",
"arguments": {
@@ -414,11 +410,9 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/shared/src/library:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 46 [00:02:06.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 47 [00:02:07.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 44 [00:02:04.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 45 [00:02:05.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
After request
PolledWatches::
@@ -461,7 +455,7 @@ FsWatchesRecursive::
/user/username/projects/myproject/node_modules:
{}
-Info 48 [00:02:08.000] response:
+Info 46 [00:02:06.000] response:
{
"response": [
{
diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js
index fa7837b251728..eb92d1157b195 100644
--- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js
+++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js
@@ -97,20 +97,18 @@ Info 19 [00:01:06.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 20 [00:01:07.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info 21 [00:01:08.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:09.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
-Info 23 [00:01:10.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:11.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:12.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution
-Info 26 [00:01:13.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 27 [00:01:14.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 28 [00:01:15.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 29 [00:01:16.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 30 [00:01:17.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 31 [00:01:18.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 32 [00:01:19.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 33 [00:01:20.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
-Info 34 [00:01:21.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/app/src/program/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 35 [00:01:22.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
-Info 36 [00:01:23.000] Files (4)
+Info 23 [00:01:10.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:11.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 25 [00:01:12.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 26 [00:01:13.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 27 [00:01:14.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 28 [00:01:15.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 29 [00:01:16.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 30 [00:01:17.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 31 [00:01:18.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
+Info 32 [00:01:19.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/app/src/program/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 33 [00:01:20.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
+Info 34 [00:01:21.000] Files (4)
/a/lib/lib.d.ts
/user/username/projects/myproject/shared/src/library/index.ts
/user/username/projects/myproject/app/src/program/bar.ts
@@ -126,24 +124,24 @@ Info 36 [00:01:23.000] Files (4)
index.ts
Matched by default include pattern '**/*'
-Info 37 [00:01:24.000] -----------------------------------------------
-Info 38 [00:01:25.000] Search path: /user/username/projects/myproject/app/src/program
-Info 39 [00:01:26.000] For info: /user/username/projects/myproject/app/src/program/tsconfig.json :: Config file name: /user/username/projects/myproject/tsconfig.json
-Info 40 [00:01:27.000] Creating configuration project /user/username/projects/myproject/tsconfig.json
-Info 41 [00:01:28.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file
-Info 42 [00:01:29.000] Search path: /user/username/projects/myproject
-Info 43 [00:01:30.000] For info: /user/username/projects/myproject/tsconfig.json :: No config files found.
-Info 44 [00:01:31.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
-Info 44 [00:01:32.000] Files (4)
+Info 35 [00:01:22.000] -----------------------------------------------
+Info 36 [00:01:23.000] Search path: /user/username/projects/myproject/app/src/program
+Info 37 [00:01:24.000] For info: /user/username/projects/myproject/app/src/program/tsconfig.json :: Config file name: /user/username/projects/myproject/tsconfig.json
+Info 38 [00:01:25.000] Creating configuration project /user/username/projects/myproject/tsconfig.json
+Info 39 [00:01:26.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file
+Info 40 [00:01:27.000] Search path: /user/username/projects/myproject
+Info 41 [00:01:28.000] For info: /user/username/projects/myproject/tsconfig.json :: No config files found.
+Info 42 [00:01:29.000] Project '/user/username/projects/myproject/app/src/program/tsconfig.json' (Configured)
+Info 42 [00:01:30.000] Files (4)
-Info 44 [00:01:33.000] -----------------------------------------------
-Info 44 [00:01:34.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 44 [00:01:35.000] Files (0) InitialLoadPending
+Info 42 [00:01:31.000] -----------------------------------------------
+Info 42 [00:01:32.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 42 [00:01:33.000] Files (0) InitialLoadPending
-Info 44 [00:01:36.000] -----------------------------------------------
-Info 44 [00:01:37.000] Open files:
-Info 44 [00:01:38.000] FileName: /user/username/projects/myproject/app/src/program/index.ts ProjectRootPath: undefined
-Info 44 [00:01:39.000] Projects: /user/username/projects/myproject/app/src/program/tsconfig.json
+Info 42 [00:01:34.000] -----------------------------------------------
+Info 42 [00:01:35.000] Open files:
+Info 42 [00:01:36.000] FileName: /user/username/projects/myproject/app/src/program/index.ts ProjectRootPath: undefined
+Info 42 [00:01:37.000] Projects: /user/username/projects/myproject/app/src/program/tsconfig.json
After request
PolledWatches::
@@ -183,14 +181,12 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/shared/src/library:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 44 [00:01:40.000] response:
+Info 42 [00:01:38.000] response:
{
"responseRequired": false
}
-Info 45 [00:01:41.000] request:
+Info 43 [00:01:39.000] request:
{
"command": "getCodeFixes",
"arguments": {
@@ -245,11 +241,9 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/shared/src/library:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 46 [00:01:42.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 47 [00:01:43.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 44 [00:01:40.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 45 [00:01:41.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
After request
PolledWatches::
@@ -292,7 +286,7 @@ FsWatchesRecursive::
/user/username/projects/myproject/node_modules:
{}
-Info 48 [00:01:44.000] response:
+Info 46 [00:01:42.000] response:
{
"response": [
{
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js
index 0a18c7089971b..8d5e5ebaaa81a 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js
@@ -282,9 +282,9 @@ Info 20 [00:01:31.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 21 [00:01:32.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:33.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 23 [00:01:34.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:35.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:36.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 26 [00:01:37.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:35.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 25 [00:01:36.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info 26 [00:01:37.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 27 [00:01:38.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 28 [00:01:39.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 29 [00:01:40.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js
index 8a560d5bec9e1..65153a121a952 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js
@@ -280,9 +280,9 @@ Info 20 [00:01:31.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 21 [00:01:32.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:33.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 23 [00:01:34.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:35.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:36.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 26 [00:01:37.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:35.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 25 [00:01:36.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info 26 [00:01:37.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 27 [00:01:38.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 28 [00:01:39.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 29 [00:01:40.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js
index a9f289e5136d1..517f637df853e 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js
@@ -104,9 +104,9 @@ Info 20 [00:01:03.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 21 [00:01:04.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:05.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 23 [00:01:06.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:07.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:08.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 26 [00:01:09.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:07.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 25 [00:01:08.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info 26 [00:01:09.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 27 [00:01:10.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 28 [00:01:11.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 29 [00:01:12.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js
index afce374791f77..03d1692a715ea 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js
@@ -102,9 +102,9 @@ Info 20 [00:01:03.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 21 [00:01:04.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:05.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 23 [00:01:06.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:07.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:08.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 26 [00:01:09.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:07.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 25 [00:01:08.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info 26 [00:01:09.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 27 [00:01:10.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 28 [00:01:11.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 29 [00:01:12.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js
index dcf7afca16b9b..89a49140764ad 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js
@@ -282,9 +282,9 @@ Info 20 [00:01:33.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 21 [00:01:34.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:35.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 23 [00:01:36.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:37.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:38.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 26 [00:01:39.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:37.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 25 [00:01:38.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info 26 [00:01:39.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 27 [00:01:40.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 28 [00:01:41.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 29 [00:01:42.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js
index 73168d1dda41f..474b5fc8c3ee3 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js
@@ -280,9 +280,9 @@ Info 20 [00:01:33.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 21 [00:01:34.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:35.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 23 [00:01:36.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:37.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:38.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 26 [00:01:39.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:37.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 25 [00:01:38.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info 26 [00:01:39.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 27 [00:01:40.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 28 [00:01:41.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 29 [00:01:42.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js
index 46199efe62319..0c11f66f65903 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js
@@ -104,9 +104,9 @@ Info 20 [00:01:05.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 21 [00:01:06.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:07.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 23 [00:01:08.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:09.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:10.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 26 [00:01:11.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:09.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 25 [00:01:10.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info 26 [00:01:11.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 27 [00:01:12.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 28 [00:01:13.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 29 [00:01:14.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js
index b62c035e7a25e..b94df3cd844c8 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js
@@ -102,9 +102,9 @@ Info 20 [00:01:05.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 21 [00:01:06.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 22 [00:01:07.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 23 [00:01:08.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 24 [00:01:09.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 25 [00:01:10.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info 26 [00:01:11.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 24 [00:01:09.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
+Info 25 [00:01:10.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info 26 [00:01:11.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info 27 [00:01:12.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 28 [00:01:13.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info 29 [00:01:14.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js
index 76c580f193452..5d2a95a6021f1 100644
--- a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js
+++ b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js
@@ -111,18 +111,16 @@ Info 22 [00:01:05.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info 23 [00:01:06.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations
Info 24 [00:01:07.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations
Info 25 [00:01:08.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations
-Info 26 [00:01:09.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations
-Info 27 [00:01:10.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations
-Info 28 [00:01:11.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/emit-composite/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution
-Info 29 [00:01:12.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
-Info 30 [00:01:13.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
-Info 31 [00:01:14.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
-Info 32 [00:01:15.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
-Info 33 [00:01:16.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
-Info 34 [00:01:17.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
-Info 35 [00:01:18.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/packages/consumer/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 36 [00:01:19.000] Project '/user/username/projects/myproject/packages/consumer/tsconfig.json' (Configured)
-Info 37 [00:01:20.000] Files (4)
+Info 26 [00:01:09.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/emit-composite/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution
+Info 27 [00:01:10.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
+Info 28 [00:01:11.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
+Info 29 [00:01:12.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
+Info 30 [00:01:13.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
+Info 31 [00:01:14.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
+Info 32 [00:01:15.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
+Info 33 [00:01:16.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/packages/consumer/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 34 [00:01:17.000] Project '/user/username/projects/myproject/packages/consumer/tsconfig.json' (Configured)
+Info 35 [00:01:18.000] Files (4)
/a/lib/lib.d.ts
/user/username/projects/myproject/packages/emit-composite/src/testModule.js
/user/username/projects/myproject/packages/emit-composite/src/index.js
@@ -138,20 +136,20 @@ Info 37 [00:01:20.000] Files (4)
src/index.ts
Matched by include pattern 'src' in 'tsconfig.json'
-Info 38 [00:01:21.000] -----------------------------------------------
-Info 39 [00:01:22.000] event:
+Info 36 [00:01:19.000] -----------------------------------------------
+Info 37 [00:01:20.000] event:
{"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/user/username/projects/myproject/packages/consumer/tsconfig.json"}}
-Info 40 [00:01:23.000] event:
+Info 38 [00:01:21.000] event:
{"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"f6f890b868ee990140855d3b392e7be25cc511c224e307bfaf73c9f27a024a79","fileStats":{"js":2,"jsSize":203,"jsx":0,"jsxSize":0,"ts":1,"tsSize":143,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":true,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}}
-Info 41 [00:01:24.000] event:
+Info 39 [00:01:22.000] event:
{"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/user/username/projects/myproject/packages/consumer/src/index.ts","configFile":"/user/username/projects/myproject/packages/consumer/tsconfig.json","diagnostics":[]}}
-Info 42 [00:01:25.000] Project '/user/username/projects/myproject/packages/consumer/tsconfig.json' (Configured)
-Info 42 [00:01:26.000] Files (4)
+Info 40 [00:01:23.000] Project '/user/username/projects/myproject/packages/consumer/tsconfig.json' (Configured)
+Info 40 [00:01:24.000] Files (4)
-Info 42 [00:01:27.000] -----------------------------------------------
-Info 42 [00:01:28.000] Open files:
-Info 42 [00:01:29.000] FileName: /user/username/projects/myproject/packages/consumer/src/index.ts ProjectRootPath: undefined
-Info 42 [00:01:30.000] Projects: /user/username/projects/myproject/packages/consumer/tsconfig.json
+Info 40 [00:01:25.000] -----------------------------------------------
+Info 40 [00:01:26.000] Open files:
+Info 40 [00:01:27.000] FileName: /user/username/projects/myproject/packages/consumer/src/index.ts ProjectRootPath: undefined
+Info 40 [00:01:28.000] Projects: /user/username/projects/myproject/packages/consumer/tsconfig.json
After request
PolledWatches::
@@ -187,14 +185,12 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/packages/emit-composite:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 42 [00:01:31.000] response:
+Info 40 [00:01:29.000] response:
{
"responseRequired": false
}
-Info 43 [00:01:32.000] request:
+Info 41 [00:01:30.000] request:
{
"command": "geterr",
"arguments": {
@@ -241,8 +237,6 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/packages/emit-composite:
{}
-/user/username/projects/myproject/node_modules:
- {}
After request
@@ -279,10 +273,8 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/packages/emit-composite:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 44 [00:01:33.000] response:
+Info 42 [00:01:31.000] response:
{
"responseRequired": false
}
@@ -321,10 +313,8 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/packages/emit-composite:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 45 [00:01:34.000] event:
+Info 43 [00:01:32.000] event:
{"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/projects/myproject/packages/consumer/src/index.ts","diagnostics":[]}}
After checking timeout queue length (1) and running
@@ -361,8 +351,6 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/packages/emit-composite:
{}
-/user/username/projects/myproject/node_modules:
- {}
Before running immediate callbacks and checking length (1)
@@ -399,10 +387,8 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/packages/emit-composite:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 46 [00:01:35.000] event:
+Info 44 [00:01:33.000] event:
{"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/user/username/projects/myproject/packages/consumer/src/index.ts","diagnostics":[{"start":{"line":3,"offset":42},"end":{"line":3,"offset":44},"text":"Expected 1 arguments, but got 2.","code":2554,"category":"error"}]}}
Before running immediate callbacks and checking length (1)
@@ -439,8 +425,6 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/packages/emit-composite:
{}
-/user/username/projects/myproject/node_modules:
- {}
Before running immediate callbacks and checking length (1)
@@ -477,12 +461,10 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/packages/emit-composite:
{}
-/user/username/projects/myproject/node_modules:
- {}
-Info 47 [00:01:36.000] event:
+Info 45 [00:01:34.000] event:
{"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/user/username/projects/myproject/packages/consumer/src/index.ts","diagnostics":[]}}
-Info 48 [00:01:37.000] event:
+Info 46 [00:01:35.000] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":2}}
Before running immediate callbacks and checking length (1)
@@ -519,5 +501,3 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/packages/emit-composite:
{}
-/user/username/projects/myproject/node_modules:
- {}
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js
index a207727133b84..a2f47b6de28ee 100644
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js
+++ b/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js
@@ -169,7 +169,7 @@ FsWatchesRecursive::
{}
Before running timeout callbacks
-//// [/a/b/node_modules/file2.d.ts]
+//// [/a/b/node_modules/file2/index.d.ts]
export class a { }
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js
index 200c178a9f5d7..a2ff131a88b2c 100644
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js
+++ b/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js
@@ -198,11 +198,14 @@ Info 38 [00:01:31.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/u
Info 39 [00:01:32.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info 40 [00:01:33.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
Info 41 [00:01:34.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 42 [00:01:37.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 42 [00:01:37.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info 43 [00:01:38.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 44 [00:01:39.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 44 [00:01:39.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 45 [00:01:42.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 46 [00:01:43.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
+Info 47 [00:01:44.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Before running timeout callbacks
-//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts]
+//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts]
export class a { }
@@ -228,9 +231,9 @@ FsWatchesRecursive::
/user/username/rootfolder/otherfolder/a/b/node_modules:
{}
-Info 45 [00:01:40.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
-Info 46 [00:01:41.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 47 [00:01:42.000] Scheduled: *ensureProjectForOpenFiles*
+Info 48 [00:01:45.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
+Info 49 [00:01:46.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 50 [00:01:47.000] Scheduled: *ensureProjectForOpenFiles*
After running timeout callbacks
PolledWatches::
@@ -279,50 +282,50 @@ FsWatchesRecursive::
/user/username/rootfolder/otherfolder/a/b/node_modules:
{}
-Info 48 [00:01:43.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 49 [00:01:44.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 50 [00:01:45.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 51 [00:01:46.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 52 [00:01:47.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 53 [00:01:48.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 54 [00:01:49.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 55 [00:01:50.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 56 [00:01:51.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
-Info 57 [00:01:52.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 58 [00:01:53.000] Files (4)
+Info 51 [00:01:48.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 52 [00:01:49.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 53 [00:01:50.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 54 [00:01:51.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 55 [00:01:52.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 56 [00:01:53.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 57 [00:01:54.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 58 [00:01:55.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 59 [00:01:56.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
+Info 60 [00:01:57.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
+Info 61 [00:01:58.000] Files (4)
/a/lib/lib.d.ts
- /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts
+ /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts
/user/username/rootfolder/otherfolder/a/b/project/file1.ts
/user/username/rootfolder/otherfolder/a/b/project/file3.ts
../../../../../../../a/lib/lib.d.ts
Default library for target 'es5'
- ../node_modules/file2.d.ts
+ ../node_modules/file2/index.d.ts
Imported via "file2" from file 'file1.ts'
file1.ts
Matched by default include pattern '**/*'
file3.ts
Matched by default include pattern '**/*'
-Info 59 [00:01:54.000] -----------------------------------------------
-Info 60 [00:01:55.000] Running: *ensureProjectForOpenFiles*
-Info 61 [00:01:56.000] Before ensureProjectForOpenFiles:
-Info 62 [00:01:57.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 62 [00:01:58.000] Files (4)
-
Info 62 [00:01:59.000] -----------------------------------------------
-Info 62 [00:02:00.000] Open files:
-Info 62 [00:02:01.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 62 [00:02:02.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 62 [00:02:03.000] After ensureProjectForOpenFiles:
-Info 63 [00:02:04.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 63 [00:02:05.000] Files (4)
-
-Info 63 [00:02:06.000] -----------------------------------------------
-Info 63 [00:02:07.000] Open files:
-Info 63 [00:02:08.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 63 [00:02:09.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 63 [00:02:00.000] Running: *ensureProjectForOpenFiles*
+Info 64 [00:02:01.000] Before ensureProjectForOpenFiles:
+Info 65 [00:02:02.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
+Info 65 [00:02:03.000] Files (4)
+
+Info 65 [00:02:04.000] -----------------------------------------------
+Info 65 [00:02:05.000] Open files:
+Info 65 [00:02:06.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
+Info 65 [00:02:07.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 65 [00:02:08.000] After ensureProjectForOpenFiles:
+Info 66 [00:02:09.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
+Info 66 [00:02:10.000] Files (4)
+
+Info 66 [00:02:11.000] -----------------------------------------------
+Info 66 [00:02:12.000] Open files:
+Info 66 [00:02:13.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
+Info 66 [00:02:14.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
After running timeout callbacks
PolledWatches::
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
index ed87bb77debae..dc22b31cc4e6f 100644
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
+++ b/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
@@ -198,7 +198,7 @@ FsWatchesRecursive::
{}
Before running timeout callbacks
-//// [/a/b/node_modules/file2.d.ts]
+//// [/a/b/node_modules/file2/index.d.ts]
export class a { }
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
index 306c3b16ba7fa..a434bc69729c3 100644
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
+++ b/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
@@ -233,11 +233,14 @@ Info 44 [00:01:37.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/u
Info 45 [00:01:38.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info 46 [00:01:39.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
Info 47 [00:01:40.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 48 [00:01:43.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 48 [00:01:43.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info 49 [00:01:44.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 50 [00:01:45.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 50 [00:01:45.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 51 [00:01:48.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 52 [00:01:49.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
+Info 53 [00:01:50.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Before running timeout callbacks
-//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts]
+//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts]
export class a { }
@@ -263,9 +266,9 @@ FsWatchesRecursive::
/user/username/rootfolder/otherfolder/a/b/node_modules:
{}
-Info 51 [00:01:46.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
-Info 52 [00:01:47.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 53 [00:01:48.000] Scheduled: *ensureProjectForOpenFiles*
+Info 54 [00:01:51.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
+Info 55 [00:01:52.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 56 [00:01:53.000] Scheduled: *ensureProjectForOpenFiles*
After running timeout callbacks
PolledWatches::
@@ -314,52 +317,52 @@ FsWatchesRecursive::
/user/username/rootfolder/otherfolder/a/b/node_modules:
{}
-Info 54 [00:01:49.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 55 [00:01:50.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 56 [00:01:51.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 57 [00:01:52.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 58 [00:01:53.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 59 [00:01:54.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 60 [00:01:55.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 61 [00:01:56.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 62 [00:01:57.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
-Info 63 [00:01:58.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 64 [00:01:59.000] Files (4)
+Info 57 [00:01:54.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 58 [00:01:55.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 59 [00:01:56.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 60 [00:01:57.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 61 [00:01:58.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 62 [00:01:59.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 63 [00:02:00.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 64 [00:02:01.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 65 [00:02:02.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
+Info 66 [00:02:03.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
+Info 67 [00:02:04.000] Files (4)
/a/lib/lib.d.ts
- /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts
+ /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts
/user/username/rootfolder/otherfolder/a/b/project/file1.ts
/user/username/rootfolder/otherfolder/a/b/project/file3.ts
../../../../../../../a/lib/lib.d.ts
Default library for target 'es5'
- ../node_modules/file2.d.ts
+ ../node_modules/file2/index.d.ts
Imported via "file2" from file 'file1.ts'
file1.ts
Matched by default include pattern '**/*'
file3.ts
Matched by default include pattern '**/*'
-Info 65 [00:02:00.000] -----------------------------------------------
-Info 66 [00:02:01.000] Running: *ensureProjectForOpenFiles*
-Info 67 [00:02:02.000] Before ensureProjectForOpenFiles:
-Info 68 [00:02:03.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 68 [00:02:04.000] Files (4)
-
Info 68 [00:02:05.000] -----------------------------------------------
-Info 68 [00:02:06.000] Open files:
-Info 68 [00:02:07.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 68 [00:02:08.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 68 [00:02:09.000] After ensureProjectForOpenFiles:
-Info 69 [00:02:10.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 69 [00:02:11.000] Files (4)
-
-Info 69 [00:02:12.000] -----------------------------------------------
-Info 69 [00:02:13.000] Open files:
-Info 69 [00:02:14.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 69 [00:02:15.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 69 [00:02:16.000] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts
-Info 70 [00:02:17.000] event:
+Info 69 [00:02:06.000] Running: *ensureProjectForOpenFiles*
+Info 70 [00:02:07.000] Before ensureProjectForOpenFiles:
+Info 71 [00:02:08.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
+Info 71 [00:02:09.000] Files (4)
+
+Info 71 [00:02:10.000] -----------------------------------------------
+Info 71 [00:02:11.000] Open files:
+Info 71 [00:02:12.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
+Info 71 [00:02:13.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 71 [00:02:14.000] After ensureProjectForOpenFiles:
+Info 72 [00:02:15.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
+Info 72 [00:02:16.000] Files (4)
+
+Info 72 [00:02:17.000] -----------------------------------------------
+Info 72 [00:02:18.000] Open files:
+Info 72 [00:02:19.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
+Info 72 [00:02:20.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 72 [00:02:21.000] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts
+Info 73 [00:02:22.000] event:
{"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/rootfolder/otherfolder/a/b/project/file1.ts"]}}
After running timeout callbacks
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
index 4e272ad822232..fe962b76ae188 100644
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
+++ b/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
@@ -198,7 +198,7 @@ FsWatchesRecursive::
{}
Before running timeout callbacks
-//// [/a/b/node_modules/file2.d.ts]
+//// [/a/b/node_modules/file2/index.d.ts]
export class a { }
@@ -218,7 +218,7 @@ FsWatchesRecursive::
/a/b/project:
{}
-Info 36 [00:01:21.000] event:
+Info 36 [00:01:23.000] event:
{"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/a/b/project/file1.ts","diagnostics":[]}}
After running timeout callbacks
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
index b1b3a6d85ed58..5a37bab0b767c 100644
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
+++ b/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
@@ -233,11 +233,14 @@ Info 44 [00:01:37.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/u
Info 45 [00:01:38.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info 46 [00:01:39.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
Info 47 [00:01:40.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 48 [00:01:43.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 48 [00:01:43.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info 49 [00:01:44.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 50 [00:01:45.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 50 [00:01:45.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 51 [00:01:48.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 52 [00:01:49.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
+Info 53 [00:01:50.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Before running timeout callbacks
-//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts]
+//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts]
export class a { }
@@ -263,34 +266,34 @@ FsWatchesRecursive::
/user/username/rootfolder/otherfolder/a/b/node_modules:
{}
-Info 51 [00:01:46.000] Scheduled: *ensureProjectForOpenFiles*
-Info 52 [00:01:47.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 53 [00:01:48.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 54 [00:01:49.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 55 [00:01:50.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 56 [00:01:51.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 57 [00:01:52.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 58 [00:01:53.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 59 [00:01:54.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
-Info 60 [00:01:55.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 61 [00:01:56.000] Files (4)
+Info 54 [00:01:51.000] Scheduled: *ensureProjectForOpenFiles*
+Info 55 [00:01:52.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 56 [00:01:53.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 57 [00:01:54.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 58 [00:01:55.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 59 [00:01:56.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 60 [00:01:57.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 61 [00:01:58.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info 62 [00:01:59.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
+Info 63 [00:02:00.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
+Info 64 [00:02:01.000] Files (4)
/a/lib/lib.d.ts
- /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts
+ /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts
/user/username/rootfolder/otherfolder/a/b/project/file1.ts
/user/username/rootfolder/otherfolder/a/b/project/file3.ts
../../../../../../../a/lib/lib.d.ts
Default library for target 'es5'
- ../node_modules/file2.d.ts
+ ../node_modules/file2/index.d.ts
Imported via "file2" from file 'file1.ts'
file1.ts
Matched by default include pattern '**/*'
file3.ts
Matched by default include pattern '**/*'
-Info 62 [00:01:57.000] -----------------------------------------------
-Info 63 [00:01:58.000] event:
+Info 65 [00:02:02.000] -----------------------------------------------
+Info 66 [00:02:03.000] event:
{"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/rootfolder/otherfolder/a/b/project/file1.ts","diagnostics":[]}}
After running timeout callbacks
@@ -332,25 +335,25 @@ FsWatchesRecursive::
/user/username/rootfolder/otherfolder/a/b/node_modules:
{}
-Info 64 [00:01:59.000] Running: *ensureProjectForOpenFiles*
-Info 65 [00:02:00.000] Before ensureProjectForOpenFiles:
-Info 66 [00:02:01.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 66 [00:02:02.000] Files (4)
-
-Info 66 [00:02:03.000] -----------------------------------------------
-Info 66 [00:02:04.000] Open files:
-Info 66 [00:02:05.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 66 [00:02:06.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 66 [00:02:07.000] After ensureProjectForOpenFiles:
-Info 67 [00:02:08.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 67 [00:02:09.000] Files (4)
-
-Info 67 [00:02:10.000] -----------------------------------------------
-Info 67 [00:02:11.000] Open files:
-Info 67 [00:02:12.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 67 [00:02:13.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 67 [00:02:14.000] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts
-Info 68 [00:02:15.000] event:
+Info 67 [00:02:04.000] Running: *ensureProjectForOpenFiles*
+Info 68 [00:02:05.000] Before ensureProjectForOpenFiles:
+Info 69 [00:02:06.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
+Info 69 [00:02:07.000] Files (4)
+
+Info 69 [00:02:08.000] -----------------------------------------------
+Info 69 [00:02:09.000] Open files:
+Info 69 [00:02:10.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
+Info 69 [00:02:11.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 69 [00:02:12.000] After ensureProjectForOpenFiles:
+Info 70 [00:02:13.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
+Info 70 [00:02:14.000] Files (4)
+
+Info 70 [00:02:15.000] -----------------------------------------------
+Info 70 [00:02:16.000] Open files:
+Info 70 [00:02:17.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
+Info 70 [00:02:18.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+Info 70 [00:02:19.000] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts
+Info 71 [00:02:20.000] event:
{"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/rootfolder/otherfolder/a/b/project/file1.ts"]}}
After running timeout callbacks
diff --git a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js
index 230f597952384..c7f08fe694fab 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js
@@ -52,40 +52,31 @@ Info 9 [00:00:44.000] ======== Resolving module 'module1' from '/user/usernam
Info 10 [00:00:45.000] Module resolution kind is not specified, using 'Node10'.
Info 11 [00:00:46.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info 12 [00:00:47.000] File '/user/username/projects/myproject/src/node_modules/module1/package.json' does not exist.
-Info 13 [00:00:48.000] File '/user/username/projects/myproject/src/node_modules/module1.ts' does not exist.
-Info 14 [00:00:49.000] File '/user/username/projects/myproject/src/node_modules/module1.tsx' does not exist.
-Info 15 [00:00:50.000] File '/user/username/projects/myproject/src/node_modules/module1.d.ts' does not exist.
-Info 16 [00:00:51.000] File '/user/username/projects/myproject/src/node_modules/module1/index.ts' exists - use it as a name resolution result.
-Info 17 [00:00:52.000] Resolving real path for '/user/username/projects/myproject/src/node_modules/module1/index.ts', result '/user/username/projects/myproject/src/node_modules/module1/index.ts'.
-Info 18 [00:00:53.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ========
-Info 19 [00:00:54.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file1.ts'. ========
-Info 20 [00:00:55.000] Module resolution kind is not specified, using 'Node10'.
-Info 21 [00:00:56.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 22 [00:00:57.000] File '/user/username/projects/myproject/src/node_modules/module2.ts' does not exist.
-Info 23 [00:00:58.000] File '/user/username/projects/myproject/src/node_modules/module2.tsx' does not exist.
-Info 24 [00:00:59.000] File '/user/username/projects/myproject/src/node_modules/module2.d.ts' does not exist.
-Info 25 [00:01:00.000] Directory '/user/username/projects/myproject/src/node_modules/@types' does not exist, skipping all lookups in it.
-Info 26 [00:01:01.000] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
-Info 27 [00:01:02.000] File '/user/username/projects/myproject/node_modules/module2.ts' does not exist.
-Info 28 [00:01:03.000] File '/user/username/projects/myproject/node_modules/module2.tsx' does not exist.
-Info 29 [00:01:04.000] File '/user/username/projects/myproject/node_modules/module2.d.ts' does not exist.
-Info 30 [00:01:05.000] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
-Info 31 [00:01:06.000] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 32 [00:01:07.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 33 [00:01:08.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 34 [00:01:09.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 35 [00:01:10.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 36 [00:01:11.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 37 [00:01:12.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
-Info 38 [00:01:13.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 39 [00:01:14.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 40 [00:01:15.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 41 [00:01:16.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 42 [00:01:17.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
-Info 43 [00:01:18.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
-Info 44 [00:01:19.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 45 [00:01:20.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 46 [00:01:21.000] Files (4)
+Info 13 [00:00:48.000] File '/user/username/projects/myproject/src/node_modules/module1/index.ts' exists - use it as a name resolution result.
+Info 14 [00:00:49.000] Resolving real path for '/user/username/projects/myproject/src/node_modules/module1/index.ts', result '/user/username/projects/myproject/src/node_modules/module1/index.ts'.
+Info 15 [00:00:50.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ========
+Info 16 [00:00:51.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file1.ts'. ========
+Info 17 [00:00:52.000] Module resolution kind is not specified, using 'Node10'.
+Info 18 [00:00:53.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 19 [00:00:54.000] Directory '/user/username/projects/myproject/src/node_modules/@types' does not exist, skipping all lookups in it.
+Info 20 [00:00:55.000] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
+Info 21 [00:00:56.000] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
+Info 22 [00:00:57.000] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 23 [00:00:58.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 24 [00:00:59.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 25 [00:01:00.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 26 [00:01:01.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 27 [00:01:02.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 28 [00:01:03.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
+Info 29 [00:01:04.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 30 [00:01:05.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 31 [00:01:06.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 32 [00:01:07.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 33 [00:01:08.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
+Info 34 [00:01:09.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
+Info 35 [00:01:10.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 36 [00:01:11.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 37 [00:01:12.000] Files (4)
/a/lib/lib.d.ts
/user/username/projects/myproject/src/node_modules/module1/index.ts
/user/username/projects/myproject/node_modules/module2/index.ts
@@ -101,22 +92,22 @@ Info 46 [00:01:21.000] Files (4)
src/file1.ts
Matched by default include pattern '**/*'
-Info 47 [00:01:22.000] -----------------------------------------------
-Info 48 [00:01:23.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 48 [00:01:24.000] Files (4)
-
-Info 48 [00:01:25.000] -----------------------------------------------
-Info 48 [00:01:26.000] Open files:
-Info 48 [00:01:27.000] FileName: /user/username/projects/myproject/src/file1.ts ProjectRootPath: undefined
-Info 48 [00:01:28.000] Projects: /user/username/projects/myproject/tsconfig.json
-Info 48 [00:01:30.000] DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 49 [00:01:31.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 50 [00:01:32.000] DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory
-Info 51 [00:01:33.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory
-Info 52 [00:01:36.000] DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 53 [00:01:37.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 54 [00:01:38.000] DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory
-Info 55 [00:01:39.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory
+Info 38 [00:01:13.000] -----------------------------------------------
+Info 39 [00:01:14.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 39 [00:01:15.000] Files (4)
+
+Info 39 [00:01:16.000] -----------------------------------------------
+Info 39 [00:01:17.000] Open files:
+Info 39 [00:01:18.000] FileName: /user/username/projects/myproject/src/file1.ts ProjectRootPath: undefined
+Info 39 [00:01:19.000] Projects: /user/username/projects/myproject/tsconfig.json
+Info 39 [00:01:21.000] DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 40 [00:01:22.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 41 [00:01:23.000] DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory
+Info 42 [00:01:24.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory
+Info 43 [00:01:27.000] DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 44 [00:01:28.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 45 [00:01:29.000] DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory
+Info 46 [00:01:30.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/src/file1.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory
Before checking timeout queue length (0) and running
//// [/user/username/projects/myproject/src/file1.ts] file changed its modified time
diff --git a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js
index 4801bc42bb56b..a47b285db167e 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js
@@ -28,18 +28,16 @@ Info 12 [00:00:31.000] Directory '/a/node_modules' does not exist, skipping al
Info 13 [00:00:32.000] Directory '/node_modules' does not exist, skipping all lookups in it.
Info 14 [00:00:33.000] ======== Module name 'lib' was not resolved. ========
Info 15 [00:00:34.000] Auto discovery for typings is enabled in project '/dev/null/inferredProject1*'. Running extra resolution pass for module 'lib' using cache location '/a/cache'.
-Info 16 [00:00:35.000] File '/a/cache/node_modules/lib.d.ts' does not exist.
-Info 17 [00:00:36.000] File '/a/cache/node_modules/@types/lib/package.json' does not exist.
-Info 18 [00:00:37.000] File '/a/cache/node_modules/@types/lib.d.ts' does not exist.
-Info 19 [00:00:38.000] File '/a/cache/node_modules/@types/lib/index.d.ts' exists - use it as a name resolution result.
-Info 20 [00:00:39.000] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 21 [00:00:40.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 22 [00:00:41.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file
-Info 23 [00:00:42.000] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
-Info 24 [00:00:43.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
-Info 25 [00:00:44.000] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 26 [00:00:45.000] Project '/dev/null/inferredProject1*' (Inferred)
-Info 27 [00:00:46.000] Files (2)
+Info 16 [00:00:35.000] File '/a/cache/node_modules/@types/lib/package.json' does not exist.
+Info 17 [00:00:36.000] File '/a/cache/node_modules/@types/lib/index.d.ts' exists - use it as a name resolution result.
+Info 18 [00:00:37.000] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 19 [00:00:38.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 20 [00:00:39.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file
+Info 21 [00:00:40.000] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
+Info 22 [00:00:41.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
+Info 23 [00:00:42.000] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 24 [00:00:43.000] Project '/dev/null/inferredProject1*' (Inferred)
+Info 25 [00:00:44.000] Files (2)
/a/cache/node_modules/@types/lib/index.d.ts
/a/b/app.js
@@ -49,11 +47,11 @@ Info 27 [00:00:46.000] Files (2)
app.js
Root file specified for compilation
-Info 28 [00:00:47.000] -----------------------------------------------
-Info 29 [00:00:48.000] Project '/dev/null/inferredProject1*' (Inferred)
-Info 29 [00:00:49.000] Files (2)
+Info 26 [00:00:45.000] -----------------------------------------------
+Info 27 [00:00:46.000] Project '/dev/null/inferredProject1*' (Inferred)
+Info 27 [00:00:47.000] Files (2)
-Info 29 [00:00:50.000] -----------------------------------------------
-Info 29 [00:00:51.000] Open files:
-Info 29 [00:00:52.000] FileName: /a/b/app.js ProjectRootPath: undefined
-Info 29 [00:00:53.000] Projects: /dev/null/inferredProject1*
\ No newline at end of file
+Info 27 [00:00:48.000] -----------------------------------------------
+Info 27 [00:00:49.000] Open files:
+Info 27 [00:00:50.000] FileName: /a/b/app.js ProjectRootPath: undefined
+Info 27 [00:00:51.000] Projects: /dev/null/inferredProject1*
\ No newline at end of file
diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js
index 2e7572f85cb3f..422e663efee59 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js
@@ -68,77 +68,68 @@ Info 13 [00:01:02.000] Module resolution kind is not specified, using 'Node10'
Info 14 [00:01:03.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info 15 [00:01:04.000] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it.
Info 16 [00:01:05.000] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist.
-Info 17 [00:01:06.000] File '/user/username/projects/myproject/product/node_modules/module1.ts' does not exist.
-Info 18 [00:01:07.000] File '/user/username/projects/myproject/product/node_modules/module1.tsx' does not exist.
-Info 19 [00:01:08.000] File '/user/username/projects/myproject/product/node_modules/module1.d.ts' does not exist.
-Info 20 [00:01:09.000] File '/user/username/projects/myproject/product/node_modules/module1/index.ts' exists - use it as a name resolution result.
-Info 21 [00:01:10.000] Resolving real path for '/user/username/projects/myproject/product/node_modules/module1/index.ts', result '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
-Info 22 [00:01:11.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
-Info 23 [00:01:12.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/file1.ts'. ========
-Info 24 [00:01:13.000] Module resolution kind is not specified, using 'Node10'.
-Info 25 [00:01:14.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 26 [00:01:15.000] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it.
-Info 27 [00:01:16.000] File '/user/username/projects/myproject/product/node_modules/module2.ts' does not exist.
-Info 28 [00:01:17.000] File '/user/username/projects/myproject/product/node_modules/module2.tsx' does not exist.
-Info 29 [00:01:18.000] File '/user/username/projects/myproject/product/node_modules/module2.d.ts' does not exist.
-Info 30 [00:01:19.000] Directory '/user/username/projects/myproject/product/node_modules/@types' does not exist, skipping all lookups in it.
-Info 31 [00:01:20.000] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
-Info 32 [00:01:21.000] File '/user/username/projects/myproject/node_modules/module2.ts' does not exist.
-Info 33 [00:01:22.000] File '/user/username/projects/myproject/node_modules/module2.tsx' does not exist.
-Info 34 [00:01:23.000] File '/user/username/projects/myproject/node_modules/module2.d.ts' does not exist.
-Info 35 [00:01:24.000] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
-Info 36 [00:01:25.000] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 37 [00:01:26.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 38 [00:01:27.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 39 [00:01:28.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 40 [00:01:29.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 41 [00:01:30.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 42 [00:01:31.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ========
-Info 43 [00:01:32.000] Module resolution kind is not specified, using 'Node10'.
-Info 44 [00:01:33.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 45 [00:01:34.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it.
-Info 46 [00:01:35.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/src'.
-Info 47 [00:01:36.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
-Info 48 [00:01:37.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ========
-Info 49 [00:01:38.000] Module resolution kind is not specified, using 'Node10'.
-Info 50 [00:01:39.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 51 [00:01:40.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it.
-Info 52 [00:01:41.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/src'.
-Info 53 [00:01:42.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 54 [00:01:43.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/file4.ts'. ========
-Info 55 [00:01:44.000] Module resolution kind is not specified, using 'Node10'.
-Info 56 [00:01:45.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 57 [00:01:46.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it.
-Info 58 [00:01:47.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product'.
-Info 59 [00:01:48.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
-Info 60 [00:01:49.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/file4.ts'. ========
-Info 61 [00:01:50.000] Module resolution kind is not specified, using 'Node10'.
-Info 62 [00:01:51.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 63 [00:01:52.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it.
-Info 64 [00:01:53.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product'.
-Info 65 [00:01:54.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 66 [00:01:55.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts'. ========
-Info 67 [00:01:56.000] Module resolution kind is not specified, using 'Node10'.
-Info 68 [00:01:57.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 69 [00:01:58.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it.
-Info 70 [00:01:59.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/test'.
-Info 71 [00:02:00.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
-Info 72 [00:02:01.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts'. ========
-Info 73 [00:02:02.000] Module resolution kind is not specified, using 'Node10'.
-Info 74 [00:02:03.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 75 [00:02:04.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it.
-Info 76 [00:02:05.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/test'.
-Info 77 [00:02:06.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 78 [00:02:07.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
-Info 79 [00:02:08.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 80 [00:02:09.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 81 [00:02:10.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 82 [00:02:11.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 83 [00:02:12.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
-Info 84 [00:02:13.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
-Info 85 [00:02:14.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 86 [00:02:15.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 87 [00:02:16.000] Files (7)
+Info 17 [00:01:06.000] File '/user/username/projects/myproject/product/node_modules/module1/index.ts' exists - use it as a name resolution result.
+Info 18 [00:01:07.000] Resolving real path for '/user/username/projects/myproject/product/node_modules/module1/index.ts', result '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
+Info 19 [00:01:08.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
+Info 20 [00:01:09.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/file1.ts'. ========
+Info 21 [00:01:10.000] Module resolution kind is not specified, using 'Node10'.
+Info 22 [00:01:11.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 23 [00:01:12.000] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it.
+Info 24 [00:01:13.000] Directory '/user/username/projects/myproject/product/node_modules/@types' does not exist, skipping all lookups in it.
+Info 25 [00:01:14.000] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
+Info 26 [00:01:15.000] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
+Info 27 [00:01:16.000] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 28 [00:01:17.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 29 [00:01:18.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 30 [00:01:19.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 31 [00:01:20.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 32 [00:01:21.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 33 [00:01:22.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ========
+Info 34 [00:01:23.000] Module resolution kind is not specified, using 'Node10'.
+Info 35 [00:01:24.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 36 [00:01:25.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it.
+Info 37 [00:01:26.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/src'.
+Info 38 [00:01:27.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
+Info 39 [00:01:28.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ========
+Info 40 [00:01:29.000] Module resolution kind is not specified, using 'Node10'.
+Info 41 [00:01:30.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 42 [00:01:31.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it.
+Info 43 [00:01:32.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/src'.
+Info 44 [00:01:33.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 45 [00:01:34.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/file4.ts'. ========
+Info 46 [00:01:35.000] Module resolution kind is not specified, using 'Node10'.
+Info 47 [00:01:36.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 48 [00:01:37.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it.
+Info 49 [00:01:38.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product'.
+Info 50 [00:01:39.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
+Info 51 [00:01:40.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/file4.ts'. ========
+Info 52 [00:01:41.000] Module resolution kind is not specified, using 'Node10'.
+Info 53 [00:01:42.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 54 [00:01:43.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it.
+Info 55 [00:01:44.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product'.
+Info 56 [00:01:45.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 57 [00:01:46.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts'. ========
+Info 58 [00:01:47.000] Module resolution kind is not specified, using 'Node10'.
+Info 59 [00:01:48.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 60 [00:01:49.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it.
+Info 61 [00:01:50.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/test'.
+Info 62 [00:01:51.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
+Info 63 [00:01:52.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts'. ========
+Info 64 [00:01:53.000] Module resolution kind is not specified, using 'Node10'.
+Info 65 [00:01:54.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 66 [00:01:55.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it.
+Info 67 [00:01:56.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/test'.
+Info 68 [00:01:57.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 69 [00:01:58.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
+Info 70 [00:01:59.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 71 [00:02:00.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 72 [00:02:01.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 73 [00:02:02.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 74 [00:02:03.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
+Info 75 [00:02:04.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
+Info 76 [00:02:05.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 77 [00:02:06.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 78 [00:02:07.000] Files (7)
/a/lib/lib.d.ts
/user/username/projects/myproject/product/node_modules/module1/index.ts
/user/username/projects/myproject/node_modules/module2/index.ts
@@ -169,26 +160,26 @@ Info 87 [00:02:16.000] Files (7)
product/test/src/file3.ts
Matched by default include pattern '**/*'
-Info 88 [00:02:17.000] -----------------------------------------------
-Info 89 [00:02:18.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 89 [00:02:19.000] Files (7)
+Info 79 [00:02:08.000] -----------------------------------------------
+Info 80 [00:02:09.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 80 [00:02:10.000] Files (7)
-Info 89 [00:02:20.000] -----------------------------------------------
-Info 89 [00:02:21.000] Open files:
-Info 89 [00:02:22.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
-Info 89 [00:02:23.000] Projects: /user/username/projects/myproject/tsconfig.json
-Info 89 [00:02:30.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/src/feature/file2.ts 1:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info
-Info 90 [00:02:31.000] Scheduled: /user/username/projects/myproject/tsconfig.json
-Info 91 [00:02:32.000] Scheduled: *ensureProjectForOpenFiles*
-Info 92 [00:02:33.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/src/feature/file2.ts 1:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info
-Info 93 [00:02:37.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/test/src/file3.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info
-Info 94 [00:02:38.000] Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one
-Info 95 [00:02:39.000] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one
-Info 96 [00:02:40.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/test/src/file3.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info
-Info 97 [00:02:44.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/test/file4.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info
-Info 98 [00:02:45.000] Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one
-Info 99 [00:02:46.000] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one
-Info 100 [00:02:47.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/test/file4.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info
+Info 80 [00:02:11.000] -----------------------------------------------
+Info 80 [00:02:12.000] Open files:
+Info 80 [00:02:13.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
+Info 80 [00:02:14.000] Projects: /user/username/projects/myproject/tsconfig.json
+Info 80 [00:02:21.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/src/feature/file2.ts 1:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info
+Info 81 [00:02:22.000] Scheduled: /user/username/projects/myproject/tsconfig.json
+Info 82 [00:02:23.000] Scheduled: *ensureProjectForOpenFiles*
+Info 83 [00:02:24.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/src/feature/file2.ts 1:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info
+Info 84 [00:02:28.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/test/src/file3.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info
+Info 85 [00:02:29.000] Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one
+Info 86 [00:02:30.000] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one
+Info 87 [00:02:31.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/test/src/file3.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info
+Info 88 [00:02:35.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/test/file4.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info
+Info 89 [00:02:36.000] Scheduled: /user/username/projects/myproject/tsconfig.json, Cancelled earlier one
+Info 90 [00:02:37.000] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one
+Info 91 [00:02:38.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/test/file4.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info
Before running timeout callbacks
//// [/user/username/projects/myproject/product/src/file1.ts]
import { module1 } from "module1";import { module2 } from "module2";import { module1 } from "module1";import { module2 } from "module2";
@@ -229,35 +220,35 @@ FsWatchesRecursive::
/user/username/projects/myproject/product:
{}
-Info 101 [00:02:48.000] Running: /user/username/projects/myproject/tsconfig.json
-Info 102 [00:02:49.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json
-Info 103 [00:02:50.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
-Info 104 [00:02:51.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 105 [00:02:52.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
-Info 106 [00:02:53.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 107 [00:02:54.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
-Info 108 [00:02:55.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 109 [00:02:56.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
-Info 110 [00:02:57.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 111 [00:02:58.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
-Info 112 [00:02:59.000] Different program with same set of files
-Info 113 [00:03:00.000] Running: *ensureProjectForOpenFiles*
-Info 114 [00:03:01.000] Before ensureProjectForOpenFiles:
-Info 115 [00:03:02.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 115 [00:03:03.000] Files (7)
+Info 92 [00:02:39.000] Running: /user/username/projects/myproject/tsconfig.json
+Info 93 [00:02:40.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json
+Info 94 [00:02:41.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
+Info 95 [00:02:42.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 96 [00:02:43.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
+Info 97 [00:02:44.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 98 [00:02:45.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
+Info 99 [00:02:46.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 100 [00:02:47.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
+Info 101 [00:02:48.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 102 [00:02:49.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
+Info 103 [00:02:50.000] Different program with same set of files
+Info 104 [00:02:51.000] Running: *ensureProjectForOpenFiles*
+Info 105 [00:02:52.000] Before ensureProjectForOpenFiles:
+Info 106 [00:02:53.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 106 [00:02:54.000] Files (7)
-Info 115 [00:03:04.000] -----------------------------------------------
-Info 115 [00:03:05.000] Open files:
-Info 115 [00:03:06.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
-Info 115 [00:03:07.000] Projects: /user/username/projects/myproject/tsconfig.json
-Info 115 [00:03:08.000] After ensureProjectForOpenFiles:
-Info 116 [00:03:09.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 116 [00:03:10.000] Files (7)
+Info 106 [00:02:55.000] -----------------------------------------------
+Info 106 [00:02:56.000] Open files:
+Info 106 [00:02:57.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
+Info 106 [00:02:58.000] Projects: /user/username/projects/myproject/tsconfig.json
+Info 106 [00:02:59.000] After ensureProjectForOpenFiles:
+Info 107 [00:03:00.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 107 [00:03:01.000] Files (7)
-Info 116 [00:03:11.000] -----------------------------------------------
-Info 116 [00:03:12.000] Open files:
-Info 116 [00:03:13.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
-Info 116 [00:03:14.000] Projects: /user/username/projects/myproject/tsconfig.json
+Info 107 [00:03:02.000] -----------------------------------------------
+Info 107 [00:03:03.000] Open files:
+Info 107 [00:03:04.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
+Info 107 [00:03:05.000] Projects: /user/username/projects/myproject/tsconfig.json
After running timeout callbacks
PolledWatches::
diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js
index f71b7fc4c9987..5a5bc9d4d59db 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js
@@ -57,46 +57,37 @@ Info 10 [00:00:47.000] ======== Resolving module 'module1' from '/user/usernam
Info 11 [00:00:48.000] Module resolution kind is not specified, using 'Node10'.
Info 12 [00:00:49.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info 13 [00:00:50.000] File '/user/username/projects/myproject/src/node_modules/module1/package.json' does not exist.
-Info 14 [00:00:51.000] File '/user/username/projects/myproject/src/node_modules/module1.ts' does not exist.
-Info 15 [00:00:52.000] File '/user/username/projects/myproject/src/node_modules/module1.tsx' does not exist.
-Info 16 [00:00:53.000] File '/user/username/projects/myproject/src/node_modules/module1.d.ts' does not exist.
-Info 17 [00:00:54.000] File '/user/username/projects/myproject/src/node_modules/module1/index.ts' exists - use it as a name resolution result.
-Info 18 [00:00:55.000] Resolving real path for '/user/username/projects/myproject/src/node_modules/module1/index.ts', result '/user/username/projects/myproject/src/node_modules/module1/index.ts'.
-Info 19 [00:00:56.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ========
-Info 20 [00:00:57.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file1.ts'. ========
-Info 21 [00:00:58.000] Module resolution kind is not specified, using 'Node10'.
-Info 22 [00:00:59.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 23 [00:01:00.000] File '/user/username/projects/myproject/src/node_modules/module2.ts' does not exist.
-Info 24 [00:01:01.000] File '/user/username/projects/myproject/src/node_modules/module2.tsx' does not exist.
-Info 25 [00:01:02.000] File '/user/username/projects/myproject/src/node_modules/module2.d.ts' does not exist.
-Info 26 [00:01:03.000] Directory '/user/username/projects/myproject/src/node_modules/@types' does not exist, skipping all lookups in it.
-Info 27 [00:01:04.000] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
-Info 28 [00:01:05.000] File '/user/username/projects/myproject/node_modules/module2.ts' does not exist.
-Info 29 [00:01:06.000] File '/user/username/projects/myproject/node_modules/module2.tsx' does not exist.
-Info 30 [00:01:07.000] File '/user/username/projects/myproject/node_modules/module2.d.ts' does not exist.
-Info 31 [00:01:08.000] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
-Info 32 [00:01:09.000] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 33 [00:01:10.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 34 [00:01:11.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 35 [00:01:12.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 36 [00:01:13.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 37 [00:01:14.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 38 [00:01:15.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/src/file2.ts'. ========
-Info 39 [00:01:16.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/src'.
-Info 40 [00:01:17.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ========
-Info 41 [00:01:18.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file2.ts'. ========
-Info 42 [00:01:19.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/src'.
-Info 43 [00:01:20.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 44 [00:01:21.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
-Info 45 [00:01:22.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 46 [00:01:23.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 47 [00:01:24.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 48 [00:01:25.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
-Info 49 [00:01:26.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
-Info 50 [00:01:27.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
-Info 51 [00:01:28.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 52 [00:01:29.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 53 [00:01:30.000] Files (5)
+Info 14 [00:00:51.000] File '/user/username/projects/myproject/src/node_modules/module1/index.ts' exists - use it as a name resolution result.
+Info 15 [00:00:52.000] Resolving real path for '/user/username/projects/myproject/src/node_modules/module1/index.ts', result '/user/username/projects/myproject/src/node_modules/module1/index.ts'.
+Info 16 [00:00:53.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ========
+Info 17 [00:00:54.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file1.ts'. ========
+Info 18 [00:00:55.000] Module resolution kind is not specified, using 'Node10'.
+Info 19 [00:00:56.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 20 [00:00:57.000] Directory '/user/username/projects/myproject/src/node_modules/@types' does not exist, skipping all lookups in it.
+Info 21 [00:00:58.000] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
+Info 22 [00:00:59.000] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
+Info 23 [00:01:00.000] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 24 [00:01:01.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 25 [00:01:02.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 26 [00:01:03.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 27 [00:01:04.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 28 [00:01:05.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 29 [00:01:06.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/src/file2.ts'. ========
+Info 30 [00:01:07.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/src'.
+Info 31 [00:01:08.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ========
+Info 32 [00:01:09.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file2.ts'. ========
+Info 33 [00:01:10.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/src'.
+Info 34 [00:01:11.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 35 [00:01:12.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
+Info 36 [00:01:13.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 37 [00:01:14.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 38 [00:01:15.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 39 [00:01:16.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Failed Lookup Locations
+Info 40 [00:01:17.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
+Info 41 [00:01:18.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots
+Info 42 [00:01:19.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 43 [00:01:20.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 44 [00:01:21.000] Files (5)
/a/lib/lib.d.ts
/user/username/projects/myproject/src/node_modules/module1/index.ts
/user/username/projects/myproject/node_modules/module2/index.ts
@@ -117,18 +108,18 @@ Info 53 [00:01:30.000] Files (5)
src/file2.ts
Matched by default include pattern '**/*'
-Info 54 [00:01:31.000] -----------------------------------------------
-Info 55 [00:01:32.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 55 [00:01:33.000] Files (5)
-
-Info 55 [00:01:34.000] -----------------------------------------------
-Info 55 [00:01:35.000] Open files:
-Info 55 [00:01:36.000] FileName: /user/username/projects/myproject/src/file1.ts ProjectRootPath: undefined
-Info 55 [00:01:37.000] Projects: /user/username/projects/myproject/tsconfig.json
-Info 55 [00:01:44.000] FileWatcher:: Triggered with /user/username/projects/myproject/src/file2.ts 1:: WatchInfo: /user/username/projects/myproject/src/file2.ts 500 undefined WatchType: Closed Script info
-Info 56 [00:01:45.000] Scheduled: /user/username/projects/myproject/tsconfig.json
-Info 57 [00:01:46.000] Scheduled: *ensureProjectForOpenFiles*
-Info 58 [00:01:47.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/file2.ts 1:: WatchInfo: /user/username/projects/myproject/src/file2.ts 500 undefined WatchType: Closed Script info
+Info 45 [00:01:22.000] -----------------------------------------------
+Info 46 [00:01:23.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 46 [00:01:24.000] Files (5)
+
+Info 46 [00:01:25.000] -----------------------------------------------
+Info 46 [00:01:26.000] Open files:
+Info 46 [00:01:27.000] FileName: /user/username/projects/myproject/src/file1.ts ProjectRootPath: undefined
+Info 46 [00:01:28.000] Projects: /user/username/projects/myproject/tsconfig.json
+Info 46 [00:01:35.000] FileWatcher:: Triggered with /user/username/projects/myproject/src/file2.ts 1:: WatchInfo: /user/username/projects/myproject/src/file2.ts 500 undefined WatchType: Closed Script info
+Info 47 [00:01:36.000] Scheduled: /user/username/projects/myproject/tsconfig.json
+Info 48 [00:01:37.000] Scheduled: *ensureProjectForOpenFiles*
+Info 49 [00:01:38.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/src/file2.ts 1:: WatchInfo: /user/username/projects/myproject/src/file2.ts 500 undefined WatchType: Closed Script info
Before running timeout callbacks
//// [/user/username/projects/myproject/src/file1.ts]
import { module1 } from "module1";import { module2 } from "module2";import { module1 } from "module1";import { module2 } from "module2";
@@ -159,31 +150,31 @@ FsWatchesRecursive::
/user/username/projects/myproject/src:
{}
-Info 59 [00:01:48.000] Running: /user/username/projects/myproject/tsconfig.json
-Info 60 [00:01:49.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json
-Info 61 [00:01:50.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'.
-Info 62 [00:01:51.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 63 [00:01:52.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/src/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'.
-Info 64 [00:01:53.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/src/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 65 [00:01:54.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
-Info 66 [00:01:55.000] Different program with same set of files
-Info 67 [00:01:56.000] Running: *ensureProjectForOpenFiles*
-Info 68 [00:01:57.000] Before ensureProjectForOpenFiles:
-Info 69 [00:01:58.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 69 [00:01:59.000] Files (5)
-
-Info 69 [00:02:00.000] -----------------------------------------------
-Info 69 [00:02:01.000] Open files:
-Info 69 [00:02:02.000] FileName: /user/username/projects/myproject/src/file1.ts ProjectRootPath: undefined
-Info 69 [00:02:03.000] Projects: /user/username/projects/myproject/tsconfig.json
-Info 69 [00:02:04.000] After ensureProjectForOpenFiles:
-Info 70 [00:02:05.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
-Info 70 [00:02:06.000] Files (5)
-
-Info 70 [00:02:07.000] -----------------------------------------------
-Info 70 [00:02:08.000] Open files:
-Info 70 [00:02:09.000] FileName: /user/username/projects/myproject/src/file1.ts ProjectRootPath: undefined
-Info 70 [00:02:10.000] Projects: /user/username/projects/myproject/tsconfig.json
+Info 50 [00:01:39.000] Running: /user/username/projects/myproject/tsconfig.json
+Info 51 [00:01:40.000] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json
+Info 52 [00:01:41.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'.
+Info 53 [00:01:42.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 54 [00:01:43.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/src/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'.
+Info 55 [00:01:44.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/src/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 56 [00:01:45.000] Finishing updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
+Info 57 [00:01:46.000] Different program with same set of files
+Info 58 [00:01:47.000] Running: *ensureProjectForOpenFiles*
+Info 59 [00:01:48.000] Before ensureProjectForOpenFiles:
+Info 60 [00:01:49.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 60 [00:01:50.000] Files (5)
+
+Info 60 [00:01:51.000] -----------------------------------------------
+Info 60 [00:01:52.000] Open files:
+Info 60 [00:01:53.000] FileName: /user/username/projects/myproject/src/file1.ts ProjectRootPath: undefined
+Info 60 [00:01:54.000] Projects: /user/username/projects/myproject/tsconfig.json
+Info 60 [00:01:55.000] After ensureProjectForOpenFiles:
+Info 61 [00:01:56.000] Project '/user/username/projects/myproject/tsconfig.json' (Configured)
+Info 61 [00:01:57.000] Files (5)
+
+Info 61 [00:01:58.000] -----------------------------------------------
+Info 61 [00:01:59.000] Open files:
+Info 61 [00:02:00.000] FileName: /user/username/projects/myproject/src/file1.ts ProjectRootPath: undefined
+Info 61 [00:02:01.000] Projects: /user/username/projects/myproject/tsconfig.json
After running timeout callbacks
PolledWatches::
diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js
index a12f5fbe27db2..548d342452b8d 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js
@@ -67,92 +67,83 @@ Info 26 [00:01:13.000] Module resolution kind is not specified, using 'Node10'
Info 27 [00:01:14.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info 28 [00:01:15.000] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it.
Info 29 [00:01:16.000] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist.
-Info 30 [00:01:17.000] File '/user/username/projects/myproject/product/node_modules/module1.ts' does not exist.
-Info 31 [00:01:18.000] File '/user/username/projects/myproject/product/node_modules/module1.tsx' does not exist.
-Info 32 [00:01:19.000] File '/user/username/projects/myproject/product/node_modules/module1.d.ts' does not exist.
-Info 33 [00:01:20.000] File '/user/username/projects/myproject/product/node_modules/module1/index.ts' exists - use it as a name resolution result.
-Info 34 [00:01:21.000] Resolving real path for '/user/username/projects/myproject/product/node_modules/module1/index.ts', result '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
-Info 35 [00:01:22.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
-Info 36 [00:01:23.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/file1.ts'. ========
-Info 37 [00:01:24.000] Module resolution kind is not specified, using 'Node10'.
-Info 38 [00:01:25.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 39 [00:01:26.000] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it.
-Info 40 [00:01:27.000] File '/user/username/projects/myproject/product/node_modules/module2.ts' does not exist.
-Info 41 [00:01:28.000] File '/user/username/projects/myproject/product/node_modules/module2.tsx' does not exist.
-Info 42 [00:01:29.000] File '/user/username/projects/myproject/product/node_modules/module2.d.ts' does not exist.
-Info 43 [00:01:30.000] Directory '/user/username/projects/myproject/product/node_modules/@types' does not exist, skipping all lookups in it.
-Info 44 [00:01:31.000] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
-Info 45 [00:01:32.000] File '/user/username/projects/myproject/node_modules/module2.ts' does not exist.
-Info 46 [00:01:33.000] File '/user/username/projects/myproject/node_modules/module2.tsx' does not exist.
-Info 47 [00:01:34.000] File '/user/username/projects/myproject/node_modules/module2.d.ts' does not exist.
-Info 48 [00:01:35.000] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
-Info 49 [00:01:36.000] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 50 [00:01:37.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 51 [00:01:38.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info
-Info 52 [00:01:39.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ========
-Info 53 [00:01:40.000] Module resolution kind is not specified, using 'Node10'.
-Info 54 [00:01:41.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 55 [00:01:42.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it.
-Info 56 [00:01:43.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/src'.
-Info 57 [00:01:44.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
-Info 58 [00:01:45.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ========
-Info 59 [00:01:46.000] Module resolution kind is not specified, using 'Node10'.
-Info 60 [00:01:47.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 61 [00:01:48.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it.
-Info 62 [00:01:49.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/src'.
-Info 63 [00:01:50.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 64 [00:01:51.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 65 [00:01:52.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 66 [00:01:53.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 67 [00:01:54.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 68 [00:01:55.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info
-Info 69 [00:01:56.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/file4.ts'. ========
-Info 70 [00:01:57.000] Module resolution kind is not specified, using 'Node10'.
-Info 71 [00:01:58.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 72 [00:01:59.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it.
-Info 73 [00:02:00.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product'.
-Info 74 [00:02:01.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
-Info 75 [00:02:02.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/file4.ts'. ========
-Info 76 [00:02:03.000] Module resolution kind is not specified, using 'Node10'.
-Info 77 [00:02:04.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 78 [00:02:05.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it.
-Info 79 [00:02:06.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product'.
-Info 80 [00:02:07.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 81 [00:02:08.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info
-Info 82 [00:02:09.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts'. ========
-Info 83 [00:02:10.000] Module resolution kind is not specified, using 'Node10'.
-Info 84 [00:02:11.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 85 [00:02:12.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it.
-Info 86 [00:02:13.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/test'.
-Info 87 [00:02:14.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
-Info 88 [00:02:15.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts'. ========
-Info 89 [00:02:16.000] Module resolution kind is not specified, using 'Node10'.
-Info 90 [00:02:17.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 91 [00:02:18.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it.
-Info 92 [00:02:19.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/test'.
-Info 93 [00:02:20.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
-Info 94 [00:02:21.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
-Info 95 [00:02:22.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 96 [00:02:23.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 97 [00:02:24.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 98 [00:02:25.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 99 [00:02:26.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 100 [00:02:27.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 101 [00:02:28.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 102 [00:02:29.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 103 [00:02:30.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 104 [00:02:31.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 105 [00:02:32.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 106 [00:02:33.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
-Info 107 [00:02:34.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
-Info 108 [00:02:35.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
-Info 109 [00:02:36.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
-Info 110 [00:02:37.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
-Info 111 [00:02:38.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
-Info 112 [00:02:39.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
-Info 113 [00:02:40.000] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 114 [00:02:41.000] Project '/dev/null/inferredProject1*' (Inferred)
-Info 115 [00:02:42.000] Files (7)
+Info 30 [00:01:17.000] File '/user/username/projects/myproject/product/node_modules/module1/index.ts' exists - use it as a name resolution result.
+Info 31 [00:01:18.000] Resolving real path for '/user/username/projects/myproject/product/node_modules/module1/index.ts', result '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
+Info 32 [00:01:19.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
+Info 33 [00:01:20.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/file1.ts'. ========
+Info 34 [00:01:21.000] Module resolution kind is not specified, using 'Node10'.
+Info 35 [00:01:22.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 36 [00:01:23.000] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it.
+Info 37 [00:01:24.000] Directory '/user/username/projects/myproject/product/node_modules/@types' does not exist, skipping all lookups in it.
+Info 38 [00:01:25.000] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
+Info 39 [00:01:26.000] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
+Info 40 [00:01:27.000] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 41 [00:01:28.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 42 [00:01:29.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info
+Info 43 [00:01:30.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ========
+Info 44 [00:01:31.000] Module resolution kind is not specified, using 'Node10'.
+Info 45 [00:01:32.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 46 [00:01:33.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it.
+Info 47 [00:01:34.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/src'.
+Info 48 [00:01:35.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
+Info 49 [00:01:36.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts'. ========
+Info 50 [00:01:37.000] Module resolution kind is not specified, using 'Node10'.
+Info 51 [00:01:38.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 52 [00:01:39.000] Directory '/user/username/projects/myproject/product/src/feature/node_modules' does not exist, skipping all lookups in it.
+Info 53 [00:01:40.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/src'.
+Info 54 [00:01:41.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 55 [00:01:42.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 56 [00:01:43.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 57 [00:01:44.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 58 [00:01:45.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 59 [00:01:46.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info
+Info 60 [00:01:47.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/file4.ts'. ========
+Info 61 [00:01:48.000] Module resolution kind is not specified, using 'Node10'.
+Info 62 [00:01:49.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 63 [00:01:50.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it.
+Info 64 [00:01:51.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product'.
+Info 65 [00:01:52.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
+Info 66 [00:01:53.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/file4.ts'. ========
+Info 67 [00:01:54.000] Module resolution kind is not specified, using 'Node10'.
+Info 68 [00:01:55.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 69 [00:01:56.000] Directory '/user/username/projects/myproject/product/test/node_modules' does not exist, skipping all lookups in it.
+Info 70 [00:01:57.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product'.
+Info 71 [00:01:58.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 72 [00:01:59.000] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info
+Info 73 [00:02:00.000] ======== Resolving module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts'. ========
+Info 74 [00:02:01.000] Module resolution kind is not specified, using 'Node10'.
+Info 75 [00:02:02.000] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 76 [00:02:03.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it.
+Info 77 [00:02:04.000] Resolution for module 'module1' was found in cache from location '/user/username/projects/myproject/product/test'.
+Info 78 [00:02:05.000] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
+Info 79 [00:02:06.000] ======== Resolving module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts'. ========
+Info 80 [00:02:07.000] Module resolution kind is not specified, using 'Node10'.
+Info 81 [00:02:08.000] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 82 [00:02:09.000] Directory '/user/username/projects/myproject/product/test/src/node_modules' does not exist, skipping all lookups in it.
+Info 83 [00:02:10.000] Resolution for module 'module2' was found in cache from location '/user/username/projects/myproject/product/test'.
+Info 84 [00:02:11.000] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
+Info 85 [00:02:12.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
+Info 86 [00:02:13.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 87 [00:02:14.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 88 [00:02:15.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 89 [00:02:16.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 90 [00:02:17.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 91 [00:02:18.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/feature 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 92 [00:02:19.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 93 [00:02:20.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 94 [00:02:21.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 95 [00:02:22.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/test/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 96 [00:02:23.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 97 [00:02:24.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations
+Info 98 [00:02:25.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
+Info 99 [00:02:26.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
+Info 100 [00:02:27.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
+Info 101 [00:02:28.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/product/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
+Info 102 [00:02:29.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
+Info 103 [00:02:30.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots
+Info 104 [00:02:31.000] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 105 [00:02:32.000] Project '/dev/null/inferredProject1*' (Inferred)
+Info 106 [00:02:33.000] Files (7)
/a/lib/lib.d.ts
/user/username/projects/myproject/product/node_modules/module1/index.ts
/user/username/projects/myproject/node_modules/module2/index.ts
@@ -183,26 +174,26 @@ Info 115 [00:02:42.000] Files (7)
file1.ts
Root file specified for compilation
-Info 116 [00:02:43.000] -----------------------------------------------
-Info 117 [00:02:44.000] Project '/dev/null/inferredProject1*' (Inferred)
-Info 117 [00:02:45.000] Files (7)
+Info 107 [00:02:34.000] -----------------------------------------------
+Info 108 [00:02:35.000] Project '/dev/null/inferredProject1*' (Inferred)
+Info 108 [00:02:36.000] Files (7)
-Info 117 [00:02:46.000] -----------------------------------------------
-Info 117 [00:02:47.000] Open files:
-Info 117 [00:02:48.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
-Info 117 [00:02:49.000] Projects: /dev/null/inferredProject1*
-Info 117 [00:02:56.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/src/feature/file2.ts 1:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info
-Info 118 [00:02:57.000] Scheduled: /dev/null/inferredProject1*
-Info 119 [00:02:58.000] Scheduled: *ensureProjectForOpenFiles*
-Info 120 [00:02:59.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/src/feature/file2.ts 1:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info
-Info 121 [00:03:03.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/test/src/file3.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info
-Info 122 [00:03:04.000] Scheduled: /dev/null/inferredProject1*, Cancelled earlier one
-Info 123 [00:03:05.000] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one
-Info 124 [00:03:06.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/test/src/file3.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info
-Info 125 [00:03:10.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/test/file4.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info
-Info 126 [00:03:11.000] Scheduled: /dev/null/inferredProject1*, Cancelled earlier one
-Info 127 [00:03:12.000] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one
-Info 128 [00:03:13.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/test/file4.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info
+Info 108 [00:02:37.000] -----------------------------------------------
+Info 108 [00:02:38.000] Open files:
+Info 108 [00:02:39.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
+Info 108 [00:02:40.000] Projects: /dev/null/inferredProject1*
+Info 108 [00:02:47.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/src/feature/file2.ts 1:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info
+Info 109 [00:02:48.000] Scheduled: /dev/null/inferredProject1*
+Info 110 [00:02:49.000] Scheduled: *ensureProjectForOpenFiles*
+Info 111 [00:02:50.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/src/feature/file2.ts 1:: WatchInfo: /user/username/projects/myproject/product/src/feature/file2.ts 500 undefined WatchType: Closed Script info
+Info 112 [00:02:54.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/test/src/file3.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info
+Info 113 [00:02:55.000] Scheduled: /dev/null/inferredProject1*, Cancelled earlier one
+Info 114 [00:02:56.000] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one
+Info 115 [00:02:57.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/test/src/file3.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/src/file3.ts 500 undefined WatchType: Closed Script info
+Info 116 [00:03:01.000] FileWatcher:: Triggered with /user/username/projects/myproject/product/test/file4.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info
+Info 117 [00:03:02.000] Scheduled: /dev/null/inferredProject1*, Cancelled earlier one
+Info 118 [00:03:03.000] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one
+Info 119 [00:03:04.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/product/test/file4.ts 1:: WatchInfo: /user/username/projects/myproject/product/test/file4.ts 500 undefined WatchType: Closed Script info
Before running timeout callbacks
//// [/user/username/projects/myproject/product/src/file1.ts]
import "./feature/file2"; import "../test/file4"; import "../test/src/file3"; import { module1 } from "module1";import { module2 } from "module2";import { module1 } from "module1";import { module2 } from "module2";
@@ -261,38 +252,38 @@ FsWatchesRecursive::
/user/username/projects/myproject/product/src/feature:
{}
-Info 129 [00:03:14.000] Running: /dev/null/inferredProject1*
-Info 130 [00:03:15.000] Starting updateGraphWorker: Project: /dev/null/inferredProject1*
-Info 131 [00:03:16.000] Reusing resolution of module './feature/file2' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/src/feature/file2.ts'.
-Info 132 [00:03:17.000] Reusing resolution of module '../test/file4' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/test/file4.ts'.
-Info 133 [00:03:18.000] Reusing resolution of module '../test/src/file3' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/test/src/file3.ts'.
-Info 134 [00:03:19.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
-Info 135 [00:03:20.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 136 [00:03:21.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
-Info 137 [00:03:22.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 138 [00:03:23.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
-Info 139 [00:03:24.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 140 [00:03:25.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
-Info 141 [00:03:26.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
-Info 142 [00:03:27.000] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
-Info 143 [00:03:28.000] Different program with same set of files
-Info 144 [00:03:29.000] Running: *ensureProjectForOpenFiles*
-Info 145 [00:03:30.000] Before ensureProjectForOpenFiles:
-Info 146 [00:03:31.000] Project '/dev/null/inferredProject1*' (Inferred)
-Info 146 [00:03:32.000] Files (7)
+Info 120 [00:03:05.000] Running: /dev/null/inferredProject1*
+Info 121 [00:03:06.000] Starting updateGraphWorker: Project: /dev/null/inferredProject1*
+Info 122 [00:03:07.000] Reusing resolution of module './feature/file2' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/src/feature/file2.ts'.
+Info 123 [00:03:08.000] Reusing resolution of module '../test/file4' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/test/file4.ts'.
+Info 124 [00:03:09.000] Reusing resolution of module '../test/src/file3' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/test/src/file3.ts'.
+Info 125 [00:03:10.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
+Info 126 [00:03:11.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/file1.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 127 [00:03:12.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
+Info 128 [00:03:13.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/src/feature/file2.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 129 [00:03:14.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
+Info 130 [00:03:15.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/file4.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 131 [00:03:16.000] Reusing resolution of module 'module1' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
+Info 132 [00:03:17.000] Reusing resolution of module 'module2' from '/user/username/projects/myproject/product/test/src/file3.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'.
+Info 133 [00:03:18.000] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
+Info 134 [00:03:19.000] Different program with same set of files
+Info 135 [00:03:20.000] Running: *ensureProjectForOpenFiles*
+Info 136 [00:03:21.000] Before ensureProjectForOpenFiles:
+Info 137 [00:03:22.000] Project '/dev/null/inferredProject1*' (Inferred)
+Info 137 [00:03:23.000] Files (7)
-Info 146 [00:03:33.000] -----------------------------------------------
-Info 146 [00:03:34.000] Open files:
-Info 146 [00:03:35.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
-Info 146 [00:03:36.000] Projects: /dev/null/inferredProject1*
-Info 146 [00:03:37.000] After ensureProjectForOpenFiles:
-Info 147 [00:03:38.000] Project '/dev/null/inferredProject1*' (Inferred)
-Info 147 [00:03:39.000] Files (7)
+Info 137 [00:03:24.000] -----------------------------------------------
+Info 137 [00:03:25.000] Open files:
+Info 137 [00:03:26.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
+Info 137 [00:03:27.000] Projects: /dev/null/inferredProject1*
+Info 137 [00:03:28.000] After ensureProjectForOpenFiles:
+Info 138 [00:03:29.000] Project '/dev/null/inferredProject1*' (Inferred)
+Info 138 [00:03:30.000] Files (7)
-Info 147 [00:03:40.000] -----------------------------------------------
-Info 147 [00:03:41.000] Open files:
-Info 147 [00:03:42.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
-Info 147 [00:03:43.000] Projects: /dev/null/inferredProject1*
+Info 138 [00:03:31.000] -----------------------------------------------
+Info 138 [00:03:32.000] Open files:
+Info 138 [00:03:33.000] FileName: /user/username/projects/myproject/product/src/file1.ts ProjectRootPath: undefined
+Info 138 [00:03:34.000] Projects: /dev/null/inferredProject1*
After running timeout callbacks
PolledWatches::
diff --git a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js
index c42b906dd20ad..9f1dd300f277e 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js
@@ -88,42 +88,36 @@ Info 16 [00:00:45.000] Module resolution kind is not specified, using 'Node10'
Info 17 [00:00:46.000] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info 18 [00:00:47.000] Directory '/src/projects/app/node_modules' does not exist, skipping all lookups in it.
Info 19 [00:00:48.000] File '/src/projects/node_modules/moduleX/package.json' does not exist.
-Info 20 [00:00:49.000] File '/src/projects/node_modules/moduleX.ts' does not exist.
-Info 21 [00:00:50.000] File '/src/projects/node_modules/moduleX.tsx' does not exist.
-Info 22 [00:00:51.000] File '/src/projects/node_modules/moduleX.d.ts' does not exist.
-Info 23 [00:00:52.000] File '/src/projects/node_modules/moduleX/index.ts' does not exist.
-Info 24 [00:00:53.000] File '/src/projects/node_modules/moduleX/index.tsx' does not exist.
-Info 25 [00:00:54.000] File '/src/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result.
-Info 26 [00:00:55.000] Resolving real path for '/src/projects/node_modules/moduleX/index.d.ts', result '/src/projects/node_modules/moduleX/index.d.ts'.
-Info 27 [00:00:56.000] ======== Module name 'moduleX' was successfully resolved to '/src/projects/node_modules/moduleX/index.d.ts'. ========
-Info 28 [00:00:57.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 29 [00:00:58.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 30 [00:00:59.000] ======== Resolving module '../common/moduleB' from '/src/projects/app/appB.ts'. ========
-Info 31 [00:01:00.000] Module resolution kind is not specified, using 'Node10'.
-Info 32 [00:01:01.000] Loading module as file / folder, candidate module location '/src/projects/common/moduleB', target file types: TypeScript, Declaration.
-Info 33 [00:01:02.000] File '/src/projects/common/moduleB.ts' exists - use it as a name resolution result.
-Info 34 [00:01:03.000] ======== Module name '../common/moduleB' was successfully resolved to '/src/projects/common/moduleB.ts'. ========
-Info 35 [00:01:04.000] FileWatcher:: Added:: WatchInfo: /src/projects/common/moduleB.ts 500 undefined WatchType: Closed Script info
-Info 36 [00:01:05.000] ======== Resolving module 'moduleX' from '/src/projects/common/moduleB.ts'. ========
-Info 37 [00:01:06.000] Using compiler options of project reference redirect '/src/projects/common/tsconfig.json'.
-Info 38 [00:01:07.000] Module resolution kind is not specified, using 'Node10'.
-Info 39 [00:01:08.000] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 40 [00:01:09.000] Directory '/src/projects/common/node_modules' does not exist, skipping all lookups in it.
-Info 41 [00:01:10.000] File '/src/projects/node_modules/moduleX/package.json' does not exist according to earlier cached lookups.
-Info 42 [00:01:11.000] File '/src/projects/node_modules/moduleX.ts' does not exist.
-Info 43 [00:01:12.000] File '/src/projects/node_modules/moduleX.tsx' does not exist.
-Info 44 [00:01:13.000] File '/src/projects/node_modules/moduleX.d.ts' does not exist.
-Info 45 [00:01:14.000] File '/src/projects/node_modules/moduleX/index.ts' does not exist.
-Info 46 [00:01:15.000] File '/src/projects/node_modules/moduleX/index.tsx' does not exist.
-Info 47 [00:01:16.000] File '/src/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result.
-Info 48 [00:01:17.000] Resolving real path for '/src/projects/node_modules/moduleX/index.d.ts', result '/src/projects/node_modules/moduleX/index.d.ts'.
-Info 49 [00:01:18.000] ======== Module name 'moduleX' was successfully resolved to '/src/projects/node_modules/moduleX/index.d.ts'. ========
-Info 50 [00:01:19.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Failed Lookup Locations
-Info 51 [00:01:20.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Failed Lookup Locations
-Info 52 [00:01:21.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /src/projects/app/tsconfig.json WatchType: Missing file
-Info 53 [00:01:22.000] Finishing updateGraphWorker: Project: /src/projects/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 54 [00:01:23.000] Project '/src/projects/app/tsconfig.json' (Configured)
-Info 55 [00:01:24.000] Files (4)
+Info 20 [00:00:49.000] File '/src/projects/node_modules/moduleX/index.ts' does not exist.
+Info 21 [00:00:50.000] File '/src/projects/node_modules/moduleX/index.tsx' does not exist.
+Info 22 [00:00:51.000] File '/src/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result.
+Info 23 [00:00:52.000] Resolving real path for '/src/projects/node_modules/moduleX/index.d.ts', result '/src/projects/node_modules/moduleX/index.d.ts'.
+Info 24 [00:00:53.000] ======== Module name 'moduleX' was successfully resolved to '/src/projects/node_modules/moduleX/index.d.ts'. ========
+Info 25 [00:00:54.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 26 [00:00:55.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 27 [00:00:56.000] ======== Resolving module '../common/moduleB' from '/src/projects/app/appB.ts'. ========
+Info 28 [00:00:57.000] Module resolution kind is not specified, using 'Node10'.
+Info 29 [00:00:58.000] Loading module as file / folder, candidate module location '/src/projects/common/moduleB', target file types: TypeScript, Declaration.
+Info 30 [00:00:59.000] File '/src/projects/common/moduleB.ts' exists - use it as a name resolution result.
+Info 31 [00:01:00.000] ======== Module name '../common/moduleB' was successfully resolved to '/src/projects/common/moduleB.ts'. ========
+Info 32 [00:01:01.000] FileWatcher:: Added:: WatchInfo: /src/projects/common/moduleB.ts 500 undefined WatchType: Closed Script info
+Info 33 [00:01:02.000] ======== Resolving module 'moduleX' from '/src/projects/common/moduleB.ts'. ========
+Info 34 [00:01:03.000] Using compiler options of project reference redirect '/src/projects/common/tsconfig.json'.
+Info 35 [00:01:04.000] Module resolution kind is not specified, using 'Node10'.
+Info 36 [00:01:05.000] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 37 [00:01:06.000] Directory '/src/projects/common/node_modules' does not exist, skipping all lookups in it.
+Info 38 [00:01:07.000] File '/src/projects/node_modules/moduleX/package.json' does not exist according to earlier cached lookups.
+Info 39 [00:01:08.000] File '/src/projects/node_modules/moduleX/index.ts' does not exist.
+Info 40 [00:01:09.000] File '/src/projects/node_modules/moduleX/index.tsx' does not exist.
+Info 41 [00:01:10.000] File '/src/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result.
+Info 42 [00:01:11.000] Resolving real path for '/src/projects/node_modules/moduleX/index.d.ts', result '/src/projects/node_modules/moduleX/index.d.ts'.
+Info 43 [00:01:12.000] ======== Module name 'moduleX' was successfully resolved to '/src/projects/node_modules/moduleX/index.d.ts'. ========
+Info 44 [00:01:13.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Failed Lookup Locations
+Info 45 [00:01:14.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Failed Lookup Locations
+Info 46 [00:01:15.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /src/projects/app/tsconfig.json WatchType: Missing file
+Info 47 [00:01:16.000] Finishing updateGraphWorker: Project: /src/projects/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 48 [00:01:17.000] Project '/src/projects/app/tsconfig.json' (Configured)
+Info 49 [00:01:18.000] Files (4)
/src/projects/node_modules/moduleX/index.d.ts
/src/projects/app/appA.ts
/src/projects/common/moduleB.ts
@@ -140,16 +134,16 @@ Info 55 [00:01:24.000] Files (4)
appB.ts
Matched by default include pattern '**/*'
-Info 56 [00:01:25.000] -----------------------------------------------
-Info 57 [00:01:26.000] Search path: /src/projects/app
-Info 58 [00:01:27.000] For info: /src/projects/app/tsconfig.json :: No config files found.
-Info 59 [00:01:28.000] Project '/src/projects/app/tsconfig.json' (Configured)
-Info 59 [00:01:29.000] Files (4)
+Info 50 [00:01:19.000] -----------------------------------------------
+Info 51 [00:01:20.000] Search path: /src/projects/app
+Info 52 [00:01:21.000] For info: /src/projects/app/tsconfig.json :: No config files found.
+Info 53 [00:01:22.000] Project '/src/projects/app/tsconfig.json' (Configured)
+Info 53 [00:01:23.000] Files (4)
-Info 59 [00:01:30.000] -----------------------------------------------
-Info 59 [00:01:31.000] Open files:
-Info 59 [00:01:32.000] FileName: /src/projects/app/appB.ts ProjectRootPath: undefined
-Info 59 [00:01:33.000] Projects: /src/projects/app/tsconfig.json
+Info 53 [00:01:24.000] -----------------------------------------------
+Info 53 [00:01:25.000] Open files:
+Info 53 [00:01:26.000] FileName: /src/projects/app/appB.ts ProjectRootPath: undefined
+Info 53 [00:01:27.000] Projects: /src/projects/app/tsconfig.json
After request
PolledWatches::
@@ -176,7 +170,7 @@ FsWatchesRecursive::
/src/projects/node_modules:
{}
-Info 59 [00:01:34.000] response:
+Info 53 [00:01:28.000] response:
{
"responseRequired": false
}
\ No newline at end of file
diff --git a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js
index 9d487b1fa599c..9ac29bd43edd8 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js
@@ -87,37 +87,34 @@ Info 16 [00:00:45.000] Module resolution kind is not specified, using 'Node10'
Info 17 [00:00:46.000] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info 18 [00:00:47.000] Directory '/src/projects/app/node_modules' does not exist, skipping all lookups in it.
Info 19 [00:00:48.000] File '/src/projects/node_modules/moduleX/package.json' does not exist.
-Info 20 [00:00:49.000] File '/src/projects/node_modules/moduleX.ts' does not exist.
-Info 21 [00:00:50.000] File '/src/projects/node_modules/moduleX.tsx' does not exist.
-Info 22 [00:00:51.000] File '/src/projects/node_modules/moduleX.d.ts' does not exist.
-Info 23 [00:00:52.000] File '/src/projects/node_modules/moduleX/index.ts' does not exist.
-Info 24 [00:00:53.000] File '/src/projects/node_modules/moduleX/index.tsx' does not exist.
-Info 25 [00:00:54.000] File '/src/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result.
-Info 26 [00:00:55.000] Resolving real path for '/src/projects/node_modules/moduleX/index.d.ts', result '/src/projects/node_modules/moduleX/index.d.ts'.
-Info 27 [00:00:56.000] ======== Module name 'moduleX' was successfully resolved to '/src/projects/node_modules/moduleX/index.d.ts'. ========
-Info 28 [00:00:57.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 29 [00:00:58.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 30 [00:00:59.000] ======== Resolving module '../common/moduleB' from '/src/projects/app/appB.ts'. ========
-Info 31 [00:01:00.000] Module resolution kind is not specified, using 'Node10'.
-Info 32 [00:01:01.000] Loading module as file / folder, candidate module location '/src/projects/common/moduleB', target file types: TypeScript, Declaration.
-Info 33 [00:01:02.000] File '/src/projects/common/moduleB.ts' exists - use it as a name resolution result.
-Info 34 [00:01:03.000] ======== Module name '../common/moduleB' was successfully resolved to '/src/projects/common/moduleB.ts'. ========
-Info 35 [00:01:04.000] FileWatcher:: Added:: WatchInfo: /src/projects/common/moduleB.ts 500 undefined WatchType: Closed Script info
-Info 36 [00:01:05.000] ======== Resolving module 'moduleX' from '/src/projects/common/moduleB.ts'. ========
-Info 37 [00:01:06.000] Using compiler options of project reference redirect '/src/projects/common/tsconfig.json'.
-Info 38 [00:01:07.000] Module resolution kind is not specified, using 'Node10'.
-Info 39 [00:01:08.000] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration.
-Info 40 [00:01:09.000] Directory '/src/projects/common/node_modules' does not exist, skipping all lookups in it.
-Info 41 [00:01:10.000] Resolution for module 'moduleX' was found in cache from location '/src/projects'.
-Info 42 [00:01:11.000] ======== Module name 'moduleX' was successfully resolved to '/src/projects/node_modules/moduleX/index.d.ts'. ========
-Info 43 [00:01:12.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Failed Lookup Locations
-Info 44 [00:01:13.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Failed Lookup Locations
-Info 45 [00:01:14.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /src/projects/app/tsconfig.json WatchType: Missing file
-Info 46 [00:01:15.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules/@types 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Type roots
-Info 47 [00:01:16.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules/@types 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Type roots
-Info 48 [00:01:17.000] Finishing updateGraphWorker: Project: /src/projects/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 49 [00:01:18.000] Project '/src/projects/app/tsconfig.json' (Configured)
-Info 50 [00:01:19.000] Files (4)
+Info 20 [00:00:49.000] File '/src/projects/node_modules/moduleX/index.ts' does not exist.
+Info 21 [00:00:50.000] File '/src/projects/node_modules/moduleX/index.tsx' does not exist.
+Info 22 [00:00:51.000] File '/src/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result.
+Info 23 [00:00:52.000] Resolving real path for '/src/projects/node_modules/moduleX/index.d.ts', result '/src/projects/node_modules/moduleX/index.d.ts'.
+Info 24 [00:00:53.000] ======== Module name 'moduleX' was successfully resolved to '/src/projects/node_modules/moduleX/index.d.ts'. ========
+Info 25 [00:00:54.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 26 [00:00:55.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
+Info 27 [00:00:56.000] ======== Resolving module '../common/moduleB' from '/src/projects/app/appB.ts'. ========
+Info 28 [00:00:57.000] Module resolution kind is not specified, using 'Node10'.
+Info 29 [00:00:58.000] Loading module as file / folder, candidate module location '/src/projects/common/moduleB', target file types: TypeScript, Declaration.
+Info 30 [00:00:59.000] File '/src/projects/common/moduleB.ts' exists - use it as a name resolution result.
+Info 31 [00:01:00.000] ======== Module name '../common/moduleB' was successfully resolved to '/src/projects/common/moduleB.ts'. ========
+Info 32 [00:01:01.000] FileWatcher:: Added:: WatchInfo: /src/projects/common/moduleB.ts 500 undefined WatchType: Closed Script info
+Info 33 [00:01:02.000] ======== Resolving module 'moduleX' from '/src/projects/common/moduleB.ts'. ========
+Info 34 [00:01:03.000] Using compiler options of project reference redirect '/src/projects/common/tsconfig.json'.
+Info 35 [00:01:04.000] Module resolution kind is not specified, using 'Node10'.
+Info 36 [00:01:05.000] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info 37 [00:01:06.000] Directory '/src/projects/common/node_modules' does not exist, skipping all lookups in it.
+Info 38 [00:01:07.000] Resolution for module 'moduleX' was found in cache from location '/src/projects'.
+Info 39 [00:01:08.000] ======== Module name 'moduleX' was successfully resolved to '/src/projects/node_modules/moduleX/index.d.ts'. ========
+Info 40 [00:01:09.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Failed Lookup Locations
+Info 41 [00:01:10.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Failed Lookup Locations
+Info 42 [00:01:11.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /src/projects/app/tsconfig.json WatchType: Missing file
+Info 43 [00:01:12.000] DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules/@types 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Type roots
+Info 44 [00:01:13.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /src/projects/app/node_modules/@types 1 undefined Project: /src/projects/app/tsconfig.json WatchType: Type roots
+Info 45 [00:01:14.000] Finishing updateGraphWorker: Project: /src/projects/app/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 46 [00:01:15.000] Project '/src/projects/app/tsconfig.json' (Configured)
+Info 47 [00:01:16.000] Files (4)
/src/projects/node_modules/moduleX/index.d.ts
/src/projects/app/appA.ts
/src/projects/common/moduleB.ts
@@ -134,16 +131,16 @@ Info 50 [00:01:19.000] Files (4)
appB.ts
Matched by default include pattern '**/*'
-Info 51 [00:01:20.000] -----------------------------------------------
-Info 52 [00:01:21.000] Search path: /src/projects/app
-Info 53 [00:01:22.000] For info: /src/projects/app/tsconfig.json :: No config files found.
-Info 54 [00:01:23.000] Project '/src/projects/app/tsconfig.json' (Configured)
-Info 54 [00:01:24.000] Files (4)
+Info 48 [00:01:17.000] -----------------------------------------------
+Info 49 [00:01:18.000] Search path: /src/projects/app
+Info 50 [00:01:19.000] For info: /src/projects/app/tsconfig.json :: No config files found.
+Info 51 [00:01:20.000] Project '/src/projects/app/tsconfig.json' (Configured)
+Info 51 [00:01:21.000] Files (4)
-Info 54 [00:01:25.000] -----------------------------------------------
-Info 54 [00:01:26.000] Open files:
-Info 54 [00:01:27.000] FileName: /src/projects/app/appB.ts ProjectRootPath: undefined
-Info 54 [00:01:28.000] Projects: /src/projects/app/tsconfig.json
+Info 51 [00:01:22.000] -----------------------------------------------
+Info 51 [00:01:23.000] Open files:
+Info 51 [00:01:24.000] FileName: /src/projects/app/appB.ts ProjectRootPath: undefined
+Info 51 [00:01:25.000] Projects: /src/projects/app/tsconfig.json
After request
PolledWatches::
@@ -172,7 +169,7 @@ FsWatchesRecursive::
/src/projects/node_modules:
{}
-Info 54 [00:01:29.000] response:
+Info 51 [00:01:26.000] response:
{
"responseRequired": false
}
\ No newline at end of file
diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js
index 27a3ab2f80630..fc720013fb56d 100644
--- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js
+++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js
@@ -515,15 +515,17 @@ Info 58 [00:01:56.000] Running: /users/username/projects/myproject/javascript/
Info 59 [00:01:57.000] Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
Info 60 [00:01:58.000] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info
Info 61 [00:01:59.000] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution
-Info 62 [00:02:00.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 63 [00:02:01.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 64 [00:02:02.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 65 [00:02:03.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 66 [00:02:04.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 67 [00:02:05.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 68 [00:02:06.000] Finishing updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
-Info 69 [00:02:07.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
-Info 70 [00:02:08.000] Files (3)
+Info 62 [00:02:00.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 63 [00:02:01.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 64 [00:02:02.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 65 [00:02:03.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 66 [00:02:04.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 67 [00:02:05.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 68 [00:02:06.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 69 [00:02:07.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 70 [00:02:08.000] Finishing updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
+Info 71 [00:02:09.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
+Info 72 [00:02:10.000] Files (3)
/a/lib/lib.d.ts
/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts
@@ -536,26 +538,26 @@ Info 70 [00:02:08.000] Files (3)
src/datetime/baseDate.ts
Matched by include pattern 'src' in 'tsconfig.json'
-Info 71 [00:02:09.000] -----------------------------------------------
-Info 72 [00:02:10.000] Running: *ensureProjectForOpenFiles*
-Info 73 [00:02:11.000] Before ensureProjectForOpenFiles:
-Info 74 [00:02:12.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
-Info 74 [00:02:13.000] Files (3)
-
-Info 74 [00:02:14.000] -----------------------------------------------
-Info 74 [00:02:15.000] Open files:
-Info 74 [00:02:16.000] FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject
-Info 74 [00:02:17.000] Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
-Info 74 [00:02:18.000] After ensureProjectForOpenFiles:
-Info 75 [00:02:19.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
-Info 75 [00:02:20.000] Files (3)
-
-Info 75 [00:02:21.000] -----------------------------------------------
-Info 75 [00:02:22.000] Open files:
-Info 75 [00:02:23.000] FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject
-Info 75 [00:02:24.000] Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
-Info 75 [00:02:25.000] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts
-Info 76 [00:02:26.000] event:
+Info 73 [00:02:11.000] -----------------------------------------------
+Info 74 [00:02:12.000] Running: *ensureProjectForOpenFiles*
+Info 75 [00:02:13.000] Before ensureProjectForOpenFiles:
+Info 76 [00:02:14.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
+Info 76 [00:02:15.000] Files (3)
+
+Info 76 [00:02:16.000] -----------------------------------------------
+Info 76 [00:02:17.000] Open files:
+Info 76 [00:02:18.000] FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject
+Info 76 [00:02:19.000] Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 76 [00:02:20.000] After ensureProjectForOpenFiles:
+Info 77 [00:02:21.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
+Info 77 [00:02:22.000] Files (3)
+
+Info 77 [00:02:23.000] -----------------------------------------------
+Info 77 [00:02:24.000] Open files:
+Info 77 [00:02:25.000] FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject
+Info 77 [00:02:26.000] Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 77 [00:02:27.000] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts
+Info 78 [00:02:28.000] event:
{"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts"]}}
After running timeout callbacks
@@ -582,10 +584,8 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 77 [00:02:27.000] request:
+Info 79 [00:02:29.000] request:
{
"command": "geterr",
"arguments": {
@@ -622,8 +622,6 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
After request
@@ -650,10 +648,8 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 78 [00:02:28.000] response:
+Info 80 [00:02:30.000] response:
{
"responseRequired": false
}
@@ -682,10 +678,8 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 79 [00:02:29.000] event:
+Info 81 [00:02:31.000] event:
{"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}}
After checking timeout queue length (1) and running
@@ -712,8 +706,6 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
Before running immediate callbacks and checking length (1)
@@ -740,10 +732,8 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 80 [00:02:30.000] event:
+Info 82 [00:02:32.000] event:
{"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}}
Before running immediate callbacks and checking length (1)
@@ -770,8 +760,6 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
Before running immediate callbacks and checking length (1)
@@ -798,12 +786,10 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 81 [00:02:31.000] event:
+Info 83 [00:02:33.000] event:
{"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}}
-Info 82 [00:02:32.000] event:
+Info 84 [00:02:34.000] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":3}}
Before running immediate callbacks and checking length (1)
@@ -830,13 +816,11 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 83 [00:02:36.000] FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 1:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file
-Info 84 [00:02:37.000] Scheduled: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
-Info 85 [00:02:38.000] Scheduled: *ensureProjectForOpenFiles*
-Info 86 [00:02:39.000] Elapsed:: *ms FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 1:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file
+Info 85 [00:02:38.000] FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 1:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file
+Info 86 [00:02:39.000] Scheduled: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 87 [00:02:40.000] Scheduled: *ensureProjectForOpenFiles*
+Info 88 [00:02:41.000] Elapsed:: *ms FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 1:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file
Before running timeout callbacks
//// [/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json]
{"include":["src"],"compilerOptions":{"resolveJsonModule":true}}
@@ -865,14 +849,12 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 87 [00:02:40.000] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
-Info 88 [00:02:41.000] Reloading configured project /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
-Info 89 [00:02:42.000] event:
+Info 89 [00:02:42.000] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 90 [00:02:43.000] Reloading configured project /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 91 [00:02:44.000] event:
{"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json","reason":"Change in config file detected"}}
-Info 90 [00:02:43.000] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : {
+Info 92 [00:02:45.000] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : {
"rootNames": [
"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts"
],
@@ -881,10 +863,8 @@ Info 90 [00:02:43.000] Config: /users/username/projects/myproject/javascript/p
"configFilePath": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json"
}
}
-Info 91 [00:02:44.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 92 [00:02:45.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 93 [00:02:46.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 94 [00:02:47.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 93 [00:02:46.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 94 [00:02:47.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info 95 [00:02:48.000] FileWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution
Info 96 [00:02:49.000] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
Info 97 [00:02:50.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
@@ -897,42 +877,40 @@ Info 103 [00:02:56.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us
Info 104 [00:02:57.000] Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
Info 105 [00:02:58.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info 106 [00:02:59.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 107 [00:03:00.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 108 [00:03:01.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 109 [00:03:02.000] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution
-Info 110 [00:03:03.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 111 [00:03:04.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 112 [00:03:05.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 113 [00:03:06.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 114 [00:03:07.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 115 [00:03:08.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 116 [00:03:09.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 117 [00:03:10.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 118 [00:03:11.000] Finishing updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 119 [00:03:12.000] Different program with same set of files
-Info 120 [00:03:13.000] event:
+Info 107 [00:03:00.000] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution
+Info 108 [00:03:01.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 109 [00:03:02.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 110 [00:03:03.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 111 [00:03:04.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 112 [00:03:05.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 113 [00:03:06.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 114 [00:03:07.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 115 [00:03:08.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 116 [00:03:09.000] Finishing updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 117 [00:03:10.000] Different program with same set of files
+Info 118 [00:03:11.000] event:
{"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json"}}
-Info 121 [00:03:14.000] event:
+Info 119 [00:03:12.000] event:
{"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json","configFile":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json","diagnostics":[]}}
-Info 122 [00:03:15.000] Running: *ensureProjectForOpenFiles*
-Info 123 [00:03:16.000] Before ensureProjectForOpenFiles:
-Info 124 [00:03:17.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
-Info 124 [00:03:18.000] Files (3)
-
-Info 124 [00:03:19.000] -----------------------------------------------
-Info 124 [00:03:20.000] Open files:
-Info 124 [00:03:21.000] FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject
-Info 124 [00:03:22.000] Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
-Info 124 [00:03:23.000] After ensureProjectForOpenFiles:
-Info 125 [00:03:24.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
-Info 125 [00:03:25.000] Files (3)
-
-Info 125 [00:03:26.000] -----------------------------------------------
-Info 125 [00:03:27.000] Open files:
-Info 125 [00:03:28.000] FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject
-Info 125 [00:03:29.000] Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
-Info 125 [00:03:30.000] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts
-Info 126 [00:03:31.000] event:
+Info 120 [00:03:13.000] Running: *ensureProjectForOpenFiles*
+Info 121 [00:03:14.000] Before ensureProjectForOpenFiles:
+Info 122 [00:03:15.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
+Info 122 [00:03:16.000] Files (3)
+
+Info 122 [00:03:17.000] -----------------------------------------------
+Info 122 [00:03:18.000] Open files:
+Info 122 [00:03:19.000] FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject
+Info 122 [00:03:20.000] Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 122 [00:03:21.000] After ensureProjectForOpenFiles:
+Info 123 [00:03:22.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
+Info 123 [00:03:23.000] Files (3)
+
+Info 123 [00:03:24.000] -----------------------------------------------
+Info 123 [00:03:25.000] Open files:
+Info 123 [00:03:26.000] FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject
+Info 123 [00:03:27.000] Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 123 [00:03:28.000] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts
+Info 124 [00:03:29.000] event:
{"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts"]}}
After running timeout callbacks
@@ -959,8 +937,6 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
Before running timeout callbacks
@@ -987,10 +963,8 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 127 [00:03:32.000] event:
+Info 125 [00:03:30.000] event:
{"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}}
After running timeout callbacks
@@ -1017,5 +991,3 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js
index 3a5ed65c59224..0e3c77b9c079c 100644
--- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js
+++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js
@@ -68,20 +68,18 @@ Info 11 [00:01:02.000] FileWatcher:: Added:: WatchInfo: /users/username/projec
Info 12 [00:01:03.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
Info 13 [00:01:04.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info 14 [00:01:05.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 15 [00:01:06.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 16 [00:01:07.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info 17 [00:01:08.000] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution
-Info 18 [00:01:09.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 19 [00:01:10.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 20 [00:01:11.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 21 [00:01:12.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 22 [00:01:13.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 23 [00:01:14.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 24 [00:01:15.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 25 [00:01:16.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
-Info 26 [00:01:17.000] Finishing updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 27 [00:01:18.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
-Info 28 [00:01:19.000] Files (3)
+Info 15 [00:01:06.000] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution
+Info 16 [00:01:07.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 17 [00:01:08.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 18 [00:01:09.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 19 [00:01:10.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 20 [00:01:11.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 21 [00:01:12.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 22 [00:01:13.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 23 [00:01:14.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
+Info 24 [00:01:15.000] Finishing updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
+Info 25 [00:01:16.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
+Info 26 [00:01:17.000] Files (3)
/a/lib/lib.d.ts
/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts
@@ -94,20 +92,20 @@ Info 28 [00:01:19.000] Files (3)
src/datetime/baseDate.ts
Matched by include pattern 'src' in 'tsconfig.json'
-Info 29 [00:01:20.000] -----------------------------------------------
-Info 30 [00:01:21.000] event:
+Info 27 [00:01:18.000] -----------------------------------------------
+Info 28 [00:01:19.000] event:
{"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json"}}
-Info 31 [00:01:22.000] event:
+Info 29 [00:01:20.000] event:
{"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":1,"tsSize":55,"tsx":0,"tsxSize":0,"dts":2,"dtsSize":370,"deferred":0,"deferredSize":0},"compilerOptions":{},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":true,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}}
-Info 32 [00:01:23.000] event:
+Info 30 [00:01:21.000] event:
{"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","configFile":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json","diagnostics":[]}}
-Info 33 [00:01:24.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
-Info 33 [00:01:25.000] Files (3)
+Info 31 [00:01:22.000] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured)
+Info 31 [00:01:23.000] Files (3)
-Info 33 [00:01:26.000] -----------------------------------------------
-Info 33 [00:01:27.000] Open files:
-Info 33 [00:01:28.000] FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject
-Info 33 [00:01:29.000] Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 31 [00:01:24.000] -----------------------------------------------
+Info 31 [00:01:25.000] Open files:
+Info 31 [00:01:26.000] FileName: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts ProjectRootPath: /users/username/projects/myproject
+Info 31 [00:01:27.000] Projects: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
After request
PolledWatches::
@@ -133,14 +131,12 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 33 [00:01:30.000] response:
+Info 31 [00:01:28.000] response:
{
"responseRequired": false
}
-Info 34 [00:01:31.000] request:
+Info 32 [00:01:29.000] request:
{
"command": "geterr",
"arguments": {
@@ -177,8 +173,6 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
After request
@@ -205,10 +199,8 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 35 [00:01:32.000] response:
+Info 33 [00:01:30.000] response:
{
"responseRequired": false
}
@@ -237,10 +229,8 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 36 [00:01:33.000] event:
+Info 34 [00:01:31.000] event:
{"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}}
After checking timeout queue length (1) and running
@@ -267,8 +257,6 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
Before running immediate callbacks and checking length (1)
@@ -295,10 +283,8 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 37 [00:01:34.000] event:
+Info 35 [00:01:32.000] event:
{"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}}
Before running immediate callbacks and checking length (1)
@@ -325,8 +311,6 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
Before running immediate callbacks and checking length (1)
@@ -353,12 +337,10 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 38 [00:01:35.000] event:
+Info 36 [00:01:33.000] event:
{"seq":0,"type":"event","event":"suggestionDiag","body":{"file":"/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts","diagnostics":[]}}
-Info 39 [00:01:36.000] event:
+Info 37 [00:01:34.000] event:
{"seq":0,"type":"event","event":"requestCompleted","body":{"request_seq":2}}
Before running immediate callbacks and checking length (1)
@@ -385,14 +367,12 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 40 [00:01:38.000] FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 2:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info
-Info 41 [00:01:39.000] FileWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info
-Info 42 [00:01:40.000] Scheduled: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
-Info 43 [00:01:41.000] Scheduled: *ensureProjectForOpenFiles*
-Info 44 [00:01:42.000] Elapsed:: *ms FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 2:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info
+Info 38 [00:01:36.000] FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 2:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info
+Info 39 [00:01:37.000] FileWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info
+Info 40 [00:01:38.000] Scheduled: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 41 [00:01:39.000] Scheduled: *ensureProjectForOpenFiles*
+Info 42 [00:01:40.000] Elapsed:: *ms FileWatcher:: Triggered with /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 2:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info
Before running timeout callbacks
//// [/users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts] deleted
@@ -417,11 +397,11 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
- {}
-Info 45 [00:01:45.000] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
-Info 46 [00:01:46.000] Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 43 [00:01:43.000] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 44 [00:01:44.000] Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
+Info 45 [00:01:45.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info 46 [00:01:46.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info 47 [00:01:47.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info 48 [00:01:48.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info 49 [00:01:49.000] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
diff --git a/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json b/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json
index 702c35909103d..f7227e54a333b 100644
--- a/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json
+++ b/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json
@@ -3,58 +3,22 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
- "File '/foo/node_modules/xyz.ts' does not exist.",
- "File '/foo/node_modules/xyz.tsx' does not exist.",
- "File '/foo/node_modules/xyz.d.ts' does not exist.",
- "File '/foo/node_modules/@types/xyz.d.ts' does not exist.",
- "File '/node_modules/xyz.ts' does not exist.",
- "File '/node_modules/xyz.tsx' does not exist.",
- "File '/node_modules/xyz.d.ts' does not exist.",
- "File '/node_modules/@types/xyz.d.ts' does not exist.",
"Loading module 'xyz' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
- "File '/foo/node_modules/xyz.js' does not exist.",
- "File '/foo/node_modules/xyz.jsx' does not exist.",
- "File '/node_modules/xyz.js' does not exist.",
- "File '/node_modules/xyz.jsx' does not exist.",
"======== Module name 'xyz' was not resolved. ========",
"======== Resolving module 'pdq' from '/foo/bar/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'pdq' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
- "File '/foo/node_modules/pdq.ts' does not exist.",
- "File '/foo/node_modules/pdq.tsx' does not exist.",
- "File '/foo/node_modules/pdq.d.ts' does not exist.",
- "File '/foo/node_modules/@types/pdq.d.ts' does not exist.",
- "File '/node_modules/pdq.ts' does not exist.",
- "File '/node_modules/pdq.tsx' does not exist.",
- "File '/node_modules/pdq.d.ts' does not exist.",
- "File '/node_modules/@types/pdq.d.ts' does not exist.",
"Loading module 'pdq' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
- "File '/foo/node_modules/pdq.js' does not exist.",
- "File '/foo/node_modules/pdq.jsx' does not exist.",
- "File '/node_modules/pdq.js' does not exist.",
- "File '/node_modules/pdq.jsx' does not exist.",
"======== Module name 'pdq' was not resolved. ========",
"======== Resolving module 'abc' from '/foo/bar/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'abc' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
- "File '/foo/node_modules/abc.ts' does not exist.",
- "File '/foo/node_modules/abc.tsx' does not exist.",
- "File '/foo/node_modules/abc.d.ts' does not exist.",
- "File '/foo/node_modules/@types/abc.d.ts' does not exist.",
- "File '/node_modules/abc.ts' does not exist.",
- "File '/node_modules/abc.tsx' does not exist.",
- "File '/node_modules/abc.d.ts' does not exist.",
- "File '/node_modules/@types/abc.d.ts' does not exist.",
"Loading module 'abc' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
- "File '/foo/node_modules/abc.js' does not exist.",
- "File '/foo/node_modules/abc.jsx' does not exist.",
- "File '/node_modules/abc.js' does not exist.",
- "File '/node_modules/abc.jsx' does not exist.",
"======== Module name 'abc' was not resolved. ========",
"======== Resolving type reference directive 'grumpy', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/node_modules/@types,/node_modules/@types'. ========",
"Resolving with primary search path '/foo/node_modules/@types, /node_modules/@types'.",
diff --git a/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json b/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json
index f63c1df7b543c..93f8a05c4b277 100644
--- a/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json
+++ b/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json
@@ -3,14 +3,8 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
- "File '/node_modules/xyz.ts' does not exist.",
- "File '/node_modules/xyz.tsx' does not exist.",
- "File '/node_modules/xyz.d.ts' does not exist.",
- "File '/node_modules/@types/xyz.d.ts' does not exist.",
"Loading module 'xyz' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
- "File '/node_modules/xyz.js' does not exist.",
- "File '/node_modules/xyz.jsx' does not exist.",
"======== Module name 'xyz' was not resolved. ========",
"======== Resolving type reference directive 'foo', containing file '/src/__inferred type names__.ts', root directory '/node_modules/@types'. ========",
"Resolving with primary search path '/node_modules/@types'.",
diff --git a/tests/baselines/reference/typesVersions.ambientModules.trace.json b/tests/baselines/reference/typesVersions.ambientModules.trace.json
index 26dcd7b646752..b601384944185 100644
--- a/tests/baselines/reference/typesVersions.ambientModules.trace.json
+++ b/tests/baselines/reference/typesVersions.ambientModules.trace.json
@@ -3,9 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at 'tests/cases/conformance/moduleResolution/node_modules/ext/package.json'.",
- "File 'tests/cases/conformance/moduleResolution/node_modules/ext.ts' does not exist.",
- "File 'tests/cases/conformance/moduleResolution/node_modules/ext.tsx' does not exist.",
- "File 'tests/cases/conformance/moduleResolution/node_modules/ext.d.ts' does not exist.",
"'package.json' has a 'typesVersions' field with version-specific path mappings.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/moduleResolution/node_modules/ext/index'.",
diff --git a/tests/baselines/reference/typesVersions.multiFile.trace.json b/tests/baselines/reference/typesVersions.multiFile.trace.json
index 828bca79743de..e2cd9c4af18e5 100644
--- a/tests/baselines/reference/typesVersions.multiFile.trace.json
+++ b/tests/baselines/reference/typesVersions.multiFile.trace.json
@@ -3,9 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at 'tests/cases/conformance/moduleResolution/node_modules/ext/package.json'.",
- "File 'tests/cases/conformance/moduleResolution/node_modules/ext.ts' does not exist.",
- "File 'tests/cases/conformance/moduleResolution/node_modules/ext.tsx' does not exist.",
- "File 'tests/cases/conformance/moduleResolution/node_modules/ext.d.ts' does not exist.",
"'package.json' has a 'typesVersions' field with version-specific path mappings.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/moduleResolution/node_modules/ext/index'.",
diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json
index abb2cbed00e10..aacfcb1db141e 100644
--- a/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json
+++ b/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json
@@ -3,9 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json'.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.tsx' does not exist.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.d.ts' does not exist.",
"'package.json' has a 'typesVersions' field with version-specific path mappings.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/declarationEmit/node_modules/ext/index'.",
diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json
index 997959868aed6..40281fafa180a 100644
--- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json
+++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json
@@ -3,9 +3,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json'.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.tsx' does not exist.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.d.ts' does not exist.",
"'package.json' has a 'typesVersions' field with version-specific path mappings.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/declarationEmit/node_modules/ext/index'.",
diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json
index 7fe6894ef38b8..812858a2dc168 100644
--- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json
+++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json
@@ -27,9 +27,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.tsx' does not exist.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.d.ts' does not exist.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/declarationEmit/node_modules/ext/index'.",
"'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'.",
diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json
index 7b5092cb7f02e..da3d5749f53d6 100644
--- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json
+++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json
@@ -11,9 +11,6 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.tsx' does not exist.",
- "File 'tests/cases/conformance/declarationEmit/node_modules/ext.d.ts' does not exist.",
"'package.json' has a 'typesVersions' field with version-specific path mappings.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/declarationEmit/node_modules/ext/index'.",
diff --git a/tests/baselines/reference/typingsLookup4.trace.json b/tests/baselines/reference/typingsLookup4.trace.json
index 9a138c347e597..50606f33bd469 100644
--- a/tests/baselines/reference/typingsLookup4.trace.json
+++ b/tests/baselines/reference/typingsLookup4.trace.json
@@ -2,11 +2,7 @@
"======== Resolving module 'jquery' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'jquery' from 'node_modules' folder, target file types: TypeScript, Declaration.",
- "File '/node_modules/jquery.ts' does not exist.",
- "File '/node_modules/jquery.tsx' does not exist.",
- "File '/node_modules/jquery.d.ts' does not exist.",
"Found 'package.json' at '/node_modules/@types/jquery/package.json'.",
- "File '/node_modules/@types/jquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'.",
"File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result.",
@@ -15,11 +11,7 @@
"======== Resolving module 'kquery' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'kquery' from 'node_modules' folder, target file types: TypeScript, Declaration.",
- "File '/node_modules/kquery.ts' does not exist.",
- "File '/node_modules/kquery.tsx' does not exist.",
- "File '/node_modules/kquery.d.ts' does not exist.",
"Found 'package.json' at '/node_modules/@types/kquery/package.json'.",
- "File '/node_modules/@types/kquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'.",
"File '/node_modules/@types/kquery/kquery' does not exist.",
@@ -32,11 +24,7 @@
"======== Resolving module 'lquery' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'lquery' from 'node_modules' folder, target file types: TypeScript, Declaration.",
- "File '/node_modules/lquery.ts' does not exist.",
- "File '/node_modules/lquery.tsx' does not exist.",
- "File '/node_modules/lquery.d.ts' does not exist.",
"Found 'package.json' at '/node_modules/@types/lquery/package.json'.",
- "File '/node_modules/@types/lquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'.",
"File '/node_modules/@types/lquery/lquery' does not exist.",
@@ -47,11 +35,7 @@
"======== Resolving module 'mquery' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'mquery' from 'node_modules' folder, target file types: TypeScript, Declaration.",
- "File '/node_modules/mquery.ts' does not exist.",
- "File '/node_modules/mquery.tsx' does not exist.",
- "File '/node_modules/mquery.d.ts' does not exist.",
"Found 'package.json' at '/node_modules/@types/mquery/package.json'.",
- "File '/node_modules/@types/mquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'.",
"File '/node_modules/@types/mquery/mquery' does not exist.",
diff --git a/tests/baselines/reference/typingsLookupAmd.trace.json b/tests/baselines/reference/typingsLookupAmd.trace.json
index 3c6dc24042290..b9f34ba54cff7 100644
--- a/tests/baselines/reference/typingsLookupAmd.trace.json
+++ b/tests/baselines/reference/typingsLookupAmd.trace.json
@@ -12,7 +12,6 @@
"File '/b.d.ts' does not exist.",
"Directory '/x/y/node_modules' does not exist, skipping all lookups in it.",
"File '/x/node_modules/@types/b/package.json' does not exist.",
- "File '/x/node_modules/@types/b.d.ts' does not exist.",
"File '/x/node_modules/@types/b/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/x/node_modules/@types/b/index.d.ts', result '/x/node_modules/@types/b/index.d.ts'.",
"======== Module name 'b' was successfully resolved to '/x/node_modules/@types/b/index.d.ts'. ========",
@@ -35,9 +34,7 @@
"File '/a.d.ts' does not exist.",
"Directory '/x/node_modules/@types/b/node_modules' does not exist, skipping all lookups in it.",
"Directory '/x/node_modules/@types/node_modules' does not exist, skipping all lookups in it.",
- "File '/x/node_modules/@types/a.d.ts' does not exist.",
"File '/node_modules/@types/a/package.json' does not exist.",
- "File '/node_modules/@types/a.d.ts' does not exist.",
"File '/node_modules/@types/a/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/a/index.d.ts', result '/node_modules/@types/a/index.d.ts'.",
"======== Module name 'a' was successfully resolved to '/node_modules/@types/a/index.d.ts'. ========",
diff --git a/tests/cases/compiler/cachedModuleResolution1.ts b/tests/cases/compiler/cachedModuleResolution1.ts
index 3ef09ea0ea512..bab6679d87ecf 100644
--- a/tests/cases/compiler/cachedModuleResolution1.ts
+++ b/tests/cases/compiler/cachedModuleResolution1.ts
@@ -1,11 +1,11 @@
// @moduleResolution: node
// @traceResolution: true
-// @filename: /a/b/node_modules/foo.d.ts
+// @filename: /a/b/node_modules/foo/index.d.ts
export declare let x: number
// @filename: /a/b/c/d/e/app.ts
import {x} from "foo";
// @filename: /a/b/c/lib.ts
-import {x} from "foo";
\ No newline at end of file
+import {x} from "foo";
diff --git a/tests/cases/compiler/cachedModuleResolution2.ts b/tests/cases/compiler/cachedModuleResolution2.ts
index 38aaf4e609df3..22546b58b9936 100644
--- a/tests/cases/compiler/cachedModuleResolution2.ts
+++ b/tests/cases/compiler/cachedModuleResolution2.ts
@@ -1,7 +1,7 @@
// @moduleResolution: node
// @traceResolution: true
-// @filename: /a/b/node_modules/foo.d.ts
+// @filename: /a/b/node_modules/foo/index.d.ts
export declare let x: number
// @filename: /a/b/c/lib.ts
diff --git a/tests/cases/compiler/cachedModuleResolution5.ts b/tests/cases/compiler/cachedModuleResolution5.ts
index e37b14fc1a0b7..5235c59578c4a 100644
--- a/tests/cases/compiler/cachedModuleResolution5.ts
+++ b/tests/cases/compiler/cachedModuleResolution5.ts
@@ -1,11 +1,11 @@
// @moduleResolution: node
// @traceResolution: true
-// @filename: /a/b/node_modules/foo.d.ts
+// @filename: /a/b/node_modules/foo/index.d.ts
export declare let x: number
// @filename: /a/b/c/d/e/app.ts
import {x} from "foo";
// @filename: /a/b/lib.ts
-import {x} from "foo";
\ No newline at end of file
+import {x} from "foo";
diff --git a/tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts b/tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts
index a6d77a5156709..5b248e67813f3 100644
--- a/tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts
+++ b/tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts
@@ -1,5 +1,5 @@
// @declaration: true
-// @filename: node_modules/umd.d.ts
+// @filename: node_modules/umd/index.d.ts
export as namespace UMD;
export type Thing = {
diff --git a/tests/cases/compiler/nodeResolution2.ts b/tests/cases/compiler/nodeResolution2.ts
index 9d1972c72390e..91c7f70ace0f1 100644
--- a/tests/cases/compiler/nodeResolution2.ts
+++ b/tests/cases/compiler/nodeResolution2.ts
@@ -1,8 +1,8 @@
// @module: commonjs
// @moduleResolution: node
-// @filename: node_modules/a.d.ts
+// @filename: node_modules/a/index.d.ts
export var x: number;
// @filename: b.ts
-import y = require("a");
\ No newline at end of file
+import y = require("a");
diff --git a/tests/cases/compiler/nodeResolution5.ts b/tests/cases/compiler/nodeResolution5.ts
index 313dabd7899ff..b4283edb76ad3 100644
--- a/tests/cases/compiler/nodeResolution5.ts
+++ b/tests/cases/compiler/nodeResolution5.ts
@@ -1,7 +1,7 @@
// @module: commonjs
// @moduleResolution: node
-// @filename: node_modules/a.d.ts
+// @filename: node_modules/a/index.d.ts
declare module "a" {
var x: number;
}
diff --git a/tests/cases/compiler/nodeResolution6.ts b/tests/cases/compiler/nodeResolution6.ts
index 3f6dc81c84780..01164e5a9dc0c 100644
--- a/tests/cases/compiler/nodeResolution6.ts
+++ b/tests/cases/compiler/nodeResolution6.ts
@@ -1,10 +1,10 @@
// @module: commonjs
// @moduleResolution: node
-// @filename: node_modules/ref.ts
+// @filename: node_modules/a/ref.ts
var x = 1;
-// @filename: node_modules/a.d.ts
+// @filename: node_modules/a/index.d.ts
///
export declare var y;
diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts b/tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts
index 3606ab08cd10c..dffcd83c3128f 100644
--- a/tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts
+++ b/tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts
@@ -39,5 +39,5 @@ export var y = 1;
// @filename: c:/root/shared/components/file3/index.d.ts
export var z: number;
-// @filename: c:/node_modules/file4.ts
-export var z1 = 1;
\ No newline at end of file
+// @filename: c:/node_modules/file4/index.ts
+export var z1 = 1;
diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts b/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts
index 1ba9630e0cfab..35e65a076d4f2 100644
--- a/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts
+++ b/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts
@@ -44,6 +44,6 @@ export let b: number;
// @filename: c:/root/src/file3/index.d.ts
export let x: number;
-// @filename: c:/node_modules/module3.d.ts
+// @filename: c:/node_modules/module3/index.d.ts
export let y: number;
diff --git a/tests/cases/compiler/requireOfJsonFileNonRelative.ts b/tests/cases/compiler/requireOfJsonFileNonRelative.ts
deleted file mode 100644
index 0cfce0bdb1a0e..0000000000000
--- a/tests/cases/compiler/requireOfJsonFileNonRelative.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-// @module: commonjs
-// @outdir: out/
-// @allowJs: true
-// @fullEmitPaths: true
-// @resolveJsonModule: true
-
-// @Filename: /src/projects/file1.ts
-import b1 = require('b.json');
-let x = b1.a;
-import b2 = require('c.json');
-if (x) {
- let b = b2.b;
- x = (b1.b === b);
-}
-
-// @Filename: /src/projects/node_modules/b.json
-{
- "a": true,
- "b": "hello"
-}
-
-// @Filename: /src/node_modules/c.json
-{
- "a": true,
- "b": "hello"
-}
\ No newline at end of file
diff --git a/tests/cases/compiler/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.ts b/tests/cases/compiler/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.ts
index 4c8181b7a1007..922b8b6fcca00 100644
--- a/tests/cases/compiler/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.ts
+++ b/tests/cases/compiler/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.ts
@@ -8,11 +8,11 @@
import f = require("f"); // should work to f.ts
let fnumber: number = f;
-// @Filename: /src/node_modules/f.json
+// @Filename: /src/node_modules/f/index.json
{
"a": true,
"b": "hello"
}
-// @Filename: /src/node_modules/f.ts
-export = 10;
\ No newline at end of file
+// @Filename: /src/node_modules/f/index.ts
+export = 10;
From 299c42bf8139bc57cac2ed469e592abcd012164b Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Thu, 16 Feb 2023 10:07:15 -0800
Subject: [PATCH 02/10] In node_modules, skip modules that look like absolute
URIs
---
src/compiler/diagnosticMessages.json | 4 ++
src/compiler/moduleNameResolver.ts | 7 ++-
.../reference/nodeColonModuleResolution.js | 31 ++++++++++
.../nodeColonModuleResolution.symbols | 60 ++++++++++++++++++
.../nodeColonModuleResolution.trace.json | 20 ++++++
.../reference/nodeColonModuleResolution.types | 61 +++++++++++++++++++
...liasWithRoot_differentRootTypes.trace.json | 16 +++++
.../compiler/nodeColonModuleResolution.ts | 26 ++++++++
8 files changed, 224 insertions(+), 1 deletion(-)
create mode 100644 tests/baselines/reference/nodeColonModuleResolution.js
create mode 100644 tests/baselines/reference/nodeColonModuleResolution.symbols
create mode 100644 tests/baselines/reference/nodeColonModuleResolution.trace.json
create mode 100644 tests/baselines/reference/nodeColonModuleResolution.types
create mode 100644 tests/cases/compiler/nodeColonModuleResolution.ts
diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json
index b8ffc66a08443..eecd58d2e9e6c 100644
--- a/src/compiler/diagnosticMessages.json
+++ b/src/compiler/diagnosticMessages.json
@@ -4893,6 +4893,10 @@
"category": "Message",
"code": 6163
},
+ "Skipping module '{0}' that looks like an absolute URI.": {
+ "category": "Message",
+ "code": 6164
+ },
"Do not truncate error messages.": {
"category": "Message",
"code": 6165
diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts
index c91943993ea42..e76b1642146a9 100644
--- a/src/compiler/moduleNameResolver.ts
+++ b/src/compiler/moduleNameResolver.ts
@@ -2839,6 +2839,12 @@ function loadModuleFromImmediateNodeModulesDirectory(extensions: Extensions, mod
function loadModuleFromSpecificNodeModulesDirectory(extensions: Extensions, moduleName: string, nodeModulesDirectory: string, nodeModulesDirectoryExists: boolean, state: ModuleResolutionState, cache: ModuleResolutionCache | undefined, redirectedReference: ResolvedProjectReference | undefined): Resolved | undefined {
const candidate = normalizePath(combinePaths(nodeModulesDirectory, moduleName));
+ if (moduleName.indexOf(":") > -1) {
+ if (state.traceEnabled) {
+ trace(state.host, Diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI, candidate)
+ }
+ return undefined
+ }
const { packageName, rest } = parsePackageName(moduleName);
const packageDirectory = combinePaths(nodeModulesDirectory, packageName);
@@ -2909,7 +2915,6 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions: Extensions, modu
return fromPaths.value;
}
}
-
return loader(extensions, candidate, !nodeModulesDirectoryExists, state);
}
diff --git a/tests/baselines/reference/nodeColonModuleResolution.js b/tests/baselines/reference/nodeColonModuleResolution.js
new file mode 100644
index 0000000000000..40ba92a641ebd
--- /dev/null
+++ b/tests/baselines/reference/nodeColonModuleResolution.js
@@ -0,0 +1,31 @@
+//// [tests/cases/compiler/nodeColonModuleResolution.ts] ////
+
+//// [ph.d.ts]
+declare module 'ph' {
+ namespace constants {
+ const NODE_PERFORMANCE_GC_MAJOR: number;
+ const NODE_PERFORMANCE_GC_MINOR: number;
+ const NODE_PERFORMANCE_GC_INCREMENTAL: number;
+ const NODE_PERFORMANCE_GC_WEAKCB: number;
+ const NODE_PERFORMANCE_GC_FLAGS_NO: number;
+ const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
+ const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
+ const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
+ const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
+ }
+}
+declare module 'node:ph' {
+ export * from 'ph';
+}
+//// [main.ts]
+import * as ph from 'node:ph'
+console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE)
+
+
+//// [main.js]
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var ph = require("node:ph");
+console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE);
diff --git a/tests/baselines/reference/nodeColonModuleResolution.symbols b/tests/baselines/reference/nodeColonModuleResolution.symbols
new file mode 100644
index 0000000000000..6f266393c7905
--- /dev/null
+++ b/tests/baselines/reference/nodeColonModuleResolution.symbols
@@ -0,0 +1,60 @@
+=== /a/b/node_modules/@types/node/ph.d.ts ===
+declare module 'ph' {
+>'ph' : Symbol("ph", Decl(ph.d.ts, 0, 0))
+
+ namespace constants {
+>constants : Symbol(constants, Decl(ph.d.ts, 0, 21))
+
+ const NODE_PERFORMANCE_GC_MAJOR: number;
+>NODE_PERFORMANCE_GC_MAJOR : Symbol(NODE_PERFORMANCE_GC_MAJOR, Decl(ph.d.ts, 2, 13))
+
+ const NODE_PERFORMANCE_GC_MINOR: number;
+>NODE_PERFORMANCE_GC_MINOR : Symbol(NODE_PERFORMANCE_GC_MINOR, Decl(ph.d.ts, 3, 13))
+
+ const NODE_PERFORMANCE_GC_INCREMENTAL: number;
+>NODE_PERFORMANCE_GC_INCREMENTAL : Symbol(NODE_PERFORMANCE_GC_INCREMENTAL, Decl(ph.d.ts, 4, 13))
+
+ const NODE_PERFORMANCE_GC_WEAKCB: number;
+>NODE_PERFORMANCE_GC_WEAKCB : Symbol(NODE_PERFORMANCE_GC_WEAKCB, Decl(ph.d.ts, 5, 13))
+
+ const NODE_PERFORMANCE_GC_FLAGS_NO: number;
+>NODE_PERFORMANCE_GC_FLAGS_NO : Symbol(NODE_PERFORMANCE_GC_FLAGS_NO, Decl(ph.d.ts, 6, 13))
+
+ const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
+>NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED : Symbol(NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED, Decl(ph.d.ts, 7, 13))
+
+ const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
+>NODE_PERFORMANCE_GC_FLAGS_FORCED : Symbol(NODE_PERFORMANCE_GC_FLAGS_FORCED, Decl(ph.d.ts, 8, 13))
+
+ const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
+>NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING : Symbol(NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING, Decl(ph.d.ts, 9, 13))
+
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
+>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(ph.d.ts, 10, 13))
+
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
+>NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY : Symbol(NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY, Decl(ph.d.ts, 11, 13))
+
+ const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
+>NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE : Symbol(NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE, Decl(ph.d.ts, 12, 13))
+ }
+}
+declare module 'node:ph' {
+>'node:ph' : Symbol("node:ph", Decl(ph.d.ts, 14, 1))
+
+ export * from 'ph';
+}
+=== /a/b/main.ts ===
+import * as ph from 'node:ph'
+>ph : Symbol(ph, Decl(main.ts, 0, 6))
+
+console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE)
+>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
+>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
+>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
+>ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(ph.d.ts, 10, 13))
+>ph.constants : Symbol(ph.constants, Decl(ph.d.ts, 0, 21))
+>ph : Symbol(ph, Decl(main.ts, 0, 6))
+>constants : Symbol(ph.constants, Decl(ph.d.ts, 0, 21))
+>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(ph.d.ts, 10, 13))
+
diff --git a/tests/baselines/reference/nodeColonModuleResolution.trace.json b/tests/baselines/reference/nodeColonModuleResolution.trace.json
new file mode 100644
index 0000000000000..6c90ee42cf10d
--- /dev/null
+++ b/tests/baselines/reference/nodeColonModuleResolution.trace.json
@@ -0,0 +1,20 @@
+[
+ "======== Resolving module 'node:ph' from '/a/b/main.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module 'node:ph' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Skipping module '/a/b/node_modules/node:ph' that looks like an absolute URI.",
+ "Skipping module '/a/b/node_modules/@types/node:ph' that looks like an absolute URI.",
+ "Directory '/a/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module '/a/node_modules/node:ph' that looks like an absolute URI.",
+ "Skipping module '/a/node_modules/@types/node:ph' that looks like an absolute URI.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module '/node_modules/node:ph' that looks like an absolute URI.",
+ "Skipping module '/node_modules/@types/node:ph' that looks like an absolute URI.",
+ "Loading module 'node:ph' from 'node_modules' folder, target file types: JavaScript.",
+ "Skipping module '/a/b/node_modules/node:ph' that looks like an absolute URI.",
+ "Directory '/a/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module '/a/node_modules/node:ph' that looks like an absolute URI.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module '/node_modules/node:ph' that looks like an absolute URI.",
+ "======== Module name 'node:ph' was not resolved. ========"
+]
\ No newline at end of file
diff --git a/tests/baselines/reference/nodeColonModuleResolution.types b/tests/baselines/reference/nodeColonModuleResolution.types
new file mode 100644
index 0000000000000..ee664556aaa66
--- /dev/null
+++ b/tests/baselines/reference/nodeColonModuleResolution.types
@@ -0,0 +1,61 @@
+=== /a/b/node_modules/@types/node/ph.d.ts ===
+declare module 'ph' {
+>'ph' : typeof import("ph")
+
+ namespace constants {
+>constants : typeof constants
+
+ const NODE_PERFORMANCE_GC_MAJOR: number;
+>NODE_PERFORMANCE_GC_MAJOR : number
+
+ const NODE_PERFORMANCE_GC_MINOR: number;
+>NODE_PERFORMANCE_GC_MINOR : number
+
+ const NODE_PERFORMANCE_GC_INCREMENTAL: number;
+>NODE_PERFORMANCE_GC_INCREMENTAL : number
+
+ const NODE_PERFORMANCE_GC_WEAKCB: number;
+>NODE_PERFORMANCE_GC_WEAKCB : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_NO: number;
+>NODE_PERFORMANCE_GC_FLAGS_NO : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
+>NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
+>NODE_PERFORMANCE_GC_FLAGS_FORCED : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
+>NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
+>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
+>NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
+>NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE : number
+ }
+}
+declare module 'node:ph' {
+>'node:ph' : typeof import("node:ph")
+
+ export * from 'ph';
+}
+=== /a/b/main.ts ===
+import * as ph from 'node:ph'
+>ph : typeof ph
+
+console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE)
+>console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE) : void
+>console.log : (...data: any[]) => void
+>console : Console
+>log : (...data: any[]) => void
+>ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : number
+>ph.constants : typeof ph.constants
+>ph : typeof ph
+>constants : typeof ph.constants
+>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : number
+
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json
index 25aa7025fd38f..893919c67ea1a 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json
@@ -169,7 +169,11 @@
"Directory '/root/src/bar' does not exist, skipping all lookups in it.",
"Loading module 'file:///bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/root/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module 'file:///bar' that looks like an absolute URI.",
+ "Skipping module 'file:///bar' that looks like an absolute URI.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module 'file:///bar' that looks like an absolute URI.",
+ "Skipping module 'file:///bar' that looks like an absolute URI.",
"'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file:///bar'.",
"'paths' option is specified, looking for a pattern to match module name 'file:///bar'.",
"Module name 'file:///bar', matched pattern 'file:///*'.",
@@ -199,7 +203,11 @@
"Directory '/root/src/bar' does not exist, skipping all lookups in it.",
"Loading module 'file://c:/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/root/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module 'file://c:/bar' that looks like an absolute URI.",
+ "Skipping module 'file://c:/bar' that looks like an absolute URI.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module 'file://c:/bar' that looks like an absolute URI.",
+ "Skipping module 'file://c:/bar' that looks like an absolute URI.",
"'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://c:/bar'.",
"'paths' option is specified, looking for a pattern to match module name 'file://c:/bar'.",
"Module name 'file://c:/bar', matched pattern 'file://c:/*'.",
@@ -229,7 +237,11 @@
"Directory '/root/src/bar' does not exist, skipping all lookups in it.",
"Loading module 'file://server/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/root/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module 'file://server/bar' that looks like an absolute URI.",
+ "Skipping module 'file://server/bar' that looks like an absolute URI.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module 'file://server/bar' that looks like an absolute URI.",
+ "Skipping module 'file://server/bar' that looks like an absolute URI.",
"'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://server/bar'.",
"'paths' option is specified, looking for a pattern to match module name 'file://server/bar'.",
"Module name 'file://server/bar', matched pattern 'file://server/*'.",
@@ -259,7 +271,11 @@
"Directory '/root/src/bar' does not exist, skipping all lookups in it.",
"Loading module 'http://server/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/root/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module 'http://server/bar' that looks like an absolute URI.",
+ "Skipping module 'http://server/bar' that looks like an absolute URI.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Skipping module 'http://server/bar' that looks like an absolute URI.",
+ "Skipping module 'http://server/bar' that looks like an absolute URI.",
"'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'http://server/bar'.",
"'paths' option is specified, looking for a pattern to match module name 'http://server/bar'.",
"Module name 'http://server/bar', matched pattern 'http://server/*'.",
diff --git a/tests/cases/compiler/nodeColonModuleResolution.ts b/tests/cases/compiler/nodeColonModuleResolution.ts
new file mode 100644
index 0000000000000..e768e6ec8b66e
--- /dev/null
+++ b/tests/cases/compiler/nodeColonModuleResolution.ts
@@ -0,0 +1,26 @@
+// @moduleResolution: node
+// @traceResolution: true
+
+
+// @filename: /a/b/node_modules/@types/node/ph.d.ts
+declare module 'ph' {
+ namespace constants {
+ const NODE_PERFORMANCE_GC_MAJOR: number;
+ const NODE_PERFORMANCE_GC_MINOR: number;
+ const NODE_PERFORMANCE_GC_INCREMENTAL: number;
+ const NODE_PERFORMANCE_GC_WEAKCB: number;
+ const NODE_PERFORMANCE_GC_FLAGS_NO: number;
+ const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
+ const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
+ const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
+ const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
+ }
+}
+declare module 'node:ph' {
+ export * from 'ph';
+}
+// @filename: /a/b/main.ts
+import * as ph from 'node:ph'
+console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE)
From b27973209848594b2d9aef35e06e24e1b2c53827 Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Thu, 16 Feb 2023 10:09:50 -0800
Subject: [PATCH 03/10] lolcolons
---
src/compiler/moduleNameResolver.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts
index e76b1642146a9..8c5391574ab91 100644
--- a/src/compiler/moduleNameResolver.ts
+++ b/src/compiler/moduleNameResolver.ts
@@ -2841,9 +2841,9 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions: Extensions, modu
const candidate = normalizePath(combinePaths(nodeModulesDirectory, moduleName));
if (moduleName.indexOf(":") > -1) {
if (state.traceEnabled) {
- trace(state.host, Diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI, candidate)
+ trace(state.host, Diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI, candidate);
}
- return undefined
+ return undefined;
}
const { packageName, rest } = parsePackageName(moduleName);
const packageDirectory = combinePaths(nodeModulesDirectory, packageName);
From b05b6434905031e068fb10b376ae483fb6ec9777 Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Thu, 16 Feb 2023 15:32:27 -0800
Subject: [PATCH 04/10] Add test + skip more
Based on PR feedbac
---
src/compiler/diagnosticMessages.json | 2 +-
src/compiler/moduleNameResolver.ts | 12 ++---
.../nodeColonModuleResolution.trace.json | 17 +-----
.../reference/nodeColonModuleResolution2.js | 26 ++++++++++
.../nodeColonModuleResolution2.symbols | 51 ++++++++++++++++++
.../nodeColonModuleResolution2.trace.json | 17 ++++++
.../nodeColonModuleResolution2.types | 52 +++++++++++++++++++
.../compiler/nodeColonModuleResolution2.ts | 29 +++++++++++
8 files changed, 184 insertions(+), 22 deletions(-)
create mode 100644 tests/baselines/reference/nodeColonModuleResolution2.js
create mode 100644 tests/baselines/reference/nodeColonModuleResolution2.symbols
create mode 100644 tests/baselines/reference/nodeColonModuleResolution2.trace.json
create mode 100644 tests/baselines/reference/nodeColonModuleResolution2.types
create mode 100644 tests/cases/compiler/nodeColonModuleResolution2.ts
diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json
index eecd58d2e9e6c..d4aa27fa14ec5 100644
--- a/src/compiler/diagnosticMessages.json
+++ b/src/compiler/diagnosticMessages.json
@@ -4893,7 +4893,7 @@
"category": "Message",
"code": 6163
},
- "Skipping module '{0}' that looks like an absolute URI.": {
+ "Skipping module '{0}' that looks like an absolute URI, target file types: {1}.": {
"category": "Message",
"code": 6164
},
diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts
index 8c5391574ab91..090c8b0d5ef74 100644
--- a/src/compiler/moduleNameResolver.ts
+++ b/src/compiler/moduleNameResolver.ts
@@ -1770,6 +1770,12 @@ function nodeModuleNameResolverWorker(features: NodeResolutionFeatures, moduleNa
resolved = loadModuleFromSelfNameReference(extensions, moduleName, containingDirectory, state, cache, redirectedReference);
}
if (!resolved) {
+ if (moduleName.indexOf(":") > -1) {
+ if (traceEnabled) {
+ trace(host, Diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1, moduleName, formatExtensions(extensions));
+ }
+ return undefined;
+ }
if (traceEnabled) {
trace(host, Diagnostics.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1, moduleName, formatExtensions(extensions));
}
@@ -2839,12 +2845,6 @@ function loadModuleFromImmediateNodeModulesDirectory(extensions: Extensions, mod
function loadModuleFromSpecificNodeModulesDirectory(extensions: Extensions, moduleName: string, nodeModulesDirectory: string, nodeModulesDirectoryExists: boolean, state: ModuleResolutionState, cache: ModuleResolutionCache | undefined, redirectedReference: ResolvedProjectReference | undefined): Resolved | undefined {
const candidate = normalizePath(combinePaths(nodeModulesDirectory, moduleName));
- if (moduleName.indexOf(":") > -1) {
- if (state.traceEnabled) {
- trace(state.host, Diagnostics.Skipping_module_0_that_looks_like_an_absolute_URI, candidate);
- }
- return undefined;
- }
const { packageName, rest } = parsePackageName(moduleName);
const packageDirectory = combinePaths(nodeModulesDirectory, packageName);
diff --git a/tests/baselines/reference/nodeColonModuleResolution.trace.json b/tests/baselines/reference/nodeColonModuleResolution.trace.json
index 6c90ee42cf10d..1a6fb6282ae5b 100644
--- a/tests/baselines/reference/nodeColonModuleResolution.trace.json
+++ b/tests/baselines/reference/nodeColonModuleResolution.trace.json
@@ -1,20 +1,7 @@
[
"======== Resolving module 'node:ph' from '/a/b/main.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
- "Loading module 'node:ph' from 'node_modules' folder, target file types: TypeScript, Declaration.",
- "Skipping module '/a/b/node_modules/node:ph' that looks like an absolute URI.",
- "Skipping module '/a/b/node_modules/@types/node:ph' that looks like an absolute URI.",
- "Directory '/a/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module '/a/node_modules/node:ph' that looks like an absolute URI.",
- "Skipping module '/a/node_modules/@types/node:ph' that looks like an absolute URI.",
- "Directory '/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module '/node_modules/node:ph' that looks like an absolute URI.",
- "Skipping module '/node_modules/@types/node:ph' that looks like an absolute URI.",
- "Loading module 'node:ph' from 'node_modules' folder, target file types: JavaScript.",
- "Skipping module '/a/b/node_modules/node:ph' that looks like an absolute URI.",
- "Directory '/a/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module '/a/node_modules/node:ph' that looks like an absolute URI.",
- "Directory '/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module '/node_modules/node:ph' that looks like an absolute URI.",
+ "Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, Declaration.",
+ "Skipping module 'node:ph' that looks like an absolute URI, target file types: JavaScript.",
"======== Module name 'node:ph' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/nodeColonModuleResolution2.js b/tests/baselines/reference/nodeColonModuleResolution2.js
new file mode 100644
index 0000000000000..bbf0729e89776
--- /dev/null
+++ b/tests/baselines/reference/nodeColonModuleResolution2.js
@@ -0,0 +1,26 @@
+//// [tests/cases/compiler/nodeColonModuleResolution2.ts] ////
+
+//// [index.d.ts]
+export namespace constants {
+ const NODE_PERFORMANCE_GC_MAJOR: number;
+ const NODE_PERFORMANCE_GC_MINOR: number;
+ const NODE_PERFORMANCE_GC_INCREMENTAL: number;
+ const NODE_PERFORMANCE_GC_WEAKCB: number;
+ const NODE_PERFORMANCE_GC_FLAGS_NO: number;
+ const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
+ const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
+ const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
+ const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
+}
+//// [main.ts]
+import * as ph from 'fake:thing'
+console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE)
+
+
+//// [main.js]
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var ph = require("fake:thing");
+console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE);
diff --git a/tests/baselines/reference/nodeColonModuleResolution2.symbols b/tests/baselines/reference/nodeColonModuleResolution2.symbols
new file mode 100644
index 0000000000000..44c3e2407fbd3
--- /dev/null
+++ b/tests/baselines/reference/nodeColonModuleResolution2.symbols
@@ -0,0 +1,51 @@
+=== /a/b/node_modules/fake/thing/index.d.ts ===
+export namespace constants {
+>constants : Symbol(constants, Decl(index.d.ts, 0, 0))
+
+ const NODE_PERFORMANCE_GC_MAJOR: number;
+>NODE_PERFORMANCE_GC_MAJOR : Symbol(NODE_PERFORMANCE_GC_MAJOR, Decl(index.d.ts, 1, 9))
+
+ const NODE_PERFORMANCE_GC_MINOR: number;
+>NODE_PERFORMANCE_GC_MINOR : Symbol(NODE_PERFORMANCE_GC_MINOR, Decl(index.d.ts, 2, 9))
+
+ const NODE_PERFORMANCE_GC_INCREMENTAL: number;
+>NODE_PERFORMANCE_GC_INCREMENTAL : Symbol(NODE_PERFORMANCE_GC_INCREMENTAL, Decl(index.d.ts, 3, 9))
+
+ const NODE_PERFORMANCE_GC_WEAKCB: number;
+>NODE_PERFORMANCE_GC_WEAKCB : Symbol(NODE_PERFORMANCE_GC_WEAKCB, Decl(index.d.ts, 4, 9))
+
+ const NODE_PERFORMANCE_GC_FLAGS_NO: number;
+>NODE_PERFORMANCE_GC_FLAGS_NO : Symbol(NODE_PERFORMANCE_GC_FLAGS_NO, Decl(index.d.ts, 5, 9))
+
+ const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
+>NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED : Symbol(NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED, Decl(index.d.ts, 6, 9))
+
+ const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
+>NODE_PERFORMANCE_GC_FLAGS_FORCED : Symbol(NODE_PERFORMANCE_GC_FLAGS_FORCED, Decl(index.d.ts, 7, 9))
+
+ const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
+>NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING : Symbol(NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING, Decl(index.d.ts, 8, 9))
+
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
+>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(index.d.ts, 9, 9))
+
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
+>NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY : Symbol(NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY, Decl(index.d.ts, 10, 9))
+
+ const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
+>NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE : Symbol(NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE, Decl(index.d.ts, 11, 9))
+}
+=== /a/b/main.ts ===
+import * as ph from 'fake:thing'
+>ph : Symbol(ph, Decl(main.ts, 0, 6))
+
+console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE)
+>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
+>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
+>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
+>ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(index.d.ts, 9, 9))
+>ph.constants : Symbol(ph.constants, Decl(index.d.ts, 0, 0))
+>ph : Symbol(ph, Decl(main.ts, 0, 6))
+>constants : Symbol(ph.constants, Decl(index.d.ts, 0, 0))
+>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(index.d.ts, 9, 9))
+
diff --git a/tests/baselines/reference/nodeColonModuleResolution2.trace.json b/tests/baselines/reference/nodeColonModuleResolution2.trace.json
new file mode 100644
index 0000000000000..884aea0a3948d
--- /dev/null
+++ b/tests/baselines/reference/nodeColonModuleResolution2.trace.json
@@ -0,0 +1,17 @@
+[
+ "======== Resolving module 'fake:thing' from '/a/b/main.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "'paths' option is specified, looking for a pattern to match module name 'fake:thing'.",
+ "Module name 'fake:thing', matched pattern 'fake:thing'.",
+ "Trying substitution './node_modules/fake/thing', candidate module location: './node_modules/fake/thing'.",
+ "Loading module as file / folder, candidate module location '/a/b/node_modules/fake/thing', target file types: TypeScript, Declaration.",
+ "File '/a/b/node_modules/fake/thing.ts' does not exist.",
+ "File '/a/b/node_modules/fake/thing.tsx' does not exist.",
+ "File '/a/b/node_modules/fake/thing.d.ts' does not exist.",
+ "File '/a/b/node_modules/fake/thing/package.json' does not exist.",
+ "File '/a/b/node_modules/fake/thing/index.ts' does not exist.",
+ "File '/a/b/node_modules/fake/thing/index.tsx' does not exist.",
+ "File '/a/b/node_modules/fake/thing/index.d.ts' exists - use it as a name resolution result.",
+ "Resolving real path for '/a/b/node_modules/fake/thing/index.d.ts', result '/a/b/node_modules/fake/thing/index.d.ts'.",
+ "======== Module name 'fake:thing' was successfully resolved to '/a/b/node_modules/fake/thing/index.d.ts'. ========"
+]
\ No newline at end of file
diff --git a/tests/baselines/reference/nodeColonModuleResolution2.types b/tests/baselines/reference/nodeColonModuleResolution2.types
new file mode 100644
index 0000000000000..3a45690a68c2e
--- /dev/null
+++ b/tests/baselines/reference/nodeColonModuleResolution2.types
@@ -0,0 +1,52 @@
+=== /a/b/node_modules/fake/thing/index.d.ts ===
+export namespace constants {
+>constants : typeof constants
+
+ const NODE_PERFORMANCE_GC_MAJOR: number;
+>NODE_PERFORMANCE_GC_MAJOR : number
+
+ const NODE_PERFORMANCE_GC_MINOR: number;
+>NODE_PERFORMANCE_GC_MINOR : number
+
+ const NODE_PERFORMANCE_GC_INCREMENTAL: number;
+>NODE_PERFORMANCE_GC_INCREMENTAL : number
+
+ const NODE_PERFORMANCE_GC_WEAKCB: number;
+>NODE_PERFORMANCE_GC_WEAKCB : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_NO: number;
+>NODE_PERFORMANCE_GC_FLAGS_NO : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
+>NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
+>NODE_PERFORMANCE_GC_FLAGS_FORCED : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
+>NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
+>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
+>NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY : number
+
+ const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
+>NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE : number
+}
+=== /a/b/main.ts ===
+import * as ph from 'fake:thing'
+>ph : typeof ph
+
+console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE)
+>console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE) : void
+>console.log : (...data: any[]) => void
+>console : Console
+>log : (...data: any[]) => void
+>ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : number
+>ph.constants : typeof ph.constants
+>ph : typeof ph
+>constants : typeof ph.constants
+>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : number
+
diff --git a/tests/cases/compiler/nodeColonModuleResolution2.ts b/tests/cases/compiler/nodeColonModuleResolution2.ts
new file mode 100644
index 0000000000000..2c07f4e31d959
--- /dev/null
+++ b/tests/cases/compiler/nodeColonModuleResolution2.ts
@@ -0,0 +1,29 @@
+// @moduleResolution: node
+// @traceResolution: true
+
+
+// @filename: /a/b/tsconfig.json
+{
+ "compilerOptions": {
+ "paths": {
+ "fake:thing": ["./node_modules/fake/thing"]
+ }
+ }
+}
+// @filename: /a/b/node_modules/fake/thing/index.d.ts
+export namespace constants {
+ const NODE_PERFORMANCE_GC_MAJOR: number;
+ const NODE_PERFORMANCE_GC_MINOR: number;
+ const NODE_PERFORMANCE_GC_INCREMENTAL: number;
+ const NODE_PERFORMANCE_GC_WEAKCB: number;
+ const NODE_PERFORMANCE_GC_FLAGS_NO: number;
+ const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
+ const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
+ const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
+ const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
+ const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
+}
+// @filename: /a/b/main.ts
+import * as ph from 'fake:thing'
+console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE)
From 6bf4384872351985866ade6fdd276ea8d888f973 Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Fri, 17 Feb 2023 08:32:36 -0800
Subject: [PATCH 05/10] accept missed baseline
---
...liasWithRoot_differentRootTypes.trace.json | 32 +++----------------
1 file changed, 4 insertions(+), 28 deletions(-)
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json
index 893919c67ea1a..93f6180533dec 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.trace.json
@@ -167,13 +167,7 @@
"File '/root/src/bar.tsx' does not exist.",
"File '/root/src/bar.d.ts' does not exist.",
"Directory '/root/src/bar' does not exist, skipping all lookups in it.",
- "Loading module 'file:///bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
- "Directory '/root/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module 'file:///bar' that looks like an absolute URI.",
- "Skipping module 'file:///bar' that looks like an absolute URI.",
- "Directory '/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module 'file:///bar' that looks like an absolute URI.",
- "Skipping module 'file:///bar' that looks like an absolute URI.",
+ "Skipping module 'file:///bar' that looks like an absolute URI, target file types: TypeScript, Declaration.",
"'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file:///bar'.",
"'paths' option is specified, looking for a pattern to match module name 'file:///bar'.",
"Module name 'file:///bar', matched pattern 'file:///*'.",
@@ -201,13 +195,7 @@
"File '/root/src/bar.tsx' does not exist.",
"File '/root/src/bar.d.ts' does not exist.",
"Directory '/root/src/bar' does not exist, skipping all lookups in it.",
- "Loading module 'file://c:/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
- "Directory '/root/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module 'file://c:/bar' that looks like an absolute URI.",
- "Skipping module 'file://c:/bar' that looks like an absolute URI.",
- "Directory '/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module 'file://c:/bar' that looks like an absolute URI.",
- "Skipping module 'file://c:/bar' that looks like an absolute URI.",
+ "Skipping module 'file://c:/bar' that looks like an absolute URI, target file types: TypeScript, Declaration.",
"'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://c:/bar'.",
"'paths' option is specified, looking for a pattern to match module name 'file://c:/bar'.",
"Module name 'file://c:/bar', matched pattern 'file://c:/*'.",
@@ -235,13 +223,7 @@
"File '/root/src/bar.tsx' does not exist.",
"File '/root/src/bar.d.ts' does not exist.",
"Directory '/root/src/bar' does not exist, skipping all lookups in it.",
- "Loading module 'file://server/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
- "Directory '/root/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module 'file://server/bar' that looks like an absolute URI.",
- "Skipping module 'file://server/bar' that looks like an absolute URI.",
- "Directory '/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module 'file://server/bar' that looks like an absolute URI.",
- "Skipping module 'file://server/bar' that looks like an absolute URI.",
+ "Skipping module 'file://server/bar' that looks like an absolute URI, target file types: TypeScript, Declaration.",
"'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'file://server/bar'.",
"'paths' option is specified, looking for a pattern to match module name 'file://server/bar'.",
"Module name 'file://server/bar', matched pattern 'file://server/*'.",
@@ -269,13 +251,7 @@
"File '/root/src/bar.tsx' does not exist.",
"File '/root/src/bar.d.ts' does not exist.",
"Directory '/root/src/bar' does not exist, skipping all lookups in it.",
- "Loading module 'http://server/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
- "Directory '/root/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module 'http://server/bar' that looks like an absolute URI.",
- "Skipping module 'http://server/bar' that looks like an absolute URI.",
- "Directory '/node_modules' does not exist, skipping all lookups in it.",
- "Skipping module 'http://server/bar' that looks like an absolute URI.",
- "Skipping module 'http://server/bar' that looks like an absolute URI.",
+ "Skipping module 'http://server/bar' that looks like an absolute URI, target file types: TypeScript, Declaration.",
"'baseUrl' option is set to '/root', using this value to resolve non-relative module name 'http://server/bar'.",
"'paths' option is specified, looking for a pattern to match module name 'http://server/bar'.",
"Module name 'http://server/bar', matched pattern 'http://server/*'.",
From 1f469d2e96550d7320d2b1ecb30e298132e5e6c9 Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Wed, 10 May 2023 08:31:14 -0700
Subject: [PATCH 06/10] only skip resolving in ESM
---
src/compiler/moduleNameResolver.ts | 2 +-
.../cachedModuleResolution1.trace.json | 3 +
.../cachedModuleResolution2.trace.json | 3 +
.../cachedModuleResolution5.trace.json | 3 +
...esolvepackagejsonexports=false).trace.json | 3 +
...age_relativeImportWithinPackage.trace.json | 6 ++
...ativeImportWithinPackage_scoped.trace.json | 6 ++
.../libTypeScriptOverrideSimple.trace.json | 18 +++++
...bTypeScriptOverrideSimpleConfig.trace.json | 18 +++++
.../libTypeScriptSubfileResolving.trace.json | 18 +++++
...ypeScriptSubfileResolvingConfig.trace.json | 18 +++++
.../reference/library-reference-11.trace.json | 1 +
.../reference/library-reference-12.trace.json | 1 +
.../reference/library-reference-3.trace.json | 1 +
.../reference/library-reference-4.trace.json | 4 ++
.../reference/library-reference-5.trace.json | 4 ++
.../reference/library-reference-6.trace.json | 4 ++
.../reference/library-reference-7.trace.json | 1 +
...brary-reference-scoped-packages.trace.json | 5 ++
...NodeModuleJsDepthDefaultsToZero.trace.json | 5 ++
.../node-baseUrl-path-mappings.js | 18 ++++-
.../moduleResolution/node-baseUrl.js | 26 ++++++-
.../non-relative-module-name-as-directory.js | 30 ++++++++
...module-name-as-file-ts-files-not-loaded.js | 26 ++++++-
.../non-relative-module-name-as-file.js | 22 ++++++
.../non-relative-preserveSymlinks.js | 6 ++
...ive-preserves-originalPath-on-cache-hit.js | 18 +++++
...-relative-uses-originalPath-for-caching.js | 20 ++++++
...-name-as-directory-with-invalid-typings.js | 70 +++++++++++++++++++
.../type-reference-from-primary-location.js | 14 ++--
.../type-reference-from-secondary-location.js | 22 ++++--
...geIdWithRelativeAndAbsolutePath.trace.json | 3 +
...lutionWithExtensions_unexpected.trace.json | 9 +++
...utionWithExtensions_unexpected2.trace.json | 5 ++
...thExtensions_withAmbientPresent.trace.json | 5 ++
...WithSuffixes_one_externalModule.trace.json | 3 +
...thSuffixes_one_externalTSModule.trace.json | 3 +
.../moduleResolutionWithSymlinks.trace.json | 3 +
...onWithSymlinks_preserveSymlinks.trace.json | 13 ++++
...tionWithSymlinks_referenceTypes.trace.json | 6 ++
...solutionWithSymlinks_withOutDir.trace.json | 3 +
...ution_packageJson_scopedPackage.trace.json | 3 +
...ageRoot_mainFieldInSubDirectory.trace.json | 3 +
.../reference/node10IsNode_node.trace.json | 3 +
.../reference/node10IsNode_node10.trace.json | 3 +
.../nodeModulesAtTypesPriority.trace.json | 14 ++++
.../reference/packageJsonMain.trace.json | 15 ++++
.../packageJsonMain_isNonRecursive.trace.json | 5 ++
...pingBasedModuleResolution3_node.trace.json | 3 +
...pingBasedModuleResolution4_node.trace.json | 3 +
...pingBasedModuleResolution5_node.trace.json | 3 +
...pingBasedModuleResolution7_node.trace.json | 3 +
.../reference/requireOfJsonFileNonRelative.js | 34 +++++++++
.../requireOfJsonFileNonRelative.symbols | 48 +++++++++++++
.../requireOfJsonFileNonRelative.types | 59 ++++++++++++++++
...stic1(moduleresolution=bundler).trace.json | 12 ++++
...ostic1(moduleresolution=node16).trace.json | 4 ++
...le-declarations-from-non-modified-files.js | 15 ++++
...ge-affects-a-single-module-of-a-package.js | 6 ++
.../change-affects-imports.js | 4 ++
.../change-affects-tripleslash-references.js | 2 +
.../change-affects-type-directives.js | 4 ++
.../change-affects-type-references.js | 4 ++
...ge-does-not-affect-imports-or-type-refs.js | 4 ++
.../change-doesnot-affect-type-references.js | 4 ++
.../config-path-changes.js | 4 ++
.../fetches-imports-after-npm-install.js | 18 +++++
.../missing-file-is-created.js | 4 ++
.../missing-files-remain-missing.js | 4 ++
.../module-kind-changes.js | 4 ++
.../redirect-no-change.js | 24 +++++++
.../redirect-previous-duplicate-packages.js | 24 +++++++
.../redirect-target-changes.js | 24 +++++++
.../redirect-underlying-changes.js | 24 +++++++
...rect-with-getSourceFileByPath-no-change.js | 24 +++++++
...eFileByPath-previous-duplicate-packages.js | 24 +++++++
...with-getSourceFileByPath-target-changes.js | 24 +++++++
...-getSourceFileByPath-underlying-changes.js | 24 +++++++
.../resolution-cache-follows-imports.js | 1 +
...irectives-cache-follows-type-directives.js | 2 +
.../reuseProgramStructure/rootdir-changes.js | 4 ++
.../reference/scopedPackages.trace.json | 8 +++
.../scopedPackagesClassic.trace.json | 5 ++
.../with-config-with-redirection.js | 15 ++++
.../tsbuild/libraryResolution/with-config.js | 25 +++++++
...project-correctly-with-preserveSymlinks.js | 3 +
...-file-from-referenced-project-correctly.js | 3 +
.../with-config-with-redirection.js | 15 ++++
.../libraryResolution/with-config.js | 25 +++++++
...for-changes-to-package-json-main-fields.js | 9 +++
...t-correctly-with-cts-and-mts-extensions.js | 9 +++
...ther-symlinked-package-moduleCaseChange.js | 9 +++
...age-with-indirect-link-moduleCaseChange.js | 9 +++
...er-symlinked-package-with-indirect-link.js | 9 +++
...gh-source-and-another-symlinked-package.js | 9 +++
.../with-config-with-redirection.js | 12 ++++
.../tsc/libraryResolution/with-config.js | 20 ++++++
.../without-config-with-redirection.js | 12 ++++
.../tsc/libraryResolution/without-config.js | 20 ++++++
.../with-nodeNext-resolution.js | 3 +
.../with-config-with-redirection.js | 33 +++++++++
.../tscWatch/libraryResolution/with-config.js | 39 +++++++++++
.../without-config-with-redirection.js | 28 ++++++++
.../libraryResolution/without-config.js | 36 ++++++++++
.../type-reference-resolutions-reuse.js | 1 +
...for-changes-to-package-json-main-fields.js | 9 +++
.../reusing-type-ref-resolution.js | 14 ++++
.../scoped-package-installation.js | 8 +++
.../with-modules-linked-to-sibling-folder.js | 2 +
...ymlinks-to-folders-in-recursive-folders.js | 3 +
.../with-config-with-redirection.js | 33 +++++++++
.../tsserver/libraryResolution/with-config.js | 39 +++++++++++
...disableSourceOfProjectReferenceRedirect.js | 46 ++----------
...port-with-referenced-project-when-built.js | 46 ++----------
.../auto-import-with-referenced-project.js | 46 ++----------
...solution-is-built-with-preserveSymlinks.js | 2 +-
...-and-has-index.ts-and-solution-is-built.js | 2 +-
...tion-is-not-built-with-preserveSymlinks.js | 2 +-
...-has-index.ts-and-solution-is-not-built.js | 2 +-
...solution-is-built-with-preserveSymlinks.js | 2 +-
...th-scoped-package-and-solution-is-built.js | 2 +-
...tion-is-not-built-with-preserveSymlinks.js | 2 +-
...coped-package-and-solution-is-not-built.js | 2 +-
...ts-have-allowJs-and-emitDeclarationOnly.js | 4 ++
...unnecessary-lookup-invalidation-on-save.js | 9 +++
...an-load-typings-that-are-proper-modules.js | 2 +
...le-name-from-files-in-different-folders.js | 9 +++
...e-module-name-from-files-in-same-folder.js | 9 +++
...ative-module-name-from-inferred-project.js | 9 +++
.../not-sharing-across-references.js | 6 ++
.../sharing-across-references.js | 3 +
...tion-when-project-compiles-from-sources.js | 4 --
...mpiles-after-deleting-generated-folders.js | 10 ++-
...tiveScopedPackageCustomTypeRoot.trace.json | 4 ++
...mMultipleNodeModulesDirectories.trace.json | 44 ++++++++++++
...romNodeModulesInParentDirectory.trace.json | 10 +++
.../typesVersions.ambientModules.trace.json | 3 +
.../typesVersions.multiFile.trace.json | 3 +
...VersionsDeclarationEmit.ambient.trace.json | 3 +
...rsionsDeclarationEmit.multiFile.trace.json | 3 +
...it.multiFileBackReferenceToSelf.trace.json | 3 +
...ultiFileBackReferenceToUnmapped.trace.json | 3 +
.../reference/typingsLookup1.trace.json | 4 ++
.../reference/typingsLookup2.trace.json | 4 ++
.../reference/typingsLookup3.trace.json | 4 ++
.../reference/typingsLookup4.trace.json | 20 ++++++
.../reference/typingsLookupAmd.trace.json | 7 ++
.../compiler/requireOfJsonFileNonRelative.ts | 26 +++++++
148 files changed, 1609 insertions(+), 156 deletions(-)
create mode 100644 tests/baselines/reference/requireOfJsonFileNonRelative.js
create mode 100644 tests/baselines/reference/requireOfJsonFileNonRelative.symbols
create mode 100644 tests/baselines/reference/requireOfJsonFileNonRelative.types
create mode 100644 tests/cases/compiler/requireOfJsonFileNonRelative.ts
diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts
index bca6954057745..35dcc0d4e95a8 100644
--- a/src/compiler/moduleNameResolver.ts
+++ b/src/compiler/moduleNameResolver.ts
@@ -2902,7 +2902,7 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions: Extensions, modu
const loader: ResolutionKindSpecificLoader = (extensions, candidate, onlyRecordFailures, state) => {
let pathAndExtension =
- rest && loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) ||
+ (rest || !(state.features & NodeResolutionFeatures.EsmMode)) && loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) ||
loadNodeModuleFromDirectoryWorker(
extensions,
candidate,
diff --git a/tests/baselines/reference/cachedModuleResolution1.trace.json b/tests/baselines/reference/cachedModuleResolution1.trace.json
index ae5710cda8a67..0b2fb2629b7e5 100644
--- a/tests/baselines/reference/cachedModuleResolution1.trace.json
+++ b/tests/baselines/reference/cachedModuleResolution1.trace.json
@@ -6,6 +6,9 @@
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
"File '/a/b/node_modules/foo/package.json' does not exist.",
+ "File '/a/b/node_modules/foo.ts' does not exist.",
+ "File '/a/b/node_modules/foo.tsx' does not exist.",
+ "File '/a/b/node_modules/foo.d.ts' does not exist.",
"File '/a/b/node_modules/foo/index.ts' does not exist.",
"File '/a/b/node_modules/foo/index.tsx' does not exist.",
"File '/a/b/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/cachedModuleResolution2.trace.json b/tests/baselines/reference/cachedModuleResolution2.trace.json
index c6cfa249d0c84..19af7ff4e2be3 100644
--- a/tests/baselines/reference/cachedModuleResolution2.trace.json
+++ b/tests/baselines/reference/cachedModuleResolution2.trace.json
@@ -4,6 +4,9 @@
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
"File '/a/b/node_modules/foo/package.json' does not exist.",
+ "File '/a/b/node_modules/foo.ts' does not exist.",
+ "File '/a/b/node_modules/foo.tsx' does not exist.",
+ "File '/a/b/node_modules/foo.d.ts' does not exist.",
"File '/a/b/node_modules/foo/index.ts' does not exist.",
"File '/a/b/node_modules/foo/index.tsx' does not exist.",
"File '/a/b/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/cachedModuleResolution5.trace.json b/tests/baselines/reference/cachedModuleResolution5.trace.json
index 36e7f207b2fcc..d5ae1c8e859b6 100644
--- a/tests/baselines/reference/cachedModuleResolution5.trace.json
+++ b/tests/baselines/reference/cachedModuleResolution5.trace.json
@@ -6,6 +6,9 @@
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
"File '/a/b/node_modules/foo/package.json' does not exist.",
+ "File '/a/b/node_modules/foo.ts' does not exist.",
+ "File '/a/b/node_modules/foo.tsx' does not exist.",
+ "File '/a/b/node_modules/foo.d.ts' does not exist.",
"File '/a/b/node_modules/foo/index.ts' does not exist.",
"File '/a/b/node_modules/foo/index.tsx' does not exist.",
"File '/a/b/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json b/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json
index 7ed90480ee9e9..ecc7288a74c6d 100644
--- a/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json
+++ b/tests/baselines/reference/customConditions(resolvepackagejsonexports=false).trace.json
@@ -5,6 +5,9 @@
"File '/package.json' does not exist.",
"Loading module 'lodash' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration, JSON.",
"Found 'package.json' at '/node_modules/lodash/package.json'.",
+ "File '/node_modules/lodash.ts' does not exist.",
+ "File '/node_modules/lodash.tsx' does not exist.",
+ "File '/node_modules/lodash.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json
index 5c0f60a44d524..069476612267d 100644
--- a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json
+++ b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json
@@ -13,6 +13,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/a/package.json' does not exist.",
+ "File '/node_modules/a.ts' does not exist.",
+ "File '/node_modules/a.tsx' does not exist.",
+ "File '/node_modules/a.d.ts' does not exist.",
"File '/node_modules/a/index.ts' does not exist.",
"File '/node_modules/a/index.tsx' does not exist.",
"File '/node_modules/a/index.d.ts' exists - use it as a name resolution result.",
@@ -30,6 +33,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/a/node_modules/foo/package.json'.",
+ "File '/node_modules/a/node_modules/foo.ts' does not exist.",
+ "File '/node_modules/a/node_modules/foo.tsx' does not exist.",
+ "File '/node_modules/a/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json
index 97763ace14052..201677de7bba3 100644
--- a/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json
+++ b/tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json
@@ -13,6 +13,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/a/package.json' does not exist.",
+ "File '/node_modules/a.ts' does not exist.",
+ "File '/node_modules/a.tsx' does not exist.",
+ "File '/node_modules/a.d.ts' does not exist.",
"File '/node_modules/a/index.ts' does not exist.",
"File '/node_modules/a/index.tsx' does not exist.",
"File '/node_modules/a/index.d.ts' exists - use it as a name resolution result.",
@@ -30,6 +33,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/a/node_modules/@foo/bar/package.json'.",
+ "File '/node_modules/a/node_modules/@foo/bar.ts' does not exist.",
+ "File '/node_modules/a/node_modules/@foo/bar.tsx' does not exist.",
+ "File '/node_modules/a/node_modules/@foo/bar.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json b/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json
index 5981bd9aa8838..dccd65a67e734 100644
--- a/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json
+++ b/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json
@@ -5,6 +5,9 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-dom'",
"File '/node_modules/@typescript/lib-dom/package.json' does not exist.",
+ "File '/node_modules/@typescript/lib-dom.ts' does not exist.",
+ "File '/node_modules/@typescript/lib-dom.tsx' does not exist.",
+ "File '/node_modules/@typescript/lib-dom.d.ts' does not exist.",
"File '/node_modules/@typescript/lib-dom/index.ts' does not exist.",
"File '/node_modules/@typescript/lib-dom/index.tsx' does not exist.",
"File '/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.",
@@ -15,20 +18,30 @@
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@typescript/lib-es5.ts' does not exist.",
+ "File '/node_modules/@typescript/lib-es5.tsx' does not exist.",
+ "File '/node_modules/@typescript/lib-es5.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "File '/node_modules/@typescript/lib-es5.js' does not exist.",
+ "File '/node_modules/@typescript/lib-es5.jsx' does not exist.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@typescript/lib-decorators.ts' does not exist.",
+ "File '/node_modules/@typescript/lib-decorators.tsx' does not exist.",
+ "File '/node_modules/@typescript/lib-decorators.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "File '/node_modules/@typescript/lib-decorators.js' does not exist.",
+ "File '/node_modules/@typescript/lib-decorators.jsx' does not exist.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
@@ -55,9 +68,14 @@
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@typescript/lib-scripthost.ts' does not exist.",
+ "File '/node_modules/@typescript/lib-scripthost.tsx' does not exist.",
+ "File '/node_modules/@typescript/lib-scripthost.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "File '/node_modules/@typescript/lib-scripthost.js' does not exist.",
+ "File '/node_modules/@typescript/lib-scripthost.jsx' does not exist.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json b/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json
index 0a2ff75477662..29f58a2672345 100644
--- a/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json
+++ b/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json
@@ -3,6 +3,9 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-dom.ts' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-dom.tsx' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-dom.d.ts' does not exist.",
"File '/somepath/node_modules/@typescript/lib-dom/index.ts' does not exist.",
"File '/somepath/node_modules/@typescript/lib-dom/index.tsx' does not exist.",
"File '/somepath/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.",
@@ -11,21 +14,31 @@
"======== Resolving module '@typescript/lib-es5' from '/somepath/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "File '/somepath/node_modules/@typescript/lib-es5.ts' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-es5.tsx' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-es5.d.ts' does not exist.",
"Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
+ "File '/somepath/node_modules/@typescript/lib-es5.js' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-es5.jsx' does not exist.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '/somepath/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "File '/somepath/node_modules/@typescript/lib-decorators.ts' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-decorators.tsx' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-decorators.d.ts' does not exist.",
"Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
+ "File '/somepath/node_modules/@typescript/lib-decorators.js' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-decorators.jsx' does not exist.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '/somepath/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
@@ -51,11 +64,16 @@
"======== Resolving module '@typescript/lib-scripthost' from '/somepath/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "File '/somepath/node_modules/@typescript/lib-scripthost.ts' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-scripthost.tsx' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-scripthost.d.ts' does not exist.",
"Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
+ "File '/somepath/node_modules/@typescript/lib-scripthost.js' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-scripthost.jsx' does not exist.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/libTypeScriptSubfileResolving.trace.json b/tests/baselines/reference/libTypeScriptSubfileResolving.trace.json
index 2944f32197bd7..410a43f9ae2ab 100644
--- a/tests/baselines/reference/libTypeScriptSubfileResolving.trace.json
+++ b/tests/baselines/reference/libTypeScriptSubfileResolving.trace.json
@@ -15,20 +15,30 @@
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@typescript/lib-es5.ts' does not exist.",
+ "File '/node_modules/@typescript/lib-es5.tsx' does not exist.",
+ "File '/node_modules/@typescript/lib-es5.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "File '/node_modules/@typescript/lib-es5.js' does not exist.",
+ "File '/node_modules/@typescript/lib-es5.jsx' does not exist.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@typescript/lib-decorators.ts' does not exist.",
+ "File '/node_modules/@typescript/lib-decorators.tsx' does not exist.",
+ "File '/node_modules/@typescript/lib-decorators.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "File '/node_modules/@typescript/lib-decorators.js' does not exist.",
+ "File '/node_modules/@typescript/lib-decorators.jsx' does not exist.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
@@ -46,6 +56,9 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-dom'",
"File '/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.",
+ "File '/node_modules/@typescript/lib-dom.ts' does not exist.",
+ "File '/node_modules/@typescript/lib-dom.tsx' does not exist.",
+ "File '/node_modules/@typescript/lib-dom.d.ts' does not exist.",
"File '/node_modules/@typescript/lib-dom/index.ts' does not exist.",
"File '/node_modules/@typescript/lib-dom/index.tsx' does not exist.",
"File '/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.",
@@ -66,9 +79,14 @@
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@typescript/lib-scripthost.ts' does not exist.",
+ "File '/node_modules/@typescript/lib-scripthost.tsx' does not exist.",
+ "File '/node_modules/@typescript/lib-scripthost.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "File '/node_modules/@typescript/lib-scripthost.js' does not exist.",
+ "File '/node_modules/@typescript/lib-scripthost.jsx' does not exist.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/libTypeScriptSubfileResolvingConfig.trace.json b/tests/baselines/reference/libTypeScriptSubfileResolvingConfig.trace.json
index 47bd4305a888d..bd6dc81e5b141 100644
--- a/tests/baselines/reference/libTypeScriptSubfileResolvingConfig.trace.json
+++ b/tests/baselines/reference/libTypeScriptSubfileResolvingConfig.trace.json
@@ -11,21 +11,31 @@
"======== Resolving module '@typescript/lib-es5' from '/somepath/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "File '/somepath/node_modules/@typescript/lib-es5.ts' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-es5.tsx' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-es5.d.ts' does not exist.",
"Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
+ "File '/somepath/node_modules/@typescript/lib-es5.js' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-es5.jsx' does not exist.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '/somepath/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "File '/somepath/node_modules/@typescript/lib-decorators.ts' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-decorators.tsx' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-decorators.d.ts' does not exist.",
"Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
+ "File '/somepath/node_modules/@typescript/lib-decorators.js' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-decorators.jsx' does not exist.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '/somepath/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
@@ -42,6 +52,9 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/somepath/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.",
+ "File '/somepath/node_modules/@typescript/lib-dom.ts' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-dom.tsx' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-dom.d.ts' does not exist.",
"File '/somepath/node_modules/@typescript/lib-dom/index.ts' does not exist.",
"File '/somepath/node_modules/@typescript/lib-dom/index.tsx' does not exist.",
"File '/somepath/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.",
@@ -60,11 +73,16 @@
"======== Resolving module '@typescript/lib-scripthost' from '/somepath/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "File '/somepath/node_modules/@typescript/lib-scripthost.ts' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-scripthost.tsx' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-scripthost.d.ts' does not exist.",
"Directory '/somepath/node_modules/@types' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
+ "File '/somepath/node_modules/@typescript/lib-scripthost.js' does not exist.",
+ "File '/somepath/node_modules/@typescript/lib-scripthost.jsx' does not exist.",
"Directory '/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/library-reference-11.trace.json b/tests/baselines/reference/library-reference-11.trace.json
index 6cc5b87bc03d6..9a95418fc187b 100644
--- a/tests/baselines/reference/library-reference-11.trace.json
+++ b/tests/baselines/reference/library-reference-11.trace.json
@@ -5,6 +5,7 @@
"Looking up in 'node_modules' folder, initial location '/a/b'.",
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
"Found 'package.json' at '/a/node_modules/jquery/package.json'.",
+ "File '/a/node_modules/jquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' has 'typings' field 'jquery.d.ts' that references '/a/node_modules/jquery/jquery.d.ts'.",
"File '/a/node_modules/jquery/jquery.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/library-reference-12.trace.json b/tests/baselines/reference/library-reference-12.trace.json
index fe12f67fa0f80..cd54f2e0ca40d 100644
--- a/tests/baselines/reference/library-reference-12.trace.json
+++ b/tests/baselines/reference/library-reference-12.trace.json
@@ -5,6 +5,7 @@
"Looking up in 'node_modules' folder, initial location '/a/b'.",
"Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
"Found 'package.json' at '/a/node_modules/jquery/package.json'.",
+ "File '/a/node_modules/jquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'dist/jquery.d.ts' that references '/a/node_modules/jquery/dist/jquery.d.ts'.",
diff --git a/tests/baselines/reference/library-reference-3.trace.json b/tests/baselines/reference/library-reference-3.trace.json
index b1e3ada2e36f1..e544bf8b087b0 100644
--- a/tests/baselines/reference/library-reference-3.trace.json
+++ b/tests/baselines/reference/library-reference-3.trace.json
@@ -5,6 +5,7 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Looking up in 'node_modules' folder, initial location '/src'.",
"File '/src/node_modules/jquery/package.json' does not exist.",
+ "File '/src/node_modules/jquery.d.ts' does not exist.",
"File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'.",
"======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ========",
diff --git a/tests/baselines/reference/library-reference-4.trace.json b/tests/baselines/reference/library-reference-4.trace.json
index e1d6b01ad8aac..eed9a547c21ae 100644
--- a/tests/baselines/reference/library-reference-4.trace.json
+++ b/tests/baselines/reference/library-reference-4.trace.json
@@ -5,6 +5,7 @@
"Looking up in 'node_modules' folder, initial location '/src'.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"File '/node_modules/foo/package.json' does not exist.",
+ "File '/node_modules/foo.d.ts' does not exist.",
"File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'.",
"======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ========",
@@ -14,6 +15,7 @@
"Looking up in 'node_modules' folder, initial location '/src'.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"File '/node_modules/bar/package.json' does not exist.",
+ "File '/node_modules/bar.d.ts' does not exist.",
"File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'.",
"======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ========",
@@ -22,6 +24,7 @@
"File '/src/alpha.d.ts' does not exist.",
"Looking up in 'node_modules' folder, initial location '/node_modules/foo'.",
"File '/node_modules/foo/node_modules/alpha/package.json' does not exist.",
+ "File '/node_modules/foo/node_modules/alpha.d.ts' does not exist.",
"File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'.",
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ========",
@@ -30,6 +33,7 @@
"File '/src/alpha.d.ts' does not exist.",
"Looking up in 'node_modules' folder, initial location '/node_modules/bar'.",
"File '/node_modules/bar/node_modules/alpha/package.json' does not exist.",
+ "File '/node_modules/bar/node_modules/alpha.d.ts' does not exist.",
"File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'.",
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ========",
diff --git a/tests/baselines/reference/library-reference-5.trace.json b/tests/baselines/reference/library-reference-5.trace.json
index 47844acd57790..d39aa5d8ddc37 100644
--- a/tests/baselines/reference/library-reference-5.trace.json
+++ b/tests/baselines/reference/library-reference-5.trace.json
@@ -5,6 +5,7 @@
"Looking up in 'node_modules' folder, initial location '/src'.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"File '/node_modules/foo/package.json' does not exist.",
+ "File '/node_modules/foo.d.ts' does not exist.",
"File '/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/foo/index.d.ts', result '/node_modules/foo/index.d.ts'.",
"======== Type reference directive 'foo' was successfully resolved to '/node_modules/foo/index.d.ts', primary: false. ========",
@@ -14,6 +15,7 @@
"Looking up in 'node_modules' folder, initial location '/src'.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"File '/node_modules/bar/package.json' does not exist.",
+ "File '/node_modules/bar.d.ts' does not exist.",
"File '/node_modules/bar/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/bar/index.d.ts', result '/node_modules/bar/index.d.ts'.",
"======== Type reference directive 'bar' was successfully resolved to '/node_modules/bar/index.d.ts', primary: false. ========",
@@ -22,6 +24,7 @@
"Directory 'types' does not exist, skipping all lookups in it.",
"Looking up in 'node_modules' folder, initial location '/node_modules/foo'.",
"File '/node_modules/foo/node_modules/alpha/package.json' does not exist.",
+ "File '/node_modules/foo/node_modules/alpha.d.ts' does not exist.",
"File '/node_modules/foo/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/foo/node_modules/alpha/index.d.ts', result '/node_modules/foo/node_modules/alpha/index.d.ts'.",
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/foo/node_modules/alpha/index.d.ts', primary: false. ========",
@@ -30,6 +33,7 @@
"Directory 'types' does not exist, skipping all lookups in it.",
"Looking up in 'node_modules' folder, initial location '/node_modules/bar'.",
"File '/node_modules/bar/node_modules/alpha/package.json' does not exist.",
+ "File '/node_modules/bar/node_modules/alpha.d.ts' does not exist.",
"File '/node_modules/bar/node_modules/alpha/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/bar/node_modules/alpha/index.d.ts', result '/node_modules/bar/node_modules/alpha/index.d.ts'.",
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/bar/node_modules/alpha/index.d.ts', primary: false. ========",
diff --git a/tests/baselines/reference/library-reference-6.trace.json b/tests/baselines/reference/library-reference-6.trace.json
index b2fc9b5c1ec3a..9f7e0cfde0955 100644
--- a/tests/baselines/reference/library-reference-6.trace.json
+++ b/tests/baselines/reference/library-reference-6.trace.json
@@ -12,12 +12,14 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
@@ -30,6 +32,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
"======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
@@ -42,6 +45,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/library-reference-7.trace.json b/tests/baselines/reference/library-reference-7.trace.json
index 98ecb6ed11a0d..07f923ec648d2 100644
--- a/tests/baselines/reference/library-reference-7.trace.json
+++ b/tests/baselines/reference/library-reference-7.trace.json
@@ -4,6 +4,7 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Looking up in 'node_modules' folder, initial location '/src'.",
"File '/src/node_modules/jquery/package.json' does not exist.",
+ "File '/src/node_modules/jquery.d.ts' does not exist.",
"File '/src/node_modules/jquery/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/src/node_modules/jquery/index.d.ts', result '/src/node_modules/jquery/index.d.ts'.",
"======== Type reference directive 'jquery' was successfully resolved to '/src/node_modules/jquery/index.d.ts', primary: false. ========",
diff --git a/tests/baselines/reference/library-reference-scoped-packages.trace.json b/tests/baselines/reference/library-reference-scoped-packages.trace.json
index d930df9c56a30..af7b60af894c1 100644
--- a/tests/baselines/reference/library-reference-scoped-packages.trace.json
+++ b/tests/baselines/reference/library-reference-scoped-packages.trace.json
@@ -5,6 +5,7 @@
"Looking up in 'node_modules' folder, initial location '/'.",
"Scoped package detected, looking in 'beep__boop'",
"File '/node_modules/@types/beep__boop/package.json' does not exist.",
+ "File '/node_modules/@types/beep__boop.d.ts' does not exist.",
"File '/node_modules/@types/beep__boop/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/beep__boop/index.d.ts', result '/node_modules/@types/beep__boop/index.d.ts'.",
"======== Type reference directive '@beep/boop' was successfully resolved to '/node_modules/@types/beep__boop/index.d.ts', primary: false. ========",
@@ -14,6 +15,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
@@ -23,6 +25,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
@@ -41,6 +44,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-dom'",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
@@ -59,6 +63,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
diff --git a/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json b/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json
index d8d904866fb8e..a725fd1fe1c1c 100644
--- a/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json
+++ b/tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json
@@ -3,12 +3,17 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'shortid' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/shortid/package.json' does not exist.",
+ "File '/node_modules/shortid.ts' does not exist.",
+ "File '/node_modules/shortid.tsx' does not exist.",
+ "File '/node_modules/shortid.d.ts' does not exist.",
"File '/node_modules/shortid/index.ts' does not exist.",
"File '/node_modules/shortid/index.tsx' does not exist.",
"File '/node_modules/shortid/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'shortid' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/shortid/package.json' does not exist according to earlier cached lookups.",
+ "File '/node_modules/shortid.js' does not exist.",
+ "File '/node_modules/shortid.jsx' does not exist.",
"File '/node_modules/shortid/index.js' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/shortid/index.js', result '/node_modules/shortid/index.js'.",
"======== Module name 'shortid' was successfully resolved to '/node_modules/shortid/index.js'. ========",
diff --git a/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js b/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js
index 1afcbd0e0db08..b3e644611e158 100644
--- a/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js
+++ b/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js
@@ -150,12 +150,19 @@ Resolution:: {
"/root/generated/file6/index.tsx",
"/root/generated/file6/index.d.ts",
"/root/folder1/node_modules/file6/package.json",
+ "/root/folder1/node_modules/file6.ts",
+ "/root/folder1/node_modules/file6.tsx",
+ "/root/folder1/node_modules/file6.d.ts",
"/root/folder1/node_modules/file6/index.ts",
"/root/folder1/node_modules/file6/index.tsx",
"/root/folder1/node_modules/file6/index.d.ts",
"/root/folder1/node_modules/@types/file6/package.json",
+ "/root/folder1/node_modules/@types/file6.d.ts",
"/root/folder1/node_modules/@types/file6/index.d.ts",
- "/root/node_modules/file6/package.json"
+ "/root/node_modules/file6/package.json",
+ "/root/node_modules/file6.ts",
+ "/root/node_modules/file6.tsx",
+ "/root/node_modules/file6.d.ts"
]
}
@@ -311,11 +318,18 @@ Resolution:: {
"/root/generated/file6/index.tsx",
"/root/generated/file6/index.d.ts",
"/root/folder1/node_modules/file6/package.json",
+ "/root/folder1/node_modules/file6.ts",
+ "/root/folder1/node_modules/file6.tsx",
+ "/root/folder1/node_modules/file6.d.ts",
"/root/folder1/node_modules/file6/index.ts",
"/root/folder1/node_modules/file6/index.tsx",
"/root/folder1/node_modules/file6/index.d.ts",
"/root/folder1/node_modules/@types/file6/package.json",
+ "/root/folder1/node_modules/@types/file6.d.ts",
"/root/folder1/node_modules/@types/file6/index.d.ts",
- "/root/node_modules/file6/package.json"
+ "/root/node_modules/file6/package.json",
+ "/root/node_modules/file6.ts",
+ "/root/node_modules/file6.tsx",
+ "/root/node_modules/file6.d.ts"
]
}
diff --git a/tests/baselines/reference/moduleResolution/node-baseUrl.js b/tests/baselines/reference/moduleResolution/node-baseUrl.js
index 77ed9d33d0de8..970cb66914b26 100644
--- a/tests/baselines/reference/moduleResolution/node-baseUrl.js
+++ b/tests/baselines/reference/moduleResolution/node-baseUrl.js
@@ -79,18 +79,29 @@ Resolution:: {
"/root/m4/index.tsx",
"/root/m4/index.d.ts",
"/root/a/b/node_modules/m4/package.json",
+ "/root/a/b/node_modules/m4.ts",
+ "/root/a/b/node_modules/m4.tsx",
+ "/root/a/b/node_modules/m4.d.ts",
"/root/a/b/node_modules/m4/index.ts",
"/root/a/b/node_modules/m4/index.tsx",
"/root/a/b/node_modules/m4/index.d.ts",
"/root/a/b/node_modules/@types/m4/package.json",
+ "/root/a/b/node_modules/@types/m4.d.ts",
"/root/a/b/node_modules/@types/m4/index.d.ts",
"/root/a/node_modules/m4/package.json",
+ "/root/a/node_modules/m4.ts",
+ "/root/a/node_modules/m4.tsx",
+ "/root/a/node_modules/m4.d.ts",
"/root/a/node_modules/m4/index.ts",
"/root/a/node_modules/m4/index.tsx",
"/root/a/node_modules/m4/index.d.ts",
"/root/a/node_modules/@types/m4/package.json",
+ "/root/a/node_modules/@types/m4.d.ts",
"/root/a/node_modules/@types/m4/index.d.ts",
- "/root/node_modules/m4/package.json"
+ "/root/node_modules/m4/package.json",
+ "/root/node_modules/m4.ts",
+ "/root/node_modules/m4.tsx",
+ "/root/node_modules/m4.d.ts"
]
}
@@ -175,17 +186,28 @@ Resolution:: {
"/root/m4/index.tsx",
"/root/m4/index.d.ts",
"/root/a/b/node_modules/m4/package.json",
+ "/root/a/b/node_modules/m4.ts",
+ "/root/a/b/node_modules/m4.tsx",
+ "/root/a/b/node_modules/m4.d.ts",
"/root/a/b/node_modules/m4/index.ts",
"/root/a/b/node_modules/m4/index.tsx",
"/root/a/b/node_modules/m4/index.d.ts",
"/root/a/b/node_modules/@types/m4/package.json",
+ "/root/a/b/node_modules/@types/m4.d.ts",
"/root/a/b/node_modules/@types/m4/index.d.ts",
"/root/a/node_modules/m4/package.json",
+ "/root/a/node_modules/m4.ts",
+ "/root/a/node_modules/m4.tsx",
+ "/root/a/node_modules/m4.d.ts",
"/root/a/node_modules/m4/index.ts",
"/root/a/node_modules/m4/index.tsx",
"/root/a/node_modules/m4/index.d.ts",
"/root/a/node_modules/@types/m4/package.json",
+ "/root/a/node_modules/@types/m4.d.ts",
"/root/a/node_modules/@types/m4/index.d.ts",
- "/root/node_modules/m4/package.json"
+ "/root/node_modules/m4/package.json",
+ "/root/node_modules/m4.ts",
+ "/root/node_modules/m4.tsx",
+ "/root/node_modules/m4.d.ts"
]
}
diff --git a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-directory.js b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-directory.js
index 397874359476e..f631d3c016e7b 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-directory.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-directory.js
@@ -14,24 +14,39 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/c/node_modules/d/node_modules/foo/package.json",
+ "/a/node_modules/b/c/node_modules/d/node_modules/foo.ts",
+ "/a/node_modules/b/c/node_modules/d/node_modules/foo.tsx",
+ "/a/node_modules/b/c/node_modules/d/node_modules/foo.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.tsx",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/@types/foo/package.json",
+ "/a/node_modules/b/c/node_modules/d/node_modules/@types/foo.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/@types/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/foo/package.json",
+ "/a/node_modules/b/c/node_modules/foo.ts",
+ "/a/node_modules/b/c/node_modules/foo.tsx",
+ "/a/node_modules/b/c/node_modules/foo.d.ts",
"/a/node_modules/b/c/node_modules/foo/index.ts",
"/a/node_modules/b/c/node_modules/foo/index.tsx",
"/a/node_modules/b/c/node_modules/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/@types/foo/package.json",
+ "/a/node_modules/b/c/node_modules/@types/foo.d.ts",
"/a/node_modules/b/c/node_modules/@types/foo/index.d.ts",
"/a/node_modules/b/node_modules/foo/package.json",
+ "/a/node_modules/b/node_modules/foo.ts",
+ "/a/node_modules/b/node_modules/foo.tsx",
+ "/a/node_modules/b/node_modules/foo.d.ts",
"/a/node_modules/b/node_modules/foo/index.ts",
"/a/node_modules/b/node_modules/foo/index.tsx",
"/a/node_modules/b/node_modules/foo/index.d.ts",
"/a/node_modules/b/node_modules/@types/foo/package.json",
+ "/a/node_modules/b/node_modules/@types/foo.d.ts",
"/a/node_modules/b/node_modules/@types/foo/index.d.ts",
"/a/node_modules/foo/package.json",
+ "/a/node_modules/foo.ts",
+ "/a/node_modules/foo.tsx",
+ "/a/node_modules/foo.d.ts",
"/a/node_modules/foo/index.ts",
"/a/node_modules/foo/index.tsx"
]
@@ -53,24 +68,39 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/c/node_modules/d/node_modules/foo/package.json",
+ "/a/node_modules/b/c/node_modules/d/node_modules/foo.ts",
+ "/a/node_modules/b/c/node_modules/d/node_modules/foo.tsx",
+ "/a/node_modules/b/c/node_modules/d/node_modules/foo.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.tsx",
"/a/node_modules/b/c/node_modules/d/node_modules/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/@types/foo/package.json",
+ "/a/node_modules/b/c/node_modules/d/node_modules/@types/foo.d.ts",
"/a/node_modules/b/c/node_modules/d/node_modules/@types/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/foo/package.json",
+ "/a/node_modules/b/c/node_modules/foo.ts",
+ "/a/node_modules/b/c/node_modules/foo.tsx",
+ "/a/node_modules/b/c/node_modules/foo.d.ts",
"/a/node_modules/b/c/node_modules/foo/index.ts",
"/a/node_modules/b/c/node_modules/foo/index.tsx",
"/a/node_modules/b/c/node_modules/foo/index.d.ts",
"/a/node_modules/b/c/node_modules/@types/foo/package.json",
+ "/a/node_modules/b/c/node_modules/@types/foo.d.ts",
"/a/node_modules/b/c/node_modules/@types/foo/index.d.ts",
"/a/node_modules/b/node_modules/foo/package.json",
+ "/a/node_modules/b/node_modules/foo.ts",
+ "/a/node_modules/b/node_modules/foo.tsx",
+ "/a/node_modules/b/node_modules/foo.d.ts",
"/a/node_modules/b/node_modules/foo/index.ts",
"/a/node_modules/b/node_modules/foo/index.tsx",
"/a/node_modules/b/node_modules/foo/index.d.ts",
"/a/node_modules/b/node_modules/@types/foo/package.json",
+ "/a/node_modules/b/node_modules/@types/foo.d.ts",
"/a/node_modules/b/node_modules/@types/foo/index.d.ts",
"/a/node_modules/foo/package.json",
+ "/a/node_modules/foo.ts",
+ "/a/node_modules/foo.tsx",
+ "/a/node_modules/foo.d.ts",
"/a/node_modules/foo/index.ts",
"/a/node_modules/foo/index.tsx"
]
diff --git a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js
index 3f006cb0963cf..cec3a472ed536 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js
@@ -14,18 +14,29 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/b/c/d/node_modules/foo/package.json",
+ "/a/b/c/d/node_modules/foo.ts",
+ "/a/b/c/d/node_modules/foo.tsx",
+ "/a/b/c/d/node_modules/foo.d.ts",
"/a/b/c/d/node_modules/foo/index.ts",
"/a/b/c/d/node_modules/foo/index.tsx",
"/a/b/c/d/node_modules/foo/index.d.ts",
"/a/b/c/d/node_modules/@types/foo/package.json",
+ "/a/b/c/d/node_modules/@types/foo.d.ts",
"/a/b/c/d/node_modules/@types/foo/index.d.ts",
"/a/b/c/node_modules/foo/package.json",
+ "/a/b/c/node_modules/foo.ts",
+ "/a/b/c/node_modules/foo.tsx",
+ "/a/b/c/node_modules/foo.d.ts",
"/a/b/c/node_modules/foo/index.ts",
"/a/b/c/node_modules/foo/index.tsx",
"/a/b/c/node_modules/foo/index.d.ts",
"/a/b/c/node_modules/@types/foo/package.json",
+ "/a/b/c/node_modules/@types/foo.d.ts",
"/a/b/c/node_modules/@types/foo/index.d.ts",
- "/a/b/node_modules/foo/package.json"
+ "/a/b/node_modules/foo/package.json",
+ "/a/b/node_modules/foo.ts",
+ "/a/b/node_modules/foo.tsx",
+ "/a/b/node_modules/foo.d.ts"
]
}
@@ -45,17 +56,28 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/b/c/d/node_modules/foo/package.json",
+ "/a/b/c/d/node_modules/foo.ts",
+ "/a/b/c/d/node_modules/foo.tsx",
+ "/a/b/c/d/node_modules/foo.d.ts",
"/a/b/c/d/node_modules/foo/index.ts",
"/a/b/c/d/node_modules/foo/index.tsx",
"/a/b/c/d/node_modules/foo/index.d.ts",
"/a/b/c/d/node_modules/@types/foo/package.json",
+ "/a/b/c/d/node_modules/@types/foo.d.ts",
"/a/b/c/d/node_modules/@types/foo/index.d.ts",
"/a/b/c/node_modules/foo/package.json",
+ "/a/b/c/node_modules/foo.ts",
+ "/a/b/c/node_modules/foo.tsx",
+ "/a/b/c/node_modules/foo.d.ts",
"/a/b/c/node_modules/foo/index.ts",
"/a/b/c/node_modules/foo/index.tsx",
"/a/b/c/node_modules/foo/index.d.ts",
"/a/b/c/node_modules/@types/foo/package.json",
+ "/a/b/c/node_modules/@types/foo.d.ts",
"/a/b/c/node_modules/@types/foo/index.d.ts",
- "/a/b/node_modules/foo/package.json"
+ "/a/b/node_modules/foo/package.json",
+ "/a/b/node_modules/foo.ts",
+ "/a/b/node_modules/foo.tsx",
+ "/a/b/node_modules/foo.d.ts"
]
}
diff --git a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js
index db09a12d2636a..6a26214f1fc2f 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js
@@ -14,18 +14,29 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/b/c/d/node_modules/foo/package.json",
+ "/a/b/c/d/node_modules/foo.ts",
+ "/a/b/c/d/node_modules/foo.tsx",
+ "/a/b/c/d/node_modules/foo.d.ts",
"/a/b/c/d/node_modules/foo/index.ts",
"/a/b/c/d/node_modules/foo/index.tsx",
"/a/b/c/d/node_modules/foo/index.d.ts",
"/a/b/c/d/node_modules/@types/foo/package.json",
+ "/a/b/c/d/node_modules/@types/foo.d.ts",
"/a/b/c/d/node_modules/@types/foo/index.d.ts",
"/a/b/c/node_modules/foo/package.json",
+ "/a/b/c/node_modules/foo.ts",
+ "/a/b/c/node_modules/foo.tsx",
+ "/a/b/c/node_modules/foo.d.ts",
"/a/b/c/node_modules/foo/index.ts",
"/a/b/c/node_modules/foo/index.tsx",
"/a/b/c/node_modules/foo/index.d.ts",
"/a/b/c/node_modules/@types/foo/package.json",
+ "/a/b/c/node_modules/@types/foo.d.ts",
"/a/b/c/node_modules/@types/foo/index.d.ts",
"/a/b/node_modules/foo/package.json",
+ "/a/b/node_modules/foo.ts",
+ "/a/b/node_modules/foo.tsx",
+ "/a/b/node_modules/foo.d.ts",
"/a/b/node_modules/foo/index.ts",
"/a/b/node_modules/foo/index.tsx"
]
@@ -47,18 +58,29 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/b/c/d/node_modules/foo/package.json",
+ "/a/b/c/d/node_modules/foo.ts",
+ "/a/b/c/d/node_modules/foo.tsx",
+ "/a/b/c/d/node_modules/foo.d.ts",
"/a/b/c/d/node_modules/foo/index.ts",
"/a/b/c/d/node_modules/foo/index.tsx",
"/a/b/c/d/node_modules/foo/index.d.ts",
"/a/b/c/d/node_modules/@types/foo/package.json",
+ "/a/b/c/d/node_modules/@types/foo.d.ts",
"/a/b/c/d/node_modules/@types/foo/index.d.ts",
"/a/b/c/node_modules/foo/package.json",
+ "/a/b/c/node_modules/foo.ts",
+ "/a/b/c/node_modules/foo.tsx",
+ "/a/b/c/node_modules/foo.d.ts",
"/a/b/c/node_modules/foo/index.ts",
"/a/b/c/node_modules/foo/index.tsx",
"/a/b/c/node_modules/foo/index.d.ts",
"/a/b/c/node_modules/@types/foo/package.json",
+ "/a/b/c/node_modules/@types/foo.d.ts",
"/a/b/c/node_modules/@types/foo/index.d.ts",
"/a/b/node_modules/foo/package.json",
+ "/a/b/node_modules/foo.ts",
+ "/a/b/node_modules/foo.tsx",
+ "/a/b/node_modules/foo.d.ts",
"/a/b/node_modules/foo/index.ts",
"/a/b/node_modules/foo/index.tsx"
]
diff --git a/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js b/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js
index a6396feae8e80..b5f9ceb12e06c 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-preserveSymlinks.js
@@ -16,6 +16,9 @@ Resolution:: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/app/node_modules/linked.ts",
+ "/app/node_modules/linked.tsx",
+ "/app/node_modules/linked.d.ts",
"/app/node_modules/linked/index",
"/app/node_modules/linked/index.ts",
"/app/node_modules/linked/index.tsx"
@@ -42,6 +45,9 @@ Resolution:: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/app/node_modules/linked.ts",
+ "/app/node_modules/linked.tsx",
+ "/app/node_modules/linked.d.ts",
"/app/node_modules/linked/index",
"/app/node_modules/linked/index.ts",
"/app/node_modules/linked/index.tsx"
diff --git a/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js b/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js
index 8e382c3bd2894..50b20f9a56ff5 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-preserves-originalPath-on-cache-hit.js
@@ -17,11 +17,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/app/src/node_modules/linked/package.json",
+ "/app/src/node_modules/linked.ts",
+ "/app/src/node_modules/linked.tsx",
+ "/app/src/node_modules/linked.d.ts",
"/app/src/node_modules/linked/index.ts",
"/app/src/node_modules/linked/index.tsx",
"/app/src/node_modules/linked/index.d.ts",
"/app/src/node_modules/@types/linked/package.json",
+ "/app/src/node_modules/@types/linked.d.ts",
"/app/src/node_modules/@types/linked/index.d.ts",
+ "/app/node_modules/linked.ts",
+ "/app/node_modules/linked.tsx",
+ "/app/node_modules/linked.d.ts",
"/app/node_modules/linked/index",
"/app/node_modules/linked/index.ts",
"/app/node_modules/linked/index.tsx"
@@ -42,19 +49,30 @@ Resolution:: {
},
"failedLookupLocations": [
"/app/src/node_modules/linked/package.json",
+ "/app/src/node_modules/linked.ts",
+ "/app/src/node_modules/linked.tsx",
+ "/app/src/node_modules/linked.d.ts",
"/app/src/node_modules/linked/index.ts",
"/app/src/node_modules/linked/index.tsx",
"/app/src/node_modules/linked/index.d.ts",
"/app/src/node_modules/@types/linked/package.json",
+ "/app/src/node_modules/@types/linked.d.ts",
"/app/src/node_modules/@types/linked/index.d.ts",
+ "/app/node_modules/linked.ts",
+ "/app/node_modules/linked.tsx",
+ "/app/node_modules/linked.d.ts",
"/app/node_modules/linked/index",
"/app/node_modules/linked/index.ts",
"/app/node_modules/linked/index.tsx",
"/app/lib/node_modules/linked/package.json",
+ "/app/lib/node_modules/linked.ts",
+ "/app/lib/node_modules/linked.tsx",
+ "/app/lib/node_modules/linked.d.ts",
"/app/lib/node_modules/linked/index.ts",
"/app/lib/node_modules/linked/index.tsx",
"/app/lib/node_modules/linked/index.d.ts",
"/app/lib/node_modules/@types/linked/package.json",
+ "/app/lib/node_modules/@types/linked.d.ts",
"/app/lib/node_modules/@types/linked/index.d.ts"
],
"affectingLocations": [
diff --git a/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js b/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js
index 9fa7027625648..5508c607f5330 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-uses-originalPath-for-caching.js
@@ -17,11 +17,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/sub/dir/node_modules/a/package.json",
+ "/sub/dir/node_modules/a.ts",
+ "/sub/dir/node_modules/a.tsx",
+ "/sub/dir/node_modules/a.d.ts",
"/sub/dir/node_modules/a/index.ts",
"/sub/dir/node_modules/a/index.tsx",
"/sub/dir/node_modules/a/index.d.ts",
"/sub/dir/node_modules/@types/a/package.json",
+ "/sub/dir/node_modules/@types/a.d.ts",
"/sub/dir/node_modules/@types/a/index.d.ts",
+ "/sub/node_modules/a.ts",
+ "/sub/node_modules/a.tsx",
+ "/sub/node_modules/a.d.ts",
"/sub/node_modules/a/index"
],
"affectingLocations": [
@@ -40,11 +47,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/sub/dir/node_modules/a/package.json",
+ "/sub/dir/node_modules/a.ts",
+ "/sub/dir/node_modules/a.tsx",
+ "/sub/dir/node_modules/a.d.ts",
"/sub/dir/node_modules/a/index.ts",
"/sub/dir/node_modules/a/index.tsx",
"/sub/dir/node_modules/a/index.d.ts",
"/sub/dir/node_modules/@types/a/package.json",
+ "/sub/dir/node_modules/@types/a.d.ts",
"/sub/dir/node_modules/@types/a/index.d.ts",
+ "/sub/node_modules/a.ts",
+ "/sub/node_modules/a.tsx",
+ "/sub/node_modules/a.d.ts",
"/sub/node_modules/a/index"
],
"affectingLocations": [
@@ -56,12 +70,18 @@ Resolving "a" from /foo.ts
Resolution:: {
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx",
"/node_modules/a/index.d.ts",
"/node_modules/@types/a/package.json",
+ "/node_modules/@types/a.d.ts",
"/node_modules/@types/a/index.d.ts",
"/node_modules/a/package.json",
+ "/node_modules/a.js",
+ "/node_modules/a.jsx",
"/node_modules/a/index.js",
"/node_modules/a/index.jsx"
]
diff --git a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js
index 59e79baa53a6a..9e5149dce238b 100644
--- a/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js
+++ b/tests/baselines/reference/moduleResolution/relative-module-name-as-directory-with-invalid-typings.js
@@ -20,11 +20,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
+ "/a/node_modules/b.ts",
+ "/a/node_modules/b.tsx",
+ "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
+ "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -55,11 +62,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
+ "/a/node_modules/b.ts",
+ "/a/node_modules/b.tsx",
+ "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
+ "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -90,11 +104,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
+ "/a/node_modules/b.ts",
+ "/a/node_modules/b.tsx",
+ "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
+ "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -125,11 +146,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
+ "/a/node_modules/b.ts",
+ "/a/node_modules/b.tsx",
+ "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
+ "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -160,11 +188,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
+ "/a/node_modules/b.ts",
+ "/a/node_modules/b.tsx",
+ "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
+ "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -195,11 +230,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
+ "/a/node_modules/b.ts",
+ "/a/node_modules/b.tsx",
+ "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
+ "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -230,11 +272,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
+ "/a/node_modules/b.ts",
+ "/a/node_modules/b.tsx",
+ "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
+ "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -265,11 +314,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
+ "/a/node_modules/b.ts",
+ "/a/node_modules/b.tsx",
+ "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
+ "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -300,11 +356,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
+ "/a/node_modules/b.ts",
+ "/a/node_modules/b.tsx",
+ "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
+ "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -335,11 +398,18 @@ Resolution:: {
},
"failedLookupLocations": [
"/a/node_modules/b/package.json",
+ "/a/node_modules/b.ts",
+ "/a/node_modules/b.tsx",
+ "/a/node_modules/b.d.ts",
"/a/node_modules/b/index.ts",
"/a/node_modules/b/index.tsx",
"/a/node_modules/b/index.d.ts",
"/a/node_modules/@types/b/package.json",
+ "/a/node_modules/@types/b.d.ts",
"/a/node_modules/@types/b/index.d.ts",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
diff --git a/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js b/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js
index b4c210380a110..c2b369638d185 100644
--- a/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js
+++ b/tests/baselines/reference/moduleResolution/type-reference-from-primary-location.js
@@ -58,7 +58,8 @@ Resolution:: {
"/root/src/types/lib.d.ts",
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
- "/root/src/node_modules/lib/package.json"
+ "/root/src/node_modules/lib/package.json",
+ "/root/src/node_modules/lib.d.ts"
]
}
@@ -81,7 +82,8 @@ Resolution:: {
"failedLookupLocations": [
"/root/src/types/lib.d.ts",
"/root/src/types/lib/package.json",
- "/root/src/types/lib/index.d.ts"
+ "/root/src/types/lib/index.d.ts",
+ "/root/src/node_modules/lib.d.ts"
],
"affectingLocations": [
"/root/src/node_modules/lib/package.json"
@@ -106,8 +108,10 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
+ "/root/src/node_modules/lib.d.ts",
"/root/src/node_modules/lib/index.d.ts",
- "/root/src/node_modules/@types/lib/package.json"
+ "/root/src/node_modules/@types/lib/package.json",
+ "/root/src/node_modules/@types/lib.d.ts"
]
}
@@ -132,7 +136,9 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
- "/root/src/node_modules/lib/index.d.ts"
+ "/root/src/node_modules/lib.d.ts",
+ "/root/src/node_modules/lib/index.d.ts",
+ "/root/src/node_modules/@types/lib.d.ts"
],
"affectingLocations": [
"/root/src/node_modules/@types/lib/package.json"
diff --git a/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js b/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js
index 8e5814ec5fc17..141bb1f2b9212 100644
--- a/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js
+++ b/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js
@@ -16,10 +16,13 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
+ "/root/src/node_modules/lib.d.ts",
"/root/src/node_modules/lib/index.d.ts",
"/root/src/node_modules/@types/lib/package.json",
+ "/root/src/node_modules/@types/lib.d.ts",
"/root/src/node_modules/@types/lib/index.d.ts",
- "/root/node_modules/lib/package.json"
+ "/root/node_modules/lib/package.json",
+ "/root/node_modules/lib.d.ts"
]
}
@@ -44,9 +47,12 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
+ "/root/src/node_modules/lib.d.ts",
"/root/src/node_modules/lib/index.d.ts",
"/root/src/node_modules/@types/lib/package.json",
- "/root/src/node_modules/@types/lib/index.d.ts"
+ "/root/src/node_modules/@types/lib.d.ts",
+ "/root/src/node_modules/@types/lib/index.d.ts",
+ "/root/node_modules/lib.d.ts"
],
"affectingLocations": [
"/root/node_modules/lib/package.json"
@@ -71,12 +77,16 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
+ "/root/src/node_modules/lib.d.ts",
"/root/src/node_modules/lib/index.d.ts",
"/root/src/node_modules/@types/lib/package.json",
+ "/root/src/node_modules/@types/lib.d.ts",
"/root/src/node_modules/@types/lib/index.d.ts",
"/root/node_modules/lib/package.json",
+ "/root/node_modules/lib.d.ts",
"/root/node_modules/lib/index.d.ts",
- "/root/node_modules/@types/lib/package.json"
+ "/root/node_modules/@types/lib/package.json",
+ "/root/node_modules/@types/lib.d.ts"
]
}
@@ -101,11 +111,15 @@ Resolution:: {
"/root/src/types/lib/package.json",
"/root/src/types/lib/index.d.ts",
"/root/src/node_modules/lib/package.json",
+ "/root/src/node_modules/lib.d.ts",
"/root/src/node_modules/lib/index.d.ts",
"/root/src/node_modules/@types/lib/package.json",
+ "/root/src/node_modules/@types/lib.d.ts",
"/root/src/node_modules/@types/lib/index.d.ts",
"/root/node_modules/lib/package.json",
- "/root/node_modules/lib/index.d.ts"
+ "/root/node_modules/lib.d.ts",
+ "/root/node_modules/lib/index.d.ts",
+ "/root/node_modules/@types/lib.d.ts"
],
"affectingLocations": [
"/root/node_modules/@types/lib/package.json"
diff --git a/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json b/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json
index ea6c717e5d9d2..05d2502fe0596 100644
--- a/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json
+++ b/tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json
@@ -13,6 +13,9 @@
"Loading module 'anotherLib' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/project/src/node_modules' does not exist, skipping all lookups in it.",
"File '/project/node_modules/anotherLib/package.json' does not exist.",
+ "File '/project/node_modules/anotherLib.ts' does not exist.",
+ "File '/project/node_modules/anotherLib.tsx' does not exist.",
+ "File '/project/node_modules/anotherLib.d.ts' does not exist.",
"File '/project/node_modules/anotherLib/index.ts' does not exist.",
"File '/project/node_modules/anotherLib/index.tsx' does not exist.",
"File '/project/node_modules/anotherLib/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json
index b12f65c6c4179..deceace40adac 100644
--- a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json
@@ -3,6 +3,11 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/normalize.css/package.json'.",
+ "File name '/node_modules/normalize.css' has a '.css' extension - stripping it.",
+ "File '/node_modules/normalize.d.css.ts' does not exist.",
+ "File '/node_modules/normalize.css.ts' does not exist.",
+ "File '/node_modules/normalize.css.tsx' does not exist.",
+ "File '/node_modules/normalize.css.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -20,8 +25,12 @@
"File '/node_modules/normalize.css/index.tsx' does not exist.",
"File '/node_modules/normalize.css/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
+ "File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it.",
"Loading module 'normalize.css' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/normalize.css/package.json' exists according to earlier cached lookups.",
+ "File name '/node_modules/normalize.css' has a '.css' extension - stripping it.",
+ "File '/node_modules/normalize.css.js' does not exist.",
+ "File '/node_modules/normalize.css.jsx' does not exist.",
"'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'.",
"File '/node_modules/normalize.css/normalize.css' exists - use it as a name resolution result.",
"File '/node_modules/normalize.css/normalize.css' has an unsupported extension, so skipping it.",
diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json
index 3e4c8fcb72724..f8e5102249fb4 100644
--- a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json
@@ -3,6 +3,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
+ "File '/node_modules/foo.ts' does not exist.",
+ "File '/node_modules/foo.tsx' does not exist.",
+ "File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'foo.js' that references '/node_modules/foo/foo.js'.",
@@ -23,6 +26,8 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'foo' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
+ "File '/node_modules/foo.js' does not exist.",
+ "File '/node_modules/foo.jsx' does not exist.",
"'package.json' does not have a 'main' field.",
"File '/node_modules/foo/index.js' does not exist.",
"File '/node_modules/foo/index.jsx' does not exist.",
diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json
index cd62882d6db69..0a11a5a11ab95 100644
--- a/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json
@@ -3,12 +3,17 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'js' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/js/package.json' does not exist.",
+ "File '/node_modules/js.ts' does not exist.",
+ "File '/node_modules/js.tsx' does not exist.",
+ "File '/node_modules/js.d.ts' does not exist.",
"File '/node_modules/js/index.ts' does not exist.",
"File '/node_modules/js/index.tsx' does not exist.",
"File '/node_modules/js/index.d.ts' does not exist.",
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'js' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/js/package.json' does not exist according to earlier cached lookups.",
+ "File '/node_modules/js.js' does not exist.",
+ "File '/node_modules/js.jsx' does not exist.",
"File '/node_modules/js/index.js' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/js/index.js', result '/node_modules/js/index.js'.",
"======== Module name 'js' was successfully resolved to '/node_modules/js/index.js'. ========",
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json
index f24c6004935a6..891f98efe2c8b 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalModule.trace.json
@@ -3,6 +3,9 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/some-library/package.json' does not exist.",
+ "File '/node_modules/some-library.ios.ts' does not exist.",
+ "File '/node_modules/some-library.ios.tsx' does not exist.",
+ "File '/node_modules/some-library.ios.d.ts' does not exist.",
"File '/node_modules/some-library/index.ios.ts' does not exist.",
"File '/node_modules/some-library/index.ios.tsx' does not exist.",
"File '/node_modules/some-library/index.ios.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json
index 61798e3d08e83..7ae16e498293a 100644
--- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_externalTSModule.trace.json
@@ -3,6 +3,9 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'some-library' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/some-library/package.json' does not exist.",
+ "File '/node_modules/some-library.ios.ts' does not exist.",
+ "File '/node_modules/some-library.ios.tsx' does not exist.",
+ "File '/node_modules/some-library.ios.d.ts' does not exist.",
"File '/node_modules/some-library/index.ios.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/some-library/index.ios.ts', result '/node_modules/some-library/index.ios.ts'.",
"======== Module name 'some-library' was successfully resolved to '/node_modules/some-library/index.ios.ts'. ========",
diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json
index 203d1b7132889..7c3fef21dc22f 100644
--- a/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSymlinks.trace.json
@@ -21,6 +21,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/src/library-b/node_modules/library-a/package.json' does not exist.",
+ "File '/src/library-b/node_modules/library-a.ts' does not exist.",
+ "File '/src/library-b/node_modules/library-a.tsx' does not exist.",
+ "File '/src/library-b/node_modules/library-a.d.ts' does not exist.",
"File '/src/library-b/node_modules/library-a/index.ts' exists - use it as a name resolution result.",
"Resolving real path for '/src/library-b/node_modules/library-a/index.ts', result '/src/library-a/index.ts'.",
"======== Module name 'library-a' was successfully resolved to '/src/library-a/index.ts'. ========",
diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json
index eb3e2ddca90b1..bcb921208a1e8 100644
--- a/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json
@@ -5,6 +5,7 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Looking up in 'node_modules' folder, initial location '/app'.",
"File '/app/node_modules/linked/package.json' does not exist.",
+ "File '/app/node_modules/linked.d.ts' does not exist.",
"File '/app/node_modules/linked/index.d.ts' exists - use it as a name resolution result.",
"======== Type reference directive 'linked' was successfully resolved to '/app/node_modules/linked/index.d.ts', primary: false. ========",
"======== Resolving module 'real' from '/app/node_modules/linked/index.d.ts'. ========",
@@ -12,6 +13,9 @@
"Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/app/node_modules/linked/node_modules' does not exist, skipping all lookups in it.",
"File '/app/node_modules/real/package.json' does not exist.",
+ "File '/app/node_modules/real.ts' does not exist.",
+ "File '/app/node_modules/real.tsx' does not exist.",
+ "File '/app/node_modules/real.d.ts' does not exist.",
"File '/app/node_modules/real/index.ts' does not exist.",
"File '/app/node_modules/real/index.tsx' does not exist.",
"File '/app/node_modules/real/index.d.ts' exists - use it as a name resolution result.",
@@ -20,6 +24,9 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'linked' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/app/node_modules/linked/package.json' does not exist according to earlier cached lookups.",
+ "File '/app/node_modules/linked.ts' does not exist.",
+ "File '/app/node_modules/linked.tsx' does not exist.",
+ "File '/app/node_modules/linked.d.ts' does not exist.",
"File '/app/node_modules/linked/index.ts' does not exist.",
"File '/app/node_modules/linked/index.tsx' does not exist.",
"File '/app/node_modules/linked/index.d.ts' exists - use it as a name resolution result.",
@@ -28,6 +35,9 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'linked2' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/app/node_modules/linked2/package.json' does not exist.",
+ "File '/app/node_modules/linked2.ts' does not exist.",
+ "File '/app/node_modules/linked2.tsx' does not exist.",
+ "File '/app/node_modules/linked2.d.ts' does not exist.",
"File '/app/node_modules/linked2/index.ts' does not exist.",
"File '/app/node_modules/linked2/index.tsx' does not exist.",
"File '/app/node_modules/linked2/index.d.ts' exists - use it as a name resolution result.",
@@ -37,6 +47,9 @@
"Loading module 'real' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/app/node_modules/linked2/node_modules' does not exist, skipping all lookups in it.",
"File '/app/node_modules/real/package.json' does not exist according to earlier cached lookups.",
+ "File '/app/node_modules/real.ts' does not exist.",
+ "File '/app/node_modules/real.tsx' does not exist.",
+ "File '/app/node_modules/real.d.ts' does not exist.",
"File '/app/node_modules/real/index.ts' does not exist.",
"File '/app/node_modules/real/index.tsx' does not exist.",
"File '/app/node_modules/real/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json
index a0cf574d47f91..d887b7e5b6b34 100644
--- a/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSymlinks_referenceTypes.trace.json
@@ -2,21 +2,27 @@
"======== Resolving type reference directive 'library-a', containing file '/app.ts', root directory ''. ========",
"Root directory cannot be determined, skipping primary search paths.",
"Looking up in 'node_modules' folder, initial location '/'.",
+ "File '/node_modules/library-a.d.ts' does not exist.",
"File '/node_modules/@types/library-a/package.json' does not exist.",
+ "File '/node_modules/@types/library-a.d.ts' does not exist.",
"File '/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'.",
"======== Type reference directive 'library-a' was successfully resolved to '/node_modules/@types/library-a/index.d.ts', primary: false. ========",
"======== Resolving type reference directive 'library-b', containing file '/app.ts', root directory ''. ========",
"Root directory cannot be determined, skipping primary search paths.",
"Looking up in 'node_modules' folder, initial location '/'.",
+ "File '/node_modules/library-b.d.ts' does not exist.",
"File '/node_modules/@types/library-b/package.json' does not exist.",
+ "File '/node_modules/@types/library-b.d.ts' does not exist.",
"File '/node_modules/@types/library-b/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/library-b/index.d.ts', result '/node_modules/@types/library-b/index.d.ts'.",
"======== Type reference directive 'library-b' was successfully resolved to '/node_modules/@types/library-b/index.d.ts', primary: false. ========",
"======== Resolving type reference directive 'library-a', containing file '/node_modules/@types/library-b/index.d.ts', root directory ''. ========",
"Root directory cannot be determined, skipping primary search paths.",
"Looking up in 'node_modules' folder, initial location '/node_modules/@types/library-b'.",
+ "File '/node_modules/@types/library-b/node_modules/library-a.d.ts' does not exist.",
"File '/node_modules/@types/library-b/node_modules/@types/library-a/package.json' does not exist.",
+ "File '/node_modules/@types/library-b/node_modules/@types/library-a.d.ts' does not exist.",
"File '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/library-b/node_modules/@types/library-a/index.d.ts', result '/node_modules/@types/library-a/index.d.ts'.",
"======== Type reference directive 'library-a' was successfully resolved to '/node_modules/@types/library-a/index.d.ts', primary: false. ========",
diff --git a/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json b/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json
index 203d1b7132889..7c3fef21dc22f 100644
--- a/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json
+++ b/tests/baselines/reference/moduleResolutionWithSymlinks_withOutDir.trace.json
@@ -21,6 +21,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'library-a' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/src/library-b/node_modules/library-a/package.json' does not exist.",
+ "File '/src/library-b/node_modules/library-a.ts' does not exist.",
+ "File '/src/library-b/node_modules/library-a.tsx' does not exist.",
+ "File '/src/library-b/node_modules/library-a.d.ts' does not exist.",
"File '/src/library-b/node_modules/library-a/index.ts' exists - use it as a name resolution result.",
"Resolving real path for '/src/library-b/node_modules/library-a/index.ts', result '/src/library-a/index.ts'.",
"======== Module name 'library-a' was successfully resolved to '/src/library-a/index.ts'. ========",
diff --git a/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json b/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json
index ff6f296e774c4..3324da7c000a2 100644
--- a/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json
+++ b/tests/baselines/reference/moduleResolution_packageJson_scopedPackage.trace.json
@@ -3,6 +3,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@foo/bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/@foo/bar/package.json'.",
+ "File '/node_modules/@foo/bar.ts' does not exist.",
+ "File '/node_modules/@foo/bar.tsx' does not exist.",
+ "File '/node_modules/@foo/bar.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'types.d.ts' that references '/node_modules/@foo/bar/types.d.ts'.",
diff --git a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json
index 9546775708cb3..1bfa9a9d9b275 100644
--- a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json
+++ b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_mainFieldInSubDirectory.trace.json
@@ -3,6 +3,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
+ "File '/node_modules/foo.ts' does not exist.",
+ "File '/node_modules/foo.tsx' does not exist.",
+ "File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/node10IsNode_node.trace.json b/tests/baselines/reference/node10IsNode_node.trace.json
index 80bf4985f44a0..aced83c3fecc4 100644
--- a/tests/baselines/reference/node10IsNode_node.trace.json
+++ b/tests/baselines/reference/node10IsNode_node.trace.json
@@ -3,6 +3,9 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/fancy-lib/package.json'.",
+ "File '/node_modules/fancy-lib.ts' does not exist.",
+ "File '/node_modules/fancy-lib.tsx' does not exist.",
+ "File '/node_modules/fancy-lib.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/node10IsNode_node10.trace.json b/tests/baselines/reference/node10IsNode_node10.trace.json
index 80bf4985f44a0..aced83c3fecc4 100644
--- a/tests/baselines/reference/node10IsNode_node10.trace.json
+++ b/tests/baselines/reference/node10IsNode_node10.trace.json
@@ -3,6 +3,9 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'fancy-lib' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/fancy-lib/package.json'.",
+ "File '/node_modules/fancy-lib.ts' does not exist.",
+ "File '/node_modules/fancy-lib.tsx' does not exist.",
+ "File '/node_modules/fancy-lib.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
diff --git a/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json b/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json
index 1f87f16bd7a87..0a22cd594f263 100644
--- a/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json
+++ b/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json
@@ -23,12 +23,19 @@
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'react' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration.",
"File '/packages/a/node_modules/react/package.json' does not exist.",
+ "File '/packages/a/node_modules/react.ts' does not exist.",
+ "File '/packages/a/node_modules/react.tsx' does not exist.",
+ "File '/packages/a/node_modules/react.d.ts' does not exist.",
"File '/packages/a/node_modules/react/index.ts' does not exist.",
"File '/packages/a/node_modules/react/index.tsx' does not exist.",
"File '/packages/a/node_modules/react/index.d.ts' does not exist.",
"Directory '/packages/a/node_modules/@types' does not exist, skipping all lookups in it.",
"Directory '/packages/node_modules' does not exist, skipping all lookups in it.",
+ "File '/node_modules/react.ts' does not exist.",
+ "File '/node_modules/react.tsx' does not exist.",
+ "File '/node_modules/react.d.ts' does not exist.",
"File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups.",
+ "File '/node_modules/@types/react.d.ts' does not exist.",
"File '/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/react/index.d.ts', result '/node_modules/@types/react/index.d.ts'.",
"======== Module name 'react' was successfully resolved to '/node_modules/@types/react/index.d.ts'. ========",
@@ -40,6 +47,9 @@
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'redux' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration.",
"File '/packages/a/node_modules/redux/package.json' does not exist according to earlier cached lookups.",
+ "File '/packages/a/node_modules/redux.ts' does not exist.",
+ "File '/packages/a/node_modules/redux.tsx' does not exist.",
+ "File '/packages/a/node_modules/redux.d.ts' does not exist.",
"File '/packages/a/node_modules/redux/index.ts' does not exist.",
"File '/packages/a/node_modules/redux/index.tsx' does not exist.",
"File '/packages/a/node_modules/redux/index.d.ts' exists - use it as a name resolution result.",
@@ -67,6 +77,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
@@ -78,6 +89,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
@@ -100,6 +112,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-dom'",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
@@ -122,6 +135,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========",
diff --git a/tests/baselines/reference/packageJsonMain.trace.json b/tests/baselines/reference/packageJsonMain.trace.json
index 9717db6fbe02e..eaad998f4424e 100644
--- a/tests/baselines/reference/packageJsonMain.trace.json
+++ b/tests/baselines/reference/packageJsonMain.trace.json
@@ -3,6 +3,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
+ "File '/node_modules/foo.ts' does not exist.",
+ "File '/node_modules/foo.tsx' does not exist.",
+ "File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -19,6 +22,8 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'foo' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
+ "File '/node_modules/foo.js' does not exist.",
+ "File '/node_modules/foo.jsx' does not exist.",
"'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'.",
"File '/node_modules/foo/oof' does not exist.",
"Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript.",
@@ -29,6 +34,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/bar/package.json'.",
+ "File '/node_modules/bar.ts' does not exist.",
+ "File '/node_modules/bar.tsx' does not exist.",
+ "File '/node_modules/bar.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -50,6 +58,8 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'bar' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/bar/package.json' exists according to earlier cached lookups.",
+ "File '/node_modules/bar.js' does not exist.",
+ "File '/node_modules/bar.jsx' does not exist.",
"'package.json' has 'main' field 'rab.js' that references '/node_modules/bar/rab.js'.",
"File '/node_modules/bar/rab.js' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/bar/rab.js', result '/node_modules/bar/rab.js'.",
@@ -58,6 +68,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'baz' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/baz/package.json'.",
+ "File '/node_modules/baz.ts' does not exist.",
+ "File '/node_modules/baz.tsx' does not exist.",
+ "File '/node_modules/baz.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -76,6 +89,8 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'baz' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/baz/package.json' exists according to earlier cached lookups.",
+ "File '/node_modules/baz.js' does not exist.",
+ "File '/node_modules/baz.jsx' does not exist.",
"'package.json' has 'main' field 'zab' that references '/node_modules/baz/zab'.",
"File '/node_modules/baz/zab' does not exist.",
"Loading module as file / folder, candidate module location '/node_modules/baz/zab', target file types: JavaScript.",
diff --git a/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json b/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json
index 0e2bd6cf155cc..90b9dd0fb39eb 100644
--- a/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json
+++ b/tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json
@@ -3,6 +3,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at '/node_modules/foo/package.json'.",
+ "File '/node_modules/foo.ts' does not exist.",
+ "File '/node_modules/foo.tsx' does not exist.",
+ "File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -21,6 +24,8 @@
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
"Loading module 'foo' from 'node_modules' folder, target file types: JavaScript.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
+ "File '/node_modules/foo.js' does not exist.",
+ "File '/node_modules/foo.jsx' does not exist.",
"'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'.",
"File '/node_modules/foo/oof' does not exist.",
"Loading module as file / folder, candidate module location '/node_modules/foo/oof', target file types: JavaScript.",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json
index a9d3f3bb381d5..4c9ccc5a76f06 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution3_node.trace.json
@@ -24,6 +24,9 @@
"Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it.",
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
"File 'c:/node_modules/file4/package.json' does not exist.",
+ "File 'c:/node_modules/file4.ts' does not exist.",
+ "File 'c:/node_modules/file4.tsx' does not exist.",
+ "File 'c:/node_modules/file4.d.ts' does not exist.",
"File 'c:/node_modules/file4/index.ts' does not exist.",
"File 'c:/node_modules/file4/index.tsx' does not exist.",
"File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json
index 1f29fb1067b14..6cff239654ea3 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution4_node.trace.json
@@ -24,6 +24,9 @@
"Directory 'c:/root/folder2/node_modules' does not exist, skipping all lookups in it.",
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
"File 'c:/node_modules/file4/package.json' does not exist.",
+ "File 'c:/node_modules/file4.ts' does not exist.",
+ "File 'c:/node_modules/file4.tsx' does not exist.",
+ "File 'c:/node_modules/file4.d.ts' does not exist.",
"File 'c:/node_modules/file4/index.ts' does not exist.",
"File 'c:/node_modules/file4/index.tsx' does not exist.",
"File 'c:/node_modules/file4/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json
index 0e32559c8cc0f..365ad6894ae4e 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json
@@ -55,6 +55,9 @@
"Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it.",
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
"File 'c:/node_modules/file4/package.json' does not exist.",
+ "File 'c:/node_modules/file4.ts' does not exist.",
+ "File 'c:/node_modules/file4.tsx' does not exist.",
+ "File 'c:/node_modules/file4.d.ts' does not exist.",
"File 'c:/node_modules/file4/index.ts' exists - use it as a name resolution result.",
"Resolving real path for 'c:/node_modules/file4/index.ts', result 'c:/node_modules/file4/index.ts'.",
"======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.ts'. ========",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json
index d999d1e7125ad..92eb39f974863 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json
@@ -34,6 +34,9 @@
"Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.",
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
"File 'c:/node_modules/module3/package.json' does not exist.",
+ "File 'c:/node_modules/module3.ts' does not exist.",
+ "File 'c:/node_modules/module3.tsx' does not exist.",
+ "File 'c:/node_modules/module3.d.ts' does not exist.",
"File 'c:/node_modules/module3/index.ts' does not exist.",
"File 'c:/node_modules/module3/index.tsx' does not exist.",
"File 'c:/node_modules/module3/index.d.ts' exists - use it as a name resolution result.",
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelative.js b/tests/baselines/reference/requireOfJsonFileNonRelative.js
new file mode 100644
index 0000000000000..e7a63e452443a
--- /dev/null
+++ b/tests/baselines/reference/requireOfJsonFileNonRelative.js
@@ -0,0 +1,34 @@
+//// [tests/cases/compiler/requireOfJsonFileNonRelative.ts] ////
+
+//// [file1.ts]
+import b1 = require('b.json');
+let x = b1.a;
+import b2 = require('c.json');
+if (x) {
+ let b = b2.b;
+ x = (b1.b === b);
+}
+
+//// [b.json]
+{
+ "a": true,
+ "b": "hello"
+}
+
+//// [c.json]
+{
+ "a": true,
+ "b": "hello"
+}
+
+
+//// [out/file1.js]
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var b1 = require("b.json");
+var x = b1.a;
+var b2 = require("c.json");
+if (x) {
+ var b = b2.b;
+ x = (b1.b === b);
+}
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelative.symbols b/tests/baselines/reference/requireOfJsonFileNonRelative.symbols
new file mode 100644
index 0000000000000..006cedc79272c
--- /dev/null
+++ b/tests/baselines/reference/requireOfJsonFileNonRelative.symbols
@@ -0,0 +1,48 @@
+=== /src/projects/file1.ts ===
+import b1 = require('b.json');
+>b1 : Symbol(b1, Decl(file1.ts, 0, 0))
+
+let x = b1.a;
+>x : Symbol(x, Decl(file1.ts, 1, 3))
+>b1.a : Symbol("a", Decl(b.json, 0, 1))
+>b1 : Symbol(b1, Decl(file1.ts, 0, 0))
+>a : Symbol("a", Decl(b.json, 0, 1))
+
+import b2 = require('c.json');
+>b2 : Symbol(b2, Decl(file1.ts, 1, 13))
+
+if (x) {
+>x : Symbol(x, Decl(file1.ts, 1, 3))
+
+ let b = b2.b;
+>b : Symbol(b, Decl(file1.ts, 4, 7))
+>b2.b : Symbol("b", Decl(c.json, 1, 14))
+>b2 : Symbol(b2, Decl(file1.ts, 1, 13))
+>b : Symbol("b", Decl(c.json, 1, 14))
+
+ x = (b1.b === b);
+>x : Symbol(x, Decl(file1.ts, 1, 3))
+>b1.b : Symbol("b", Decl(b.json, 1, 14))
+>b1 : Symbol(b1, Decl(file1.ts, 0, 0))
+>b : Symbol("b", Decl(b.json, 1, 14))
+>b : Symbol(b, Decl(file1.ts, 4, 7))
+}
+
+=== /src/projects/node_modules/b.json ===
+{
+ "a": true,
+>"a" : Symbol("a", Decl(b.json, 0, 1))
+
+ "b": "hello"
+>"b" : Symbol("b", Decl(b.json, 1, 14))
+}
+
+=== /src/node_modules/c.json ===
+{
+ "a": true,
+>"a" : Symbol("a", Decl(c.json, 0, 1))
+
+ "b": "hello"
+>"b" : Symbol("b", Decl(c.json, 1, 14))
+}
+
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelative.types b/tests/baselines/reference/requireOfJsonFileNonRelative.types
new file mode 100644
index 0000000000000..2d9057dbbcbdc
--- /dev/null
+++ b/tests/baselines/reference/requireOfJsonFileNonRelative.types
@@ -0,0 +1,59 @@
+=== /src/projects/file1.ts ===
+import b1 = require('b.json');
+>b1 : { a: boolean; b: string; }
+
+let x = b1.a;
+>x : boolean
+>b1.a : boolean
+>b1 : { a: boolean; b: string; }
+>a : boolean
+
+import b2 = require('c.json');
+>b2 : { a: boolean; b: string; }
+
+if (x) {
+>x : boolean
+
+ let b = b2.b;
+>b : string
+>b2.b : string
+>b2 : { a: boolean; b: string; }
+>b : string
+
+ x = (b1.b === b);
+>x = (b1.b === b) : boolean
+>x : boolean
+>(b1.b === b) : boolean
+>b1.b === b : boolean
+>b1.b : string
+>b1 : { a: boolean; b: string; }
+>b : string
+>b : string
+}
+
+=== /src/projects/node_modules/b.json ===
+{
+>{ "a": true, "b": "hello"} : { a: boolean; b: string; }
+
+ "a": true,
+>"a" : boolean
+>true : true
+
+ "b": "hello"
+>"b" : string
+>"hello" : "hello"
+}
+
+=== /src/node_modules/c.json ===
+{
+>{ "a": true, "b": "hello"} : { a: boolean; b: string; }
+
+ "a": true,
+>"a" : boolean
+>true : true
+
+ "b": "hello"
+>"b" : string
+>"hello" : "hello"
+}
+
diff --git a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json
index a922096ded97b..b6117a9519c47 100644
--- a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json
+++ b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json
@@ -14,6 +14,7 @@
"Failed to resolve under condition 'import'.",
"Saw non-matching condition 'require'.",
"Exiting conditional exports.",
+ "File '/node_modules/@types/foo.d.ts' does not exist.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
"Entering conditional exports.",
"Matched 'exports' condition 'import'.",
@@ -26,6 +27,9 @@
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/foo/package.json' exists according to earlier cached lookups.",
+ "File '/node_modules/foo.ts' does not exist.",
+ "File '/node_modules/foo.tsx' does not exist.",
+ "File '/node_modules/foo.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index.d.ts' that references '/node_modules/foo/index.d.ts'.",
@@ -63,6 +67,9 @@
"File '/package.json' does not exist according to earlier cached lookups.",
"Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/bar/package.json' exists according to earlier cached lookups.",
+ "File '/node_modules/bar.ts' does not exist.",
+ "File '/node_modules/bar.tsx' does not exist.",
+ "File '/node_modules/bar.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' does not have a 'types' field.",
@@ -82,6 +89,7 @@
"File '/node_modules/bar/index.tsx' does not exist.",
"File '/node_modules/bar/index.d.ts' does not exist.",
"File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups.",
+ "File '/node_modules/@types/bar.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'.",
@@ -103,6 +111,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
@@ -112,6 +121,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
@@ -130,6 +140,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-dom'",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
@@ -148,6 +159,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
diff --git a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json
index a58ac57ac2bdc..bc06b00ed2f48 100644
--- a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json
+++ b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json
@@ -104,6 +104,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
@@ -115,6 +116,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
@@ -137,6 +139,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-dom'",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
@@ -159,6 +162,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========",
diff --git a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js
index 90ec0cf7d0a32..aa9523ed48836 100644
--- a/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js
+++ b/tests/baselines/reference/reuseProgramStructure/can-reuse-ambient-module-declarations-from-non-modified-files.js
@@ -16,10 +16,13 @@ fs: {
"/fs.tsx",
"/fs.d.ts",
"/a/b/node_modules/@types/fs/package.json",
+ "/a/b/node_modules/@types/fs.d.ts",
"/a/b/node_modules/@types/fs/index.d.ts",
"/a/node_modules/@types/fs/package.json",
+ "/a/node_modules/@types/fs.d.ts",
"/a/node_modules/@types/fs/index.d.ts",
"/node_modules/@types/fs/package.json",
+ "/node_modules/@types/fs.d.ts",
"/node_modules/@types/fs/index.d.ts",
"/a/b/fs.js",
"/a/b/fs.jsx",
@@ -50,10 +53,13 @@ File '/fs.ts' does not exist.
File '/fs.tsx' does not exist.
File '/fs.d.ts' does not exist.
File '/a/b/node_modules/@types/fs/package.json' does not exist.
+File '/a/b/node_modules/@types/fs.d.ts' does not exist.
File '/a/b/node_modules/@types/fs/index.d.ts' does not exist.
File '/a/node_modules/@types/fs/package.json' does not exist.
+File '/a/node_modules/@types/fs.d.ts' does not exist.
File '/a/node_modules/@types/fs/index.d.ts' does not exist.
File '/node_modules/@types/fs/package.json' does not exist.
+File '/node_modules/@types/fs.d.ts' does not exist.
File '/node_modules/@types/fs/index.d.ts' does not exist.
File '/a/b/fs.js' does not exist.
File '/a/b/fs.jsx' does not exist.
@@ -86,10 +92,13 @@ fs: {
"/fs.tsx",
"/fs.d.ts",
"/a/b/node_modules/@types/fs/package.json",
+ "/a/b/node_modules/@types/fs.d.ts",
"/a/b/node_modules/@types/fs/index.d.ts",
"/a/node_modules/@types/fs/package.json",
+ "/a/node_modules/@types/fs.d.ts",
"/a/node_modules/@types/fs/index.d.ts",
"/node_modules/@types/fs/package.json",
+ "/node_modules/@types/fs.d.ts",
"/node_modules/@types/fs/index.d.ts",
"/a/b/fs.js",
"/a/b/fs.jsx",
@@ -133,10 +142,13 @@ fs: {
"/fs.tsx",
"/fs.d.ts",
"/a/b/node_modules/@types/fs/package.json",
+ "/a/b/node_modules/@types/fs.d.ts",
"/a/b/node_modules/@types/fs/index.d.ts",
"/a/node_modules/@types/fs/package.json",
+ "/a/node_modules/@types/fs.d.ts",
"/a/node_modules/@types/fs/index.d.ts",
"/node_modules/@types/fs/package.json",
+ "/node_modules/@types/fs.d.ts",
"/node_modules/@types/fs/index.d.ts",
"/a/b/fs.js",
"/a/b/fs.jsx",
@@ -167,10 +179,13 @@ File '/fs.ts' does not exist.
File '/fs.tsx' does not exist.
File '/fs.d.ts' does not exist.
File '/a/b/node_modules/@types/fs/package.json' does not exist.
+File '/a/b/node_modules/@types/fs.d.ts' does not exist.
File '/a/b/node_modules/@types/fs/index.d.ts' does not exist.
File '/a/node_modules/@types/fs/package.json' does not exist.
+File '/a/node_modules/@types/fs.d.ts' does not exist.
File '/a/node_modules/@types/fs/index.d.ts' does not exist.
File '/node_modules/@types/fs/package.json' does not exist.
+File '/node_modules/@types/fs.d.ts' does not exist.
File '/node_modules/@types/fs/index.d.ts' does not exist.
File '/a/b/fs.js' does not exist.
File '/a/b/fs.jsx' does not exist.
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js b/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js
index 6a80d3f0a573d..a6ec1e0691cbd 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-a-single-module-of-a-package.js
@@ -51,6 +51,9 @@ b: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
@@ -119,6 +122,9 @@ b: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
],
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js
index 76baebb010ff1..b1af4711871a3 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-imports.js
@@ -28,8 +28,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -80,8 +82,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js b/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js
index 0ae3470808a7b..ccb5fb4735f0b 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-tripleslash-references.js
@@ -28,8 +28,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js b/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js
index e4a7f5d1e173c..01de928c937d2 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-type-directives.js
@@ -28,8 +28,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -71,8 +73,10 @@ typerefs1: {
"node_modules/@types/typerefs1/package.json",
"node_modules/@types/typerefs1/index.d.ts",
"node_modules/typerefs1/package.json",
+ "node_modules/typerefs1.d.ts",
"node_modules/typerefs1/index.d.ts",
"node_modules/@types/typerefs1/package.json",
+ "node_modules/@types/typerefs1.d.ts",
"node_modules/@types/typerefs1/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js b/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js
index 59c5c0286b6ed..e13a7eb95fd6c 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-affects-type-references.js
@@ -28,8 +28,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -72,8 +74,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js b/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js
index 09cc31700ee40..102fa9c3086ac 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-does-not-affect-imports-or-type-refs.js
@@ -28,8 +28,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -72,8 +74,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js b/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js
index 4242f6314f31e..1e7e9f8be90e0 100644
--- a/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js
+++ b/tests/baselines/reference/reuseProgramStructure/change-doesnot-affect-type-references.js
@@ -28,8 +28,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -72,8 +74,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/config-path-changes.js b/tests/baselines/reference/reuseProgramStructure/config-path-changes.js
index 33d2bd0877827..1dd028d4ccb90 100644
--- a/tests/baselines/reference/reuseProgramStructure/config-path-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/config-path-changes.js
@@ -32,8 +32,10 @@ typerefs: {
"/node_modules/@types/typerefs/package.json",
"/node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -80,8 +82,10 @@ typerefs: {
"/node_modules/@types/typerefs/package.json",
"/node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js
index 84a70a00b88ee..a3e14fb994ab5 100644
--- a/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js
+++ b/tests/baselines/reference/reuseProgramStructure/fetches-imports-after-npm-install.js
@@ -7,12 +7,18 @@ resolvedModules:
a: {
"failedLookupLocations": [
"node_modules/a/package.json",
+ "node_modules/a.ts",
+ "node_modules/a.tsx",
+ "node_modules/a.d.ts",
"node_modules/a/index.ts",
"node_modules/a/index.tsx",
"node_modules/a/index.d.ts",
"node_modules/@types/a/package.json",
+ "node_modules/@types/a.d.ts",
"node_modules/@types/a/index.d.ts",
"node_modules/a/package.json",
+ "node_modules/a.js",
+ "node_modules/a.jsx",
"node_modules/a/index.js",
"node_modules/a/index.jsx"
]
@@ -30,13 +36,19 @@ resolvedTypeReferenceDirectiveNames: undefined
Explicitly specified module resolution kind: 'Node10'.
Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.
File 'node_modules/a/package.json' does not exist.
+File 'node_modules/a.ts' does not exist.
+File 'node_modules/a.tsx' does not exist.
+File 'node_modules/a.d.ts' does not exist.
File 'node_modules/a/index.ts' does not exist.
File 'node_modules/a/index.tsx' does not exist.
File 'node_modules/a/index.d.ts' does not exist.
File 'node_modules/@types/a/package.json' does not exist.
+File 'node_modules/@types/a.d.ts' does not exist.
File 'node_modules/@types/a/index.d.ts' does not exist.
Loading module 'a' from 'node_modules' folder, target file types: JavaScript.
File 'node_modules/a/package.json' does not exist according to earlier cached lookups.
+File 'node_modules/a.js' does not exist.
+File 'node_modules/a.jsx' does not exist.
File 'node_modules/a/index.js' does not exist.
File 'node_modules/a/index.jsx' does not exist.
======== Module name 'a' was not resolved. ========
@@ -69,6 +81,9 @@ a: {
},
"failedLookupLocations": [
"node_modules/a/package.json",
+ "node_modules/a.ts",
+ "node_modules/a.tsx",
+ "node_modules/a.d.ts",
"node_modules/a/index.ts",
"node_modules/a/index.tsx"
]
@@ -86,6 +101,9 @@ resolvedTypeReferenceDirectiveNames: undefined
Explicitly specified module resolution kind: 'Node10'.
Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.
File 'node_modules/a/package.json' does not exist.
+File 'node_modules/a.ts' does not exist.
+File 'node_modules/a.tsx' does not exist.
+File 'node_modules/a.d.ts' does not exist.
File 'node_modules/a/index.ts' does not exist.
File 'node_modules/a/index.tsx' does not exist.
File 'node_modules/a/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js b/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js
index ef07d8bc0fd37..33f09a3917b7b 100644
--- a/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js
+++ b/tests/baselines/reference/reuseProgramStructure/missing-file-is-created.js
@@ -28,8 +28,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -79,8 +81,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js b/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js
index 5488186bc99cb..a31ec62764d03 100644
--- a/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js
+++ b/tests/baselines/reference/reuseProgramStructure/missing-files-remain-missing.js
@@ -28,8 +28,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -72,8 +74,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js b/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js
index 114a7c15778a6..2f2b2cc768930 100644
--- a/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/module-kind-changes.js
@@ -28,8 +28,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -72,8 +74,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js b/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js
index 677710981a1ca..d6851e614b653 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-no-change.js
@@ -24,6 +24,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -58,6 +61,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -81,6 +87,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -94,6 +103,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -132,6 +144,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -166,6 +181,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -189,6 +207,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -202,6 +223,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js
index b14a4af9b5b34..f7a11625082e9 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-previous-duplicate-packages.js
@@ -24,6 +24,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -58,6 +61,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -81,6 +87,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -94,6 +103,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -134,6 +146,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -168,6 +183,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -191,6 +209,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -204,6 +225,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js
index 520cb41a560d0..83f61703a58aa 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-target-changes.js
@@ -24,6 +24,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -58,6 +61,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -81,6 +87,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -94,6 +103,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -127,6 +139,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -161,6 +176,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -184,6 +202,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -197,6 +218,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js
index c49ae9bceb5e4..b22376b0f96a6 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-underlying-changes.js
@@ -24,6 +24,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -58,6 +61,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -81,6 +87,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -94,6 +103,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -132,6 +144,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -166,6 +181,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -189,6 +207,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -202,6 +223,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js
index 677710981a1ca..d6851e614b653 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-no-change.js
@@ -24,6 +24,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -58,6 +61,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -81,6 +87,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -94,6 +103,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -132,6 +144,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -166,6 +181,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -189,6 +207,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -202,6 +223,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js
index b14a4af9b5b34..f7a11625082e9 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-previous-duplicate-packages.js
@@ -24,6 +24,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -58,6 +61,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -81,6 +87,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -94,6 +103,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -134,6 +146,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -168,6 +183,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -191,6 +209,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -204,6 +225,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js
index 520cb41a560d0..83f61703a58aa 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-target-changes.js
@@ -24,6 +24,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -58,6 +61,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -81,6 +87,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -94,6 +103,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -127,6 +139,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -161,6 +176,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -184,6 +202,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -197,6 +218,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js
index c49ae9bceb5e4..b22376b0f96a6 100644
--- a/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/redirect-with-getSourceFileByPath-underlying-changes.js
@@ -24,6 +24,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -58,6 +61,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -81,6 +87,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -94,6 +103,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
@@ -132,6 +144,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/a/node_modules/x.ts",
+ "/node_modules/a/node_modules/x.tsx",
+ "/node_modules/a/node_modules/x.d.ts",
"/node_modules/a/node_modules/x/index.ts",
"/node_modules/a/node_modules/x/index.tsx"
],
@@ -166,6 +181,9 @@ x: {
"resolvedUsingTsExtension": false
},
"failedLookupLocations": [
+ "/node_modules/b/node_modules/x.ts",
+ "/node_modules/b/node_modules/x.tsx",
+ "/node_modules/b/node_modules/x.d.ts",
"/node_modules/b/node_modules/x/index.ts",
"/node_modules/b/node_modules/x/index.tsx"
],
@@ -189,6 +207,9 @@ a: {
},
"failedLookupLocations": [
"/node_modules/a/package.json",
+ "/node_modules/a.ts",
+ "/node_modules/a.tsx",
+ "/node_modules/a.d.ts",
"/node_modules/a/index.ts",
"/node_modules/a/index.tsx"
]
@@ -202,6 +223,9 @@ b: {
},
"failedLookupLocations": [
"/node_modules/b/package.json",
+ "/node_modules/b.ts",
+ "/node_modules/b.tsx",
+ "/node_modules/b.d.ts",
"/node_modules/b/index.ts",
"/node_modules/b/index.tsx"
]
diff --git a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js
index e315ea42fa395..b9a3e2a4fc7ed 100644
--- a/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js
+++ b/tests/baselines/reference/reuseProgramStructure/resolution-cache-follows-imports.js
@@ -101,6 +101,7 @@ c: {
"c.tsx",
"c.d.ts",
"node_modules/@types/c/package.json",
+ "node_modules/@types/c.d.ts",
"node_modules/@types/c/index.d.ts",
"c.js",
"c.jsx"
diff --git a/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js b/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js
index ebbe6bc208cdf..4c0cd65d093e4 100644
--- a/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js
+++ b/tests/baselines/reference/reuseProgramStructure/resolved-type-directives-cache-follows-type-directives.js
@@ -109,8 +109,10 @@ typedefs2: {
"/types/typedefs2/package.json",
"/types/typedefs2/index.d.ts",
"/node_modules/typedefs2/package.json",
+ "/node_modules/typedefs2.d.ts",
"/node_modules/typedefs2/index.d.ts",
"/node_modules/@types/typedefs2/package.json",
+ "/node_modules/@types/typedefs2.d.ts",
"/node_modules/@types/typedefs2/index.d.ts"
]
}
diff --git a/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js b/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js
index f48ca2e85538e..563eddd3f9628 100644
--- a/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js
+++ b/tests/baselines/reference/reuseProgramStructure/rootdir-changes.js
@@ -28,8 +28,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
@@ -74,8 +76,10 @@ typerefs: {
"node_modules/@types/typerefs/package.json",
"node_modules/@types/typerefs/index.d.ts",
"node_modules/typerefs/package.json",
+ "node_modules/typerefs.d.ts",
"node_modules/typerefs/index.d.ts",
"node_modules/@types/typerefs/package.json",
+ "node_modules/@types/typerefs.d.ts",
"node_modules/@types/typerefs/index.d.ts"
]
}
diff --git a/tests/baselines/reference/scopedPackages.trace.json b/tests/baselines/reference/scopedPackages.trace.json
index 19ca5d47c5c22..8145f6ad1d511 100644
--- a/tests/baselines/reference/scopedPackages.trace.json
+++ b/tests/baselines/reference/scopedPackages.trace.json
@@ -3,6 +3,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module '@cow/boy' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File '/node_modules/@cow/boy/package.json' does not exist.",
+ "File '/node_modules/@cow/boy.ts' does not exist.",
+ "File '/node_modules/@cow/boy.tsx' does not exist.",
+ "File '/node_modules/@cow/boy.d.ts' does not exist.",
"File '/node_modules/@cow/boy/index.ts' does not exist.",
"File '/node_modules/@cow/boy/index.tsx' does not exist.",
"File '/node_modules/@cow/boy/index.d.ts' exists - use it as a name resolution result.",
@@ -13,6 +16,7 @@
"Loading module '@be/bop' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'be__bop'",
"File '/node_modules/@types/be__bop/package.json' does not exist.",
+ "File '/node_modules/@types/be__bop.d.ts' does not exist.",
"File '/node_modules/@types/be__bop/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/be__bop/index.d.ts', result '/node_modules/@types/be__bop/index.d.ts'.",
"======== Module name '@be/bop' was successfully resolved to '/node_modules/@types/be__bop/index.d.ts'. ========",
@@ -30,6 +34,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
@@ -39,6 +44,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
@@ -57,6 +63,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-dom'",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
@@ -75,6 +82,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
diff --git a/tests/baselines/reference/scopedPackagesClassic.trace.json b/tests/baselines/reference/scopedPackagesClassic.trace.json
index ee5fb61fc9f02..b10080782c657 100644
--- a/tests/baselines/reference/scopedPackagesClassic.trace.json
+++ b/tests/baselines/reference/scopedPackagesClassic.trace.json
@@ -3,6 +3,7 @@
"Explicitly specified module resolution kind: 'Classic'.",
"Scoped package detected, looking in 'see__saw'",
"File '/node_modules/@types/see__saw/package.json' does not exist.",
+ "File '/node_modules/@types/see__saw.d.ts' does not exist.",
"File '/node_modules/@types/see__saw/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/see__saw/index.d.ts', result '/node_modules/@types/see__saw/index.d.ts'.",
"======== Module name '@see/saw' was successfully resolved to '/node_modules/@types/see__saw/index.d.ts'. ========",
@@ -12,6 +13,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
@@ -21,6 +23,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
@@ -39,6 +42,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-dom'",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
@@ -57,6 +61,7 @@
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"Directory 'node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js
index e60ba75748732..dfcf7a8530a96 100644
--- a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js
+++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js
@@ -167,6 +167,9 @@ Loading module '@typescript/lib-webworker' from 'node_modules' folder, target fi
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
@@ -178,6 +181,9 @@ Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target f
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result.
@@ -189,6 +195,9 @@ Loading module '@typescript/lib-es5' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result.
@@ -207,6 +216,9 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -296,6 +308,9 @@ Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file
Directory '/home/src/projects/project4/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-esnext'
File '/home/src/projects/node_modules/@typescript/lib-esnext/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-esnext/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-esnext/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js
index 7ea110a410ddd..cb3cedb3beb6e 100644
--- a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js
+++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js
@@ -127,6 +127,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -137,6 +140,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -146,6 +151,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -156,6 +164,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -165,6 +175,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -175,6 +188,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-es5.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -191,6 +206,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -201,6 +219,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -288,6 +308,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project4/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-esnext'
+File '/home/src/projects/node_modules/@typescript/lib-esnext.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-esnext'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -298,6 +321,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-esnext'
Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project4/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js
index 9b35bcad3cdc9..e2d211ed69252 100644
--- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js
+++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-preserveSymlinks.js
@@ -61,6 +61,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js
index 87060bede4bab..95a24ae472c44 100644
--- a/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js
+++ b/tests/baselines/reference/tsbuild/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly.js
@@ -61,6 +61,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js
index 7de844268295c..ee731b6a9cb88 100644
--- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js
+++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js
@@ -153,6 +153,9 @@ Loading module '@typescript/lib-webworker' from 'node_modules' folder, target fi
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
@@ -164,6 +167,9 @@ Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target f
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result.
@@ -175,6 +181,9 @@ Loading module '@typescript/lib-es5' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result.
@@ -193,6 +202,9 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -282,6 +294,9 @@ Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file
Directory '/home/src/projects/project4/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-esnext'
File '/home/src/projects/node_modules/@typescript/lib-esnext/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-esnext/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-esnext/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js
index 4157a3912ac10..847667a689a20 100644
--- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js
+++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js
@@ -113,6 +113,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -123,6 +126,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -132,6 +137,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -142,6 +150,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -151,6 +161,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -161,6 +174,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-es5.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -177,6 +192,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -187,6 +205,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -274,6 +294,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project4/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-esnext'
+File '/home/src/projects/node_modules/@typescript/lib-esnext.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-esnext'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -284,6 +307,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-esnext'
Loading module '@typescript/lib-esnext' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project4/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-esnext.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js
index 9f212daaf527f..e314e2b405c0d 100644
--- a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js
+++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js
@@ -69,6 +69,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -311,6 +314,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -376,6 +382,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js
index 512e051d686c8..89ef60c3b40a2 100644
--- a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js
+++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js
@@ -312,6 +312,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -471,6 +474,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -575,6 +581,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js
index b42d1b5772de1..1cb6823de4fbb 100644
--- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js
+++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-moduleCaseChange.js
@@ -92,6 +92,9 @@ Output::
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -105,6 +108,9 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.d.ts' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.ts' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.tsx' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.d.ts' exists - use it as a name resolution result.
@@ -114,6 +120,9 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json'.
+File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.ts' does not exist.
+File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.tsx' does not exist.
+File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js
index b19218f49f5fd..a48b0eb27bdd4 100644
--- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js
+++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link-moduleCaseChange.js
@@ -94,6 +94,9 @@ Output::
Module resolution kind is not specified, using 'Node10'.
Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json'.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -110,6 +113,9 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -125,6 +131,9 @@ Loading module 'typescript-fsa' from 'node_modules' folder, target file types: T
Directory '/user/username/projects/myProject/plugin-two/dist/commonjs/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myProject/plugin-two/dist/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa/package.json'.
+File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.ts' does not exist.
+File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.tsx' does not exist.
+File '/user/username/projects/myProject/plugin-two/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js
index efa1bfccc9d73..590f7b9ee4a78 100644
--- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js
+++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package-with-indirect-link.js
@@ -94,6 +94,9 @@ Output::
Module resolution kind is not specified, using 'Node10'.
Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json'.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -110,6 +113,9 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -125,6 +131,9 @@ Loading module 'typescript-fsa' from 'node_modules' folder, target file types: T
Directory '/user/username/projects/myproject/plugin-two/dist/commonjs/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/plugin-two/dist/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json'.
+File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.ts' does not exist.
+File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.tsx' does not exist.
+File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js
index 0f39ad8e0e7a1..791a357ff9e24 100644
--- a/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js
+++ b/tests/baselines/reference/tsc/declarationEmit/when-same-version-is-referenced-through-source-and-another-symlinked-package.js
@@ -92,6 +92,9 @@ Output::
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa/package.json'.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.ts' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.tsx' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -105,6 +108,9 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'plugin-two' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/package.json' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.ts' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.tsx' does not exist.
+File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two.d.ts' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.ts' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.tsx' does not exist.
File '/user/username/projects/myproject/plugin-one/node_modules/plugin-two/index.d.ts' exists - use it as a name resolution result.
@@ -114,6 +120,9 @@ Resolving real path for '/user/username/projects/myproject/plugin-one/node_modul
Module resolution kind is not specified, using 'Node10'.
Loading module 'typescript-fsa' from 'node_modules' folder, target file types: TypeScript, Declaration.
Found 'package.json' at '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa/package.json'.
+File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.ts' does not exist.
+File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.tsx' does not exist.
+File '/user/username/projects/myproject/plugin-two/node_modules/typescript-fsa.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js
index cdeaf9e6663ba..cd8d5d48cab23 100644
--- a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js
+++ b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js
@@ -157,6 +157,9 @@ Loading module '@typescript/lib-webworker' from 'node_modules' folder, target fi
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
@@ -168,6 +171,9 @@ Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target f
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result.
@@ -179,6 +185,9 @@ Loading module '@typescript/lib-es5' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result.
@@ -197,6 +206,9 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config.js b/tests/baselines/reference/tsc/libraryResolution/with-config.js
index 950495570a522..96e2024923c7c 100644
--- a/tests/baselines/reference/tsc/libraryResolution/with-config.js
+++ b/tests/baselines/reference/tsc/libraryResolution/with-config.js
@@ -117,6 +117,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -127,6 +130,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -136,6 +141,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -146,6 +154,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -155,6 +165,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -165,6 +178,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-es5.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -181,6 +196,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -191,6 +209,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js
index 08e856db60b25..fabb413b08864 100644
--- a/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js
+++ b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js
@@ -155,6 +155,9 @@ Output::
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
@@ -164,6 +167,9 @@ Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webwork
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result.
@@ -173,6 +179,9 @@ Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripth
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result.
@@ -182,6 +191,9 @@ Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/ind
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config.js b/tests/baselines/reference/tsc/libraryResolution/without-config.js
index abf5fc4f06050..6ac0052b5f69b 100644
--- a/tests/baselines/reference/tsc/libraryResolution/without-config.js
+++ b/tests/baselines/reference/tsc/libraryResolution/without-config.js
@@ -115,6 +115,9 @@ Output::
======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ========
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -124,6 +127,8 @@ Scoped package detected, looking in 'typescript__lib-webworker'
Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -131,6 +136,9 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -140,6 +148,8 @@ Scoped package detected, looking in 'typescript__lib-scripthost'
Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -147,6 +157,9 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -156,6 +169,8 @@ Scoped package detected, looking in 'typescript__lib-es5'
Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.
+File '/home/src/projects/node_modules/@typescript/lib-es5.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -163,6 +178,9 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
======== Resolving module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -172,6 +190,8 @@ Scoped package detected, looking in 'typescript__lib-dom'
Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js
index 4689e4a48a28b..bbc51be2206f0 100644
--- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js
+++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js
@@ -51,6 +51,9 @@ File '/Users/package.json' does not exist according to earlier cached lookups.
File '/package.json' does not exist according to earlier cached lookups.
Loading module 'yargs' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration.
Directory '/Users/name/projects/web/src/node_modules' does not exist, skipping all lookups in it.
+File '/Users/name/projects/web/node_modules/yargs.ts' does not exist.
+File '/Users/name/projects/web/node_modules/yargs.tsx' does not exist.
+File '/Users/name/projects/web/node_modules/yargs.d.ts' does not exist.
Found 'package.json' at '/Users/name/projects/web/node_modules/@types/yargs/package.json'.
Entering conditional exports.
Matched 'exports' condition 'types'.
diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js
index 2b754c74a2ae4..a9ab07f8e8f30 100644
--- a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js
+++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js
@@ -152,6 +152,9 @@ Loading module '@typescript/lib-webworker' from 'node_modules' folder, target fi
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
@@ -168,6 +171,9 @@ Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target f
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result.
@@ -180,6 +186,9 @@ Loading module '@typescript/lib-es5' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result.
@@ -204,6 +213,9 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -516,6 +528,9 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' does not exist.
@@ -530,6 +545,8 @@ Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.js' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -1265,6 +1282,9 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -1660,6 +1680,9 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' does not exist.
@@ -1674,6 +1697,8 @@ Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.js' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -1944,6 +1969,9 @@ Loading module '@typescript/lib-webworker' from 'node_modules' folder, target fi
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' does not exist.
@@ -1958,6 +1986,8 @@ Scoped package detected, looking in 'typescript__lib-webworker'
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.js' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -2227,6 +2257,9 @@ Loading module '@typescript/lib-webworker' from 'node_modules' folder, target fi
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js
index 66aaae679b7ea..f1faf8c992d2f 100644
--- a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js
+++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js
@@ -112,6 +112,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -122,6 +125,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -136,6 +141,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -146,6 +154,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -156,6 +166,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -166,6 +179,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-es5.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -188,6 +203,9 @@ Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -198,6 +216,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -513,6 +533,9 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -1248,6 +1271,9 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' does not exist.
@@ -1262,6 +1288,8 @@ Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.js' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -1655,6 +1683,9 @@ Loading module '@typescript/lib-dom' from 'node_modules' folder, target file typ
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -1929,6 +1960,9 @@ Loading module '@typescript/lib-webworker' from 'node_modules' folder, target fi
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
@@ -2196,6 +2230,9 @@ Loading module '@typescript/lib-webworker' from 'node_modules' folder, target fi
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' does not exist.
@@ -2210,6 +2247,8 @@ Scoped package detected, looking in 'typescript__lib-webworker'
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.js' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js
index 4953a7353dc9e..ebadf6eed224b 100644
--- a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js
+++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js
@@ -151,6 +151,9 @@ FileWatcher:: Added:: WatchInfo: project1/file2.ts 250 undefined Source file
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
@@ -163,6 +166,9 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result.
@@ -173,6 +179,9 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result.
@@ -183,6 +192,9 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -331,6 +343,9 @@ Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__li
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' does not exist.
@@ -344,6 +359,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.js' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -658,6 +675,9 @@ Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__li
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -779,6 +799,9 @@ FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' does not exist.
@@ -792,6 +815,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.js' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -918,6 +943,9 @@ CreatingProgramWith::
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js
index 7a2d727cee4d0..eccfe8f671717 100644
--- a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js
+++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js
@@ -111,6 +111,9 @@ FileWatcher:: Added:: WatchInfo: project1/file2.ts 250 undefined Source file
======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ========
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -120,6 +123,8 @@ Scoped package detected, looking in 'typescript__lib-webworker'
Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -130,6 +135,9 @@ FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined
======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -139,6 +147,8 @@ Scoped package detected, looking in 'typescript__lib-scripthost'
Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-scripthost'
Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-scripthost.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -147,6 +157,9 @@ FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.scripthost.d.ts 250 undefined
======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.
+File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -156,6 +169,8 @@ Scoped package detected, looking in 'typescript__lib-es5'
Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-es5'
Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.
+File '/home/src/projects/node_modules/@typescript/lib-es5.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-es5.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -164,6 +179,9 @@ FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.es5.d.ts 250 undefined Source
======== Resolving module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -173,6 +191,8 @@ Scoped package detected, looking in 'typescript__lib-dom'
Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Directory '/home/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -325,6 +345,9 @@ Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__li
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -637,6 +660,9 @@ Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__li
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' does not exist.
@@ -650,6 +676,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-dom'
Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.js' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-dom/index.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -776,6 +804,9 @@ CreatingProgramWith::
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
@@ -900,6 +931,9 @@ FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib
Explicitly specified module resolution kind: 'Node10'.
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' does not exist.
@@ -913,6 +947,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'typescript__lib-webworker'
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.js' does not exist.
File '/home/src/projects/node_modules/@typescript/lib-webworker/index.jsx' does not exist.
Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
diff --git a/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js b/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js
index a2973a37bc7bb..ae2064475ccda 100644
--- a/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js
+++ b/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js
@@ -105,6 +105,7 @@ File name '/user/username/projects/myproject/node_modules/pkg1/require.js' has a
File '/user/username/projects/myproject/node_modules/pkg1/require.d.ts' does not exist.
Failed to resolve under condition 'require'.
Exiting conditional exports.
+File '/user/username/projects/myproject/node_modules/@types/pkg1.d.ts' does not exist.
Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/node_modules' does not exist, skipping all lookups in it.
Directory '/user/node_modules' does not exist, skipping all lookups in it.
diff --git a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js
index efd3b2afd9ace..08b9341ba8947 100644
--- a/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js
+++ b/tests/baselines/reference/tscWatch/moduleResolution/watches-for-changes-to-package-json-main-fields.js
@@ -48,6 +48,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -163,6 +166,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
@@ -270,6 +276,9 @@ Loading module 'pkg2' from 'node_modules' folder, target file types: TypeScript,
Directory '/user/username/projects/myproject/packages/pkg1/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/projects/myproject/packages/node_modules' does not exist, skipping all lookups in it.
Found 'package.json' at '/user/username/projects/myproject/node_modules/pkg2/package.json'.
+File '/user/username/projects/myproject/node_modules/pkg2.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/pkg2.d.ts' does not exist.
'package.json' does not have a 'typesVersions' field.
'package.json' does not have a 'typings' field.
'package.json' does not have a 'types' field.
diff --git a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js
index 850d97825dacb..9ca4265fac464 100644
--- a/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js
+++ b/tests/baselines/reference/tscWatch/resolutionCache/reusing-type-ref-resolution.js
@@ -50,6 +50,9 @@ FileWatcher:: Added:: WatchInfo: /users/username/projects/project/fileWithImport
Module resolution kind is not specified, using 'Node10'.
Loading module 'pkg0' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/users/username/projects/project/node_modules/pkg0/package.json' does not exist.
+File '/users/username/projects/project/node_modules/pkg0.ts' does not exist.
+File '/users/username/projects/project/node_modules/pkg0.tsx' does not exist.
+File '/users/username/projects/project/node_modules/pkg0.d.ts' does not exist.
File '/users/username/projects/project/node_modules/pkg0/index.ts' does not exist.
File '/users/username/projects/project/node_modules/pkg0/index.tsx' does not exist.
File '/users/username/projects/project/node_modules/pkg0/index.d.ts' exists - use it as a name resolution result.
@@ -58,12 +61,17 @@ Resolving real path for '/users/username/projects/project/node_modules/pkg0/inde
======== Resolving module 'pkg1' from '/users/username/projects/project/fileWithImports.ts'. ========
Module resolution kind is not specified, using 'Node10'.
Loading module 'pkg1' from 'node_modules' folder, target file types: TypeScript, Declaration.
+File '/users/username/projects/project/node_modules/pkg1.ts' does not exist.
+File '/users/username/projects/project/node_modules/pkg1.tsx' does not exist.
+File '/users/username/projects/project/node_modules/pkg1.d.ts' does not exist.
Directory '/users/username/projects/project/node_modules/@types' does not exist, skipping all lookups in it.
Directory '/users/username/projects/node_modules' does not exist, skipping all lookups in it.
Directory '/users/username/node_modules' does not exist, skipping all lookups in it.
Directory '/users/node_modules' does not exist, skipping all lookups in it.
Directory '/node_modules' does not exist, skipping all lookups in it.
Loading module 'pkg1' from 'node_modules' folder, target file types: JavaScript.
+File '/users/username/projects/project/node_modules/pkg1.js' does not exist.
+File '/users/username/projects/project/node_modules/pkg1.jsx' does not exist.
Directory '/users/username/projects/node_modules' does not exist, skipping all lookups in it.
Directory '/users/username/node_modules' does not exist, skipping all lookups in it.
Directory '/users/node_modules' does not exist, skipping all lookups in it.
@@ -80,6 +88,7 @@ Directory '/users/node_modules/@types' does not exist, skipping all lookups in i
Directory '/node_modules/@types' does not exist, skipping all lookups in it.
Looking up in 'node_modules' folder, initial location '/users/username/projects/project'.
File '/users/username/projects/project/node_modules/pkg2/package.json' does not exist.
+File '/users/username/projects/project/node_modules/pkg2.d.ts' does not exist.
File '/users/username/projects/project/node_modules/pkg2/index.d.ts' exists - use it as a name resolution result.
Resolving real path for '/users/username/projects/project/node_modules/pkg2/index.d.ts', result '/users/username/projects/project/node_modules/pkg2/index.d.ts'.
======== Type reference directive 'pkg2' was successfully resolved to '/users/username/projects/project/node_modules/pkg2/index.d.ts', primary: false. ========
@@ -95,6 +104,7 @@ Directory '/users/username/node_modules/@types' does not exist, skipping all loo
Directory '/users/node_modules/@types' does not exist, skipping all lookups in it.
Directory '/node_modules/@types' does not exist, skipping all lookups in it.
Looking up in 'node_modules' folder, initial location '/users/username/projects/project'.
+File '/users/username/projects/project/node_modules/pkg3.d.ts' does not exist.
Directory '/users/username/projects/project/node_modules/@types' does not exist, skipping all lookups in it.
Directory '/users/username/projects/node_modules' does not exist, skipping all lookups in it.
Directory '/users/username/node_modules' does not exist, skipping all lookups in it.
@@ -375,6 +385,9 @@ Reusing resolution of module 'pkg0' from '/users/username/projects/project/fileW
Module resolution kind is not specified, using 'Node10'.
Loading module 'pkg1' from 'node_modules' folder, target file types: TypeScript, Declaration.
File '/users/username/projects/project/node_modules/pkg1/package.json' does not exist.
+File '/users/username/projects/project/node_modules/pkg1.ts' does not exist.
+File '/users/username/projects/project/node_modules/pkg1.tsx' does not exist.
+File '/users/username/projects/project/node_modules/pkg1.d.ts' does not exist.
File '/users/username/projects/project/node_modules/pkg1/index.ts' does not exist.
File '/users/username/projects/project/node_modules/pkg1/index.tsx' does not exist.
File '/users/username/projects/project/node_modules/pkg1/index.d.ts' exists - use it as a name resolution result.
@@ -627,6 +640,7 @@ Directory '/users/node_modules/@types' does not exist, skipping all lookups in i
Directory '/node_modules/@types' does not exist, skipping all lookups in it.
Looking up in 'node_modules' folder, initial location '/users/username/projects/project'.
File '/users/username/projects/project/node_modules/pkg3/package.json' does not exist.
+File '/users/username/projects/project/node_modules/pkg3.d.ts' does not exist.
File '/users/username/projects/project/node_modules/pkg3/index.d.ts' exists - use it as a name resolution result.
Resolving real path for '/users/username/projects/project/node_modules/pkg3/index.d.ts', result '/users/username/projects/project/node_modules/pkg3/index.d.ts'.
======== Type reference directive 'pkg3' was successfully resolved to '/users/username/projects/project/node_modules/pkg3/index.d.ts', primary: false. ========
diff --git a/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js b/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js
index de003ef7c0865..ae74005002160 100644
--- a/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js
+++ b/tests/baselines/reference/tscWatch/resolutionCache/scoped-package-installation.js
@@ -297,6 +297,9 @@ Module resolution kind is not specified, using 'Node10'.
Loading module '@myapp/ts-types' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/user/username/projects/myproject/lib/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'myapp__ts-types'
+File '/user/username/projects/myproject/node_modules/@myapp/ts-types.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/@myapp/ts-types.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/@myapp/ts-types.d.ts' does not exist.
Directory '/user/username/projects/myproject/node_modules/@types' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'myapp__ts-types'
Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it.
@@ -309,6 +312,8 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'myapp__ts-types'
Loading module '@myapp/ts-types' from 'node_modules' folder, target file types: JavaScript.
Directory '/user/username/projects/myproject/lib/node_modules' does not exist, skipping all lookups in it.
+File '/user/username/projects/myproject/node_modules/@myapp/ts-types.js' does not exist.
+File '/user/username/projects/myproject/node_modules/@myapp/ts-types.jsx' does not exist.
Directory '/user/username/projects/node_modules' does not exist, skipping all lookups in it.
Directory '/user/username/node_modules' does not exist, skipping all lookups in it.
Directory '/user/node_modules' does not exist, skipping all lookups in it.
@@ -412,6 +417,9 @@ Loading module '@myapp/ts-types' from 'node_modules' folder, target file types:
Directory '/user/username/projects/myproject/lib/node_modules' does not exist, skipping all lookups in it.
Scoped package detected, looking in 'myapp__ts-types'
File '/user/username/projects/myproject/node_modules/@myapp/ts-types/package.json' does not exist.
+File '/user/username/projects/myproject/node_modules/@myapp/ts-types.ts' does not exist.
+File '/user/username/projects/myproject/node_modules/@myapp/ts-types.tsx' does not exist.
+File '/user/username/projects/myproject/node_modules/@myapp/ts-types.d.ts' does not exist.
File '/user/username/projects/myproject/node_modules/@myapp/ts-types/index.ts' does not exist.
File '/user/username/projects/myproject/node_modules/@myapp/ts-types/index.tsx' does not exist.
File '/user/username/projects/myproject/node_modules/@myapp/ts-types/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js b/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js
index a4e9919f65c16..61f390210b2c0 100644
--- a/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js
+++ b/tests/baselines/reference/tscWatch/resolutionCache/with-modules-linked-to-sibling-folder.js
@@ -87,6 +87,8 @@ FsWatches::
FsWatchesRecursive::
/user/username/projects/myproject/linked-package: *new*
{}
+/user/username/projects/myproject/main/node_modules: *new*
+ {}
exitCode:: ExitStatus.undefined
diff --git a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js
index 66b59aaa5749e..0adc883d18455 100644
--- a/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js
+++ b/tests/baselines/reference/tscWatch/watchEnvironment/watchDirectories/when-there-are-symlinks-to-folders-in-recursive-folders.js
@@ -46,6 +46,9 @@ Module resolution kind is not specified, using 'Node10'.
Loading module 'a' from 'node_modules' folder, target file types: TypeScript, Declaration.
Directory '/home/user/projects/myproject/src/node_modules' does not exist, skipping all lookups in it.
File '/home/user/projects/myproject/node_modules/a/package.json' does not exist.
+File '/home/user/projects/myproject/node_modules/a.ts' does not exist.
+File '/home/user/projects/myproject/node_modules/a.tsx' does not exist.
+File '/home/user/projects/myproject/node_modules/a.d.ts' does not exist.
File '/home/user/projects/myproject/node_modules/a/index.ts' does not exist.
File '/home/user/projects/myproject/node_modules/a/index.tsx' does not exist.
File '/home/user/projects/myproject/node_modules/a/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js
index dac17cf9e1686..c4d4fff795d24 100644
--- a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js
+++ b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js
@@ -183,6 +183,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_m
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
@@ -200,6 +203,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-scripthost' from 'node_
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts' exists - use it as a name resolution result.
@@ -211,6 +217,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-es5' from 'node_modules
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result.
@@ -231,6 +240,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -344,6 +356,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' does not exist.
@@ -358,6 +373,8 @@ Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-do
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.js' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.jsx' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -641,6 +658,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -873,6 +893,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' does not exist.
@@ -887,6 +910,8 @@ Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-do
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.js' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.jsx' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -1002,6 +1027,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_m
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' does not exist.
@@ -1016,6 +1044,8 @@ Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-we
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.js' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.jsx' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -1140,6 +1170,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_m
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config.js b/tests/baselines/reference/tsserver/libraryResolution/with-config.js
index fa85ff5f872cb..8654c63b8b869 100644
--- a/tests/baselines/reference/tsserver/libraryResolution/with-config.js
+++ b/tests/baselines/reference/tsserver/libraryResolution/with-config.js
@@ -143,6 +143,9 @@ Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'.
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker'
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker'
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -153,6 +156,8 @@ Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker'
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -167,6 +172,9 @@ Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'.
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost'
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost.d.ts' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost'
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -177,6 +185,8 @@ Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost'
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost.js' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-scripthost.jsx' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -187,6 +197,9 @@ Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'.
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5'
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5.d.ts' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5'
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -197,6 +210,8 @@ Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5'
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5.js' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-es5.jsx' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -216,6 +231,9 @@ Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'.
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom'
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/node_modules/@types' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom'
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -226,6 +244,8 @@ Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom'
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it.
@@ -355,6 +375,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -612,6 +635,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' does not exist.
@@ -626,6 +652,8 @@ Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-do
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.js' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.jsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.js' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.jsx' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
@@ -862,6 +890,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-dom' from 'node_modules
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result.
@@ -999,6 +1030,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_m
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result.
@@ -1085,6 +1119,9 @@ Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_m
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker'
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' does not exist.
@@ -1099,6 +1136,8 @@ Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-we
Info seq [hh:mm:ss:mss] Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: JavaScript.
Info seq [hh:mm:ss:mss] Directory '/home/src/projects/project1/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.js' does not exist.
+Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker.jsx' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.js' does not exist.
Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-webworker/index.jsx' does not exist.
Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skipping all lookups in it.
diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js
index 6b685db91cc89..bd2f796cd136a 100644
--- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js
+++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built-with-disableSourceOfProjectReferenceRedirect.js
@@ -262,6 +262,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
@@ -354,6 +356,8 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/shared/src/library: *new*
{}
+/user/username/projects/myproject/node_modules: *new*
+ {}
Before request
@@ -404,45 +408,3 @@ Info seq [hh:mm:ss:mss] response:
"responseRequired": true
}
After request
-
-PolledWatches::
-/user/username/projects/myproject/app/src/program/node_modules:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/src/node_modules:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/node_modules:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/src/program/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/src/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/myproject/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/node_modules/@types:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/projects/myproject/app/src/program/tsconfig.json:
- {}
-/user/username/projects/myproject/app/src/program/bar.ts:
- {}
-/user/username/projects/myproject/shared/src/library/tsconfig.json:
- {}
-/user/username/projects/myproject/shared/bld/library/index.d.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-/user/username/projects/myproject/shared/package.json:
- {}
-/user/username/projects/myproject/tsconfig.json:
- {}
-
-FsWatchesRecursive::
-/user/username/projects/myproject/app/src/program:
- {}
-/user/username/projects/myproject/shared/src/library:
- {}
-/user/username/projects/myproject/node_modules: *new*
- {}
diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js
index a6b7baec9bd97..d5ec6b414afd1 100644
--- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js
+++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project-when-built.js
@@ -261,6 +261,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
@@ -353,6 +355,8 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/shared/src/library: *new*
{}
+/user/username/projects/myproject/node_modules: *new*
+ {}
Before request
@@ -403,45 +407,3 @@ Info seq [hh:mm:ss:mss] response:
"responseRequired": true
}
After request
-
-PolledWatches::
-/user/username/projects/myproject/app/src/program/node_modules:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/src/node_modules:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/node_modules:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/src/program/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/src/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/myproject/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/node_modules/@types:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/projects/myproject/app/src/program/tsconfig.json:
- {}
-/user/username/projects/myproject/app/src/program/bar.ts:
- {}
-/user/username/projects/myproject/shared/src/library/tsconfig.json:
- {}
-/user/username/projects/myproject/shared/src/library/index.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-/user/username/projects/myproject/shared/package.json:
- {}
-/user/username/projects/myproject/tsconfig.json:
- {}
-
-FsWatchesRecursive::
-/user/username/projects/myproject/app/src/program:
- {}
-/user/username/projects/myproject/shared/src/library:
- {}
-/user/username/projects/myproject/node_modules: *new*
- {}
diff --git a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js
index 51a61dd28fd45..e878b7591c4f7 100644
--- a/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js
+++ b/tests/baselines/reference/tsserver/projectReferences/auto-import-with-referenced-project.js
@@ -92,6 +92,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/shared/package.json 2000 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/app/src/program/node_modules/@types 1 undefined Project: /user/username/projects/myproject/app/src/program/tsconfig.json WatchType: Type roots
@@ -184,6 +186,8 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/shared/src/library: *new*
{}
+/user/username/projects/myproject/node_modules: *new*
+ {}
Before request
@@ -234,45 +238,3 @@ Info seq [hh:mm:ss:mss] response:
"responseRequired": true
}
After request
-
-PolledWatches::
-/user/username/projects/myproject/app/src/program/node_modules:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/src/node_modules:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/node_modules:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/src/program/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/src/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/myproject/app/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/myproject/node_modules/@types:
- {"pollingInterval":500}
-/user/username/projects/node_modules/@types:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/projects/myproject/app/src/program/tsconfig.json:
- {}
-/user/username/projects/myproject/app/src/program/bar.ts:
- {}
-/user/username/projects/myproject/shared/src/library/tsconfig.json:
- {}
-/user/username/projects/myproject/shared/src/library/index.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-/user/username/projects/myproject/shared/package.json:
- {}
-/user/username/projects/myproject/tsconfig.json:
- {}
-
-FsWatchesRecursive::
-/user/username/projects/myproject/app/src/program:
- {}
-/user/username/projects/myproject/shared/src/library:
- {}
-/user/username/projects/myproject/node_modules: *new*
- {}
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js
index a060f2f58f9c8..9148303fe33ef 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js
@@ -285,9 +285,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js
index 8f59df07c9911..9b8fe71264eab 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js
@@ -283,9 +283,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js
index 835a8300e449f..5b09d7d961f3f 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js
@@ -107,9 +107,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js
index 0b37a1ec392ab..2a780c0121993 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js
@@ -105,9 +105,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js
index dffac946c74ae..0e973744d6ddd 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js
@@ -285,9 +285,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js
index 9ecb78be65c8c..ed378b9f703a8 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js
@@ -283,9 +283,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js
index b009e456a1116..c65e43aacb6e0 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js
@@ -107,9 +107,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js
index e060d0944916d..90a2e97a36208 100644
--- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js
+++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js
@@ -105,9 +105,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/B/package.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Type roots
diff --git a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js
index 76c13394b8a87..fd339e4ed3cc9 100644
--- a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js
+++ b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js
@@ -114,6 +114,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/emit-composite/package.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/node_modules/@types 1 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Type roots
@@ -251,6 +253,8 @@ FsWatchesRecursive::
{}
/user/username/projects/myproject/packages/emit-composite: *new*
{}
+/user/username/projects/myproject/node_modules: *new*
+ {}
Before request
diff --git a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js
index d355a6a7a0156..a14605d8fa7c5 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/avoid-unnecessary-lookup-invalidation-on-save.js
@@ -47,14 +47,23 @@ Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/usernam
Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'.
Info seq [hh:mm:ss:mss] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1/index.ts' exists - use it as a name resolution result.
Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/src/node_modules/module1/index.ts', result '/user/username/projects/myproject/src/node_modules/module1/index.ts'.
Info seq [hh:mm:ss:mss] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ========
Info seq [hh:mm:ss:mss] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file1.ts'. ========
Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'.
Info seq [hh:mm:ss:mss] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module2.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module2.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module2.d.ts' does not exist.
Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/src/node_modules/@types' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
diff --git a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js
index e0c936d436b32..295851a44cb58 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js
@@ -23,7 +23,9 @@ Info seq [hh:mm:ss:mss] Directory '/a/node_modules' does not exist, skipping al
Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] ======== Module name 'lib' was not resolved. ========
Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/dev/null/inferredProject1*'. Running extra resolution pass for module 'lib' using cache location '/a/cache'.
+Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/lib.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/@types/lib/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/@types/lib.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/a/cache/node_modules/@types/lib/index.d.ts' exists - use it as a name resolution result.
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js
index cff9f17097f25..63d91e672c58a 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-different-folders.js
@@ -63,6 +63,9 @@ Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'
Info seq [hh:mm:ss:mss] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1/index.ts' exists - use it as a name resolution result.
Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/product/node_modules/module1/index.ts', result '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
Info seq [hh:mm:ss:mss] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
@@ -70,8 +73,14 @@ Info seq [hh:mm:ss:mss] ======== Resolving module 'module2' from '/user/usernam
Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'.
Info seq [hh:mm:ss:mss] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module2.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module2.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module2.d.ts' does not exist.
Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/node_modules/@types' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js
index e8955227bb1e0..8311fe8c3a720 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-files-in-same-folder.js
@@ -52,14 +52,23 @@ Info seq [hh:mm:ss:mss] ======== Resolving module 'module1' from '/user/usernam
Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'.
Info seq [hh:mm:ss:mss] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module1/index.ts' exists - use it as a name resolution result.
Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/src/node_modules/module1/index.ts', result '/user/username/projects/myproject/src/node_modules/module1/index.ts'.
Info seq [hh:mm:ss:mss] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/src/node_modules/module1/index.ts'. ========
Info seq [hh:mm:ss:mss] ======== Resolving module 'module2' from '/user/username/projects/myproject/src/file1.ts'. ========
Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'.
Info seq [hh:mm:ss:mss] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module2.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module2.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/src/node_modules/module2.d.ts' does not exist.
Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/src/node_modules/@types' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
diff --git a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js
index 368304bc3b3d8..4cdcde13144fc 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/non-relative-module-name-from-inferred-project.js
@@ -62,6 +62,9 @@ Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'
Info seq [hh:mm:ss:mss] Loading module 'module1' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module1/index.ts' exists - use it as a name resolution result.
Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/product/node_modules/module1/index.ts', result '/user/username/projects/myproject/product/node_modules/module1/index.ts'.
Info seq [hh:mm:ss:mss] ======== Module name 'module1' was successfully resolved to '/user/username/projects/myproject/product/node_modules/module1/index.ts'. ========
@@ -69,8 +72,14 @@ Info seq [hh:mm:ss:mss] ======== Resolving module 'module2' from '/user/usernam
Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'.
Info seq [hh:mm:ss:mss] Loading module 'module2' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/src/node_modules' does not exist, skipping all lookups in it.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module2.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module2.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/product/node_modules/module2.d.ts' does not exist.
Info seq [hh:mm:ss:mss] Directory '/user/username/projects/myproject/product/node_modules/@types' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/node_modules/module2/index.ts' exists - use it as a name resolution result.
Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/node_modules/module2/index.ts', result '/user/username/projects/myproject/node_modules/module2/index.ts'.
Info seq [hh:mm:ss:mss] ======== Module name 'module2' was successfully resolved to '/user/username/projects/myproject/node_modules/module2/index.ts'. ========
diff --git a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js
index 93e7408028d36..f9f163b4d7b1b 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/not-sharing-across-references.js
@@ -83,6 +83,9 @@ Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'
Info seq [hh:mm:ss:mss] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/users/username/projects/app/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result.
@@ -102,6 +105,9 @@ Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'
Info seq [hh:mm:ss:mss] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/users/username/projects/common/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/package.json' does not exist according to earlier cached lookups.
+Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js
index 34ea1bb4e0911..8a1b2f1f41ee4 100644
--- a/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js
+++ b/tests/baselines/reference/tsserver/resolutionCache/sharing-across-references.js
@@ -82,6 +82,9 @@ Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'
Info seq [hh:mm:ss:mss] Loading module 'moduleX' from 'node_modules' folder, target file types: TypeScript, Declaration.
Info seq [hh:mm:ss:mss] Directory '/users/username/projects/app/node_modules' does not exist, skipping all lookups in it.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/package.json' does not exist.
+Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX.ts' does not exist.
+Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX.tsx' does not exist.
+Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX.d.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.ts' does not exist.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.tsx' does not exist.
Info seq [hh:mm:ss:mss] File '/users/username/projects/node_modules/moduleX/index.d.ts' exists - use it as a name resolution result.
diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js
index 70073b32b5567..6356a663dfc4e 100644
--- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js
+++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js
@@ -364,8 +364,6 @@ Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/dist/types/recognizers-text.d.ts 500 undefined WatchType: Closed Script info
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution
-Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
@@ -457,8 +455,6 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-
-FsWatchesRecursive *deleted*::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
{}
diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js
index db4d2ed5475ff..4601e56186241 100644
--- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js
+++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js
@@ -71,6 +71,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projec
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/src 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-text/package.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: File location affecting resolution
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules/@types 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Type roots
@@ -197,6 +199,8 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src: *new*
{}
+/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules: *new*
+ {}
Before request
@@ -310,11 +314,11 @@ FsWatches *deleted*::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
+/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
+ {}
Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json
-Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/node_modules 1 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Failed Lookup Locations
@@ -399,7 +403,7 @@ FsWatches::
FsWatchesRecursive::
/users/username/projects/myproject/javascript/packages/recognizers-date-time/src:
{}
-/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules: *new*
+/users/username/projects/myproject/javascript/packages/recognizers-date-time/node_modules:
{}
Before running Timeout callback:: count: 1
diff --git a/tests/baselines/reference/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json b/tests/baselines/reference/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json
index af31737c24806..3960f5f0803f1 100644
--- a/tests/baselines/reference/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json
+++ b/tests/baselines/reference/typeReferenceDirectiveScopedPackageCustomTypeRoot.trace.json
@@ -46,12 +46,14 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
@@ -64,6 +66,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
"======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
@@ -76,6 +79,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json b/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json
index 7f454e8697c4b..fb4fca7e833f4 100644
--- a/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json
+++ b/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json
@@ -3,22 +3,58 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
+ "File '/foo/node_modules/xyz.ts' does not exist.",
+ "File '/foo/node_modules/xyz.tsx' does not exist.",
+ "File '/foo/node_modules/xyz.d.ts' does not exist.",
+ "File '/foo/node_modules/@types/xyz.d.ts' does not exist.",
+ "File '/node_modules/xyz.ts' does not exist.",
+ "File '/node_modules/xyz.tsx' does not exist.",
+ "File '/node_modules/xyz.d.ts' does not exist.",
+ "File '/node_modules/@types/xyz.d.ts' does not exist.",
"Loading module 'xyz' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
+ "File '/foo/node_modules/xyz.js' does not exist.",
+ "File '/foo/node_modules/xyz.jsx' does not exist.",
+ "File '/node_modules/xyz.js' does not exist.",
+ "File '/node_modules/xyz.jsx' does not exist.",
"======== Module name 'xyz' was not resolved. ========",
"======== Resolving module 'pdq' from '/foo/bar/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'pdq' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
+ "File '/foo/node_modules/pdq.ts' does not exist.",
+ "File '/foo/node_modules/pdq.tsx' does not exist.",
+ "File '/foo/node_modules/pdq.d.ts' does not exist.",
+ "File '/foo/node_modules/@types/pdq.d.ts' does not exist.",
+ "File '/node_modules/pdq.ts' does not exist.",
+ "File '/node_modules/pdq.tsx' does not exist.",
+ "File '/node_modules/pdq.d.ts' does not exist.",
+ "File '/node_modules/@types/pdq.d.ts' does not exist.",
"Loading module 'pdq' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
+ "File '/foo/node_modules/pdq.js' does not exist.",
+ "File '/foo/node_modules/pdq.jsx' does not exist.",
+ "File '/node_modules/pdq.js' does not exist.",
+ "File '/node_modules/pdq.jsx' does not exist.",
"======== Module name 'pdq' was not resolved. ========",
"======== Resolving module 'abc' from '/foo/bar/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'abc' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
+ "File '/foo/node_modules/abc.ts' does not exist.",
+ "File '/foo/node_modules/abc.tsx' does not exist.",
+ "File '/foo/node_modules/abc.d.ts' does not exist.",
+ "File '/foo/node_modules/@types/abc.d.ts' does not exist.",
+ "File '/node_modules/abc.ts' does not exist.",
+ "File '/node_modules/abc.tsx' does not exist.",
+ "File '/node_modules/abc.d.ts' does not exist.",
+ "File '/node_modules/@types/abc.d.ts' does not exist.",
"Loading module 'abc' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
+ "File '/foo/node_modules/abc.js' does not exist.",
+ "File '/foo/node_modules/abc.jsx' does not exist.",
+ "File '/node_modules/abc.js' does not exist.",
+ "File '/node_modules/abc.jsx' does not exist.",
"======== Module name 'abc' was not resolved. ========",
"======== Resolving type reference directive 'grumpy', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/bar/node_modules/@types,/foo/node_modules/@types,/node_modules/@types'. ========",
"Resolving with primary search path '/foo/bar/node_modules/@types, /foo/node_modules/@types, /node_modules/@types'.",
@@ -47,7 +83,9 @@
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/foo/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
@@ -57,7 +95,9 @@
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/foo/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
@@ -77,7 +117,9 @@
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-dom'",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/foo/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
@@ -97,7 +139,9 @@
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/foo/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/foo/bar/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
diff --git a/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json b/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json
index 6e3fe4c739b74..82b1605ff167f 100644
--- a/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json
+++ b/tests/baselines/reference/typeRootsFromNodeModulesInParentDirectory.trace.json
@@ -3,8 +3,14 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'xyz' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
+ "File '/node_modules/xyz.ts' does not exist.",
+ "File '/node_modules/xyz.tsx' does not exist.",
+ "File '/node_modules/xyz.d.ts' does not exist.",
+ "File '/node_modules/@types/xyz.d.ts' does not exist.",
"Loading module 'xyz' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
+ "File '/node_modules/xyz.js' does not exist.",
+ "File '/node_modules/xyz.jsx' does not exist.",
"======== Module name 'xyz' was not resolved. ========",
"======== Resolving type reference directive 'foo', containing file '/src/__inferred type names__.ts', root directory '/src/node_modules/@types,/node_modules/@types'. ========",
"Resolving with primary search path '/src/node_modules/@types, /node_modules/@types'.",
@@ -19,6 +25,7 @@
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-es5'",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
@@ -28,6 +35,7 @@
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
@@ -46,6 +54,7 @@
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-dom'",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
@@ -64,6 +73,7 @@
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"Directory '/src/node_modules' does not exist, skipping all lookups in it.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
diff --git a/tests/baselines/reference/typesVersions.ambientModules.trace.json b/tests/baselines/reference/typesVersions.ambientModules.trace.json
index 338fcb23f0824..c3a144c27662f 100644
--- a/tests/baselines/reference/typesVersions.ambientModules.trace.json
+++ b/tests/baselines/reference/typesVersions.ambientModules.trace.json
@@ -3,6 +3,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at 'tests/cases/conformance/moduleResolution/node_modules/ext/package.json'.",
+ "File 'tests/cases/conformance/moduleResolution/node_modules/ext.ts' does not exist.",
+ "File 'tests/cases/conformance/moduleResolution/node_modules/ext.tsx' does not exist.",
+ "File 'tests/cases/conformance/moduleResolution/node_modules/ext.d.ts' does not exist.",
"'package.json' has a 'typesVersions' field with version-specific path mappings.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/moduleResolution/node_modules/ext/index'.",
diff --git a/tests/baselines/reference/typesVersions.multiFile.trace.json b/tests/baselines/reference/typesVersions.multiFile.trace.json
index 46e3f9cd619ef..6b96d5b3e57bc 100644
--- a/tests/baselines/reference/typesVersions.multiFile.trace.json
+++ b/tests/baselines/reference/typesVersions.multiFile.trace.json
@@ -3,6 +3,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at 'tests/cases/conformance/moduleResolution/node_modules/ext/package.json'.",
+ "File 'tests/cases/conformance/moduleResolution/node_modules/ext.ts' does not exist.",
+ "File 'tests/cases/conformance/moduleResolution/node_modules/ext.tsx' does not exist.",
+ "File 'tests/cases/conformance/moduleResolution/node_modules/ext.d.ts' does not exist.",
"'package.json' has a 'typesVersions' field with version-specific path mappings.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/moduleResolution/node_modules/ext/index'.",
diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json
index 2369e1ac5fcdb..976ba6200a7ca 100644
--- a/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json
+++ b/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json
@@ -3,6 +3,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json'.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.tsx' does not exist.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.d.ts' does not exist.",
"'package.json' has a 'typesVersions' field with version-specific path mappings.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/declarationEmit/node_modules/ext/index'.",
diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json
index 64ebff4fefa75..3e3ad31ab3752 100644
--- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json
+++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json
@@ -3,6 +3,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Found 'package.json' at 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json'.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.tsx' does not exist.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.d.ts' does not exist.",
"'package.json' has a 'typesVersions' field with version-specific path mappings.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/declarationEmit/node_modules/ext/index'.",
diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json
index 8557a1b465f19..046d7022c0bf8 100644
--- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json
+++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json
@@ -27,6 +27,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.tsx' does not exist.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.d.ts' does not exist.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/declarationEmit/node_modules/ext/index'.",
"'package.json' has a 'typesVersions' entry '>=3.1.0-0' that matches compiler version '3.1.0-dev', looking for a pattern to match module name 'index'.",
diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json
index 7130cb23b65ae..b22c27079386a 100644
--- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json
+++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json
@@ -11,6 +11,9 @@
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'ext' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"File 'tests/cases/conformance/declarationEmit/node_modules/ext/package.json' exists according to earlier cached lookups.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.ts' does not exist.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.tsx' does not exist.",
+ "File 'tests/cases/conformance/declarationEmit/node_modules/ext.d.ts' does not exist.",
"'package.json' has a 'typesVersions' field with version-specific path mappings.",
"'package.json' does not have a 'typings' field.",
"'package.json' has 'types' field 'index' that references 'tests/cases/conformance/declarationEmit/node_modules/ext/index'.",
diff --git a/tests/baselines/reference/typingsLookup1.trace.json b/tests/baselines/reference/typingsLookup1.trace.json
index 3edf25ece77c7..01e6eeb1f41b7 100644
--- a/tests/baselines/reference/typingsLookup1.trace.json
+++ b/tests/baselines/reference/typingsLookup1.trace.json
@@ -12,12 +12,14 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
@@ -30,6 +32,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
"======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
@@ -42,6 +45,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/typingsLookup2.trace.json b/tests/baselines/reference/typingsLookup2.trace.json
index c6659bdd1597a..b4f0767dae96e 100644
--- a/tests/baselines/reference/typingsLookup2.trace.json
+++ b/tests/baselines/reference/typingsLookup2.trace.json
@@ -3,12 +3,14 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
@@ -21,6 +23,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
"======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
@@ -33,6 +36,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/typingsLookup3.trace.json b/tests/baselines/reference/typingsLookup3.trace.json
index 3edf25ece77c7..01e6eeb1f41b7 100644
--- a/tests/baselines/reference/typingsLookup3.trace.json
+++ b/tests/baselines/reference/typingsLookup3.trace.json
@@ -12,12 +12,14 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
@@ -30,6 +32,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
"======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
@@ -42,6 +45,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/typingsLookup4.trace.json b/tests/baselines/reference/typingsLookup4.trace.json
index af352109707b2..b0ecd30a5e48a 100644
--- a/tests/baselines/reference/typingsLookup4.trace.json
+++ b/tests/baselines/reference/typingsLookup4.trace.json
@@ -2,7 +2,11 @@
"======== Resolving module 'jquery' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'jquery' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "File '/node_modules/jquery.ts' does not exist.",
+ "File '/node_modules/jquery.tsx' does not exist.",
+ "File '/node_modules/jquery.d.ts' does not exist.",
"Found 'package.json' at '/node_modules/@types/jquery/package.json'.",
+ "File '/node_modules/@types/jquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'.",
"File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result.",
@@ -11,7 +15,11 @@
"======== Resolving module 'kquery' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'kquery' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "File '/node_modules/kquery.ts' does not exist.",
+ "File '/node_modules/kquery.tsx' does not exist.",
+ "File '/node_modules/kquery.d.ts' does not exist.",
"Found 'package.json' at '/node_modules/@types/kquery/package.json'.",
+ "File '/node_modules/@types/kquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'.",
"File '/node_modules/@types/kquery/kquery' does not exist.",
@@ -24,7 +32,11 @@
"======== Resolving module 'lquery' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'lquery' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "File '/node_modules/lquery.ts' does not exist.",
+ "File '/node_modules/lquery.tsx' does not exist.",
+ "File '/node_modules/lquery.d.ts' does not exist.",
"Found 'package.json' at '/node_modules/@types/lquery/package.json'.",
+ "File '/node_modules/@types/lquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'.",
"File '/node_modules/@types/lquery/lquery' does not exist.",
@@ -35,7 +47,11 @@
"======== Resolving module 'mquery' from '/a.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"Loading module 'mquery' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "File '/node_modules/mquery.ts' does not exist.",
+ "File '/node_modules/mquery.tsx' does not exist.",
+ "File '/node_modules/mquery.d.ts' does not exist.",
"Found 'package.json' at '/node_modules/@types/mquery/package.json'.",
+ "File '/node_modules/@types/mquery.d.ts' does not exist.",
"'package.json' does not have a 'typesVersions' field.",
"'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'.",
"File '/node_modules/@types/mquery/mquery' does not exist.",
@@ -91,12 +107,14 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
@@ -109,6 +127,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
"======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
@@ -121,6 +140,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/baselines/reference/typingsLookupAmd.trace.json b/tests/baselines/reference/typingsLookupAmd.trace.json
index 62d5c9c86c9ea..559fc09589a49 100644
--- a/tests/baselines/reference/typingsLookupAmd.trace.json
+++ b/tests/baselines/reference/typingsLookupAmd.trace.json
@@ -12,6 +12,7 @@
"File '/b.d.ts' does not exist.",
"Directory '/x/y/node_modules' does not exist, skipping all lookups in it.",
"File '/x/node_modules/@types/b/package.json' does not exist.",
+ "File '/x/node_modules/@types/b.d.ts' does not exist.",
"File '/x/node_modules/@types/b/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/x/node_modules/@types/b/index.d.ts', result '/x/node_modules/@types/b/index.d.ts'.",
"======== Module name 'b' was successfully resolved to '/x/node_modules/@types/b/index.d.ts'. ========",
@@ -34,7 +35,9 @@
"File '/a.d.ts' does not exist.",
"Directory '/x/node_modules/@types/b/node_modules' does not exist, skipping all lookups in it.",
"Directory '/x/node_modules/@types/node_modules' does not exist, skipping all lookups in it.",
+ "File '/x/node_modules/@types/a.d.ts' does not exist.",
"File '/node_modules/@types/a/package.json' does not exist.",
+ "File '/node_modules/@types/a.d.ts' does not exist.",
"File '/node_modules/@types/a/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/a/index.d.ts', result '/node_modules/@types/a/index.d.ts'.",
"======== Module name 'a' was successfully resolved to '/node_modules/@types/a/index.d.ts'. ========",
@@ -48,12 +51,14 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-es5'",
+ "File '/node_modules/@types/typescript__lib-es5.d.ts' does not exist.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-es5' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators' from '/__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-decorators'",
+ "File '/node_modules/@types/typescript__lib-decorators.d.ts' does not exist.",
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-decorators' was not resolved. ========",
"======== Resolving module '@typescript/lib-decorators/legacy' from '/__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
@@ -66,6 +71,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-dom'",
+ "File '/node_modules/@types/typescript__lib-dom.d.ts' does not exist.",
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-dom' was not resolved. ========",
"======== Resolving module '@typescript/lib-webworker/importscripts' from '/__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
@@ -78,6 +84,7 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "File '/node_modules/@types/typescript__lib-scripthost.d.ts' does not exist.",
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
"======== Module name '@typescript/lib-scripthost' was not resolved. ========"
]
\ No newline at end of file
diff --git a/tests/cases/compiler/requireOfJsonFileNonRelative.ts b/tests/cases/compiler/requireOfJsonFileNonRelative.ts
new file mode 100644
index 0000000000000..610c0c8f9f717
--- /dev/null
+++ b/tests/cases/compiler/requireOfJsonFileNonRelative.ts
@@ -0,0 +1,26 @@
+// @module: commonjs
+// @outdir: out/
+// @allowJs: true
+// @fullEmitPaths: true
+// @resolveJsonModule: true
+
+// @Filename: /src/projects/file1.ts
+import b1 = require('b.json');
+let x = b1.a;
+import b2 = require('c.json');
+if (x) {
+ let b = b2.b;
+ x = (b1.b === b);
+}
+
+// @Filename: /src/projects/node_modules/b.json
+{
+ "a": true,
+ "b": "hello"
+}
+
+// @Filename: /src/node_modules/c.json
+{
+ "a": true,
+ "b": "hello"
+}
From 586a892823a62932a9a1ccf2d5490110fe30139d Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Wed, 10 May 2023 09:09:04 -0700
Subject: [PATCH 07/10] Revert some unneeded test changes
---
tests/baselines/reference/cachedModuleResolution1.js | 2 +-
.../reference/cachedModuleResolution1.symbols | 4 ++--
.../reference/cachedModuleResolution1.trace.json | 12 ++++--------
.../reference/cachedModuleResolution1.types | 2 +-
tests/baselines/reference/cachedModuleResolution2.js | 2 +-
.../reference/cachedModuleResolution2.symbols | 4 ++--
.../reference/cachedModuleResolution2.trace.json | 12 ++++--------
.../reference/cachedModuleResolution2.types | 2 +-
tests/baselines/reference/cachedModuleResolution5.js | 2 +-
.../reference/cachedModuleResolution5.symbols | 4 ++--
.../reference/cachedModuleResolution5.trace.json | 12 ++++--------
.../reference/cachedModuleResolution5.types | 2 +-
.../importShouldNotBeElidedInDeclarationEmit.js | 2 +-
.../importShouldNotBeElidedInDeclarationEmit.symbols | 12 ++++++------
.../importShouldNotBeElidedInDeclarationEmit.types | 12 ++++++------
tests/baselines/reference/nodeResolution2.js | 2 +-
tests/baselines/reference/nodeResolution2.symbols | 4 ++--
tests/baselines/reference/nodeResolution2.types | 2 +-
tests/baselines/reference/nodeResolution5.js | 2 +-
tests/baselines/reference/nodeResolution5.symbols | 6 +++---
tests/baselines/reference/nodeResolution5.types | 2 +-
tests/baselines/reference/nodeResolution6.js | 2 +-
tests/baselines/reference/nodeResolution6.symbols | 6 +++---
tests/baselines/reference/nodeResolution6.types | 4 ++--
.../pathMappingBasedModuleResolution5_node.js | 4 ++--
.../pathMappingBasedModuleResolution5_node.symbols | 4 ++--
...pathMappingBasedModuleResolution5_node.trace.json | 10 +++-------
.../pathMappingBasedModuleResolution5_node.types | 2 +-
.../pathMappingBasedModuleResolution7_node.js | 2 +-
.../pathMappingBasedModuleResolution7_node.symbols | 4 ++--
...pathMappingBasedModuleResolution7_node.trace.json | 10 +++-------
.../pathMappingBasedModuleResolution7_node.types | 2 +-
...sonFileNonRelativeWithoutExtensionResolvesToTs.js | 6 +++---
...leNonRelativeWithoutExtensionResolvesToTs.symbols | 2 +-
...FileNonRelativeWithoutExtensionResolvesToTs.types | 2 +-
tests/cases/compiler/cachedModuleResolution1.ts | 2 +-
tests/cases/compiler/cachedModuleResolution2.ts | 2 +-
tests/cases/compiler/cachedModuleResolution5.ts | 2 +-
.../importShouldNotBeElidedInDeclarationEmit.ts | 2 +-
tests/cases/compiler/nodeResolution2.ts | 2 +-
tests/cases/compiler/nodeResolution5.ts | 2 +-
tests/cases/compiler/nodeResolution6.ts | 4 ++--
.../pathMappingBasedModuleResolution5_node.ts | 2 +-
.../pathMappingBasedModuleResolution7_node.ts | 2 +-
...sonFileNonRelativeWithoutExtensionResolvesToTs.ts | 4 ++--
45 files changed, 84 insertions(+), 104 deletions(-)
diff --git a/tests/baselines/reference/cachedModuleResolution1.js b/tests/baselines/reference/cachedModuleResolution1.js
index 914ee81aad754..14081ac41923a 100644
--- a/tests/baselines/reference/cachedModuleResolution1.js
+++ b/tests/baselines/reference/cachedModuleResolution1.js
@@ -1,6 +1,6 @@
//// [tests/cases/compiler/cachedModuleResolution1.ts] ////
-//// [index.d.ts]
+//// [foo.d.ts]
export declare let x: number
//// [app.ts]
diff --git a/tests/baselines/reference/cachedModuleResolution1.symbols b/tests/baselines/reference/cachedModuleResolution1.symbols
index 84a503569c05c..87685f4f14739 100644
--- a/tests/baselines/reference/cachedModuleResolution1.symbols
+++ b/tests/baselines/reference/cachedModuleResolution1.symbols
@@ -1,6 +1,6 @@
-=== /a/b/node_modules/foo/index.d.ts ===
+=== /a/b/node_modules/foo.d.ts ===
export declare let x: number
->x : Symbol(x, Decl(index.d.ts, 0, 18))
+>x : Symbol(x, Decl(foo.d.ts, 0, 18))
=== /a/b/c/d/e/app.ts ===
import {x} from "foo";
diff --git a/tests/baselines/reference/cachedModuleResolution1.trace.json b/tests/baselines/reference/cachedModuleResolution1.trace.json
index 0b2fb2629b7e5..74071874f0df2 100644
--- a/tests/baselines/reference/cachedModuleResolution1.trace.json
+++ b/tests/baselines/reference/cachedModuleResolution1.trace.json
@@ -5,20 +5,16 @@
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
- "File '/a/b/node_modules/foo/package.json' does not exist.",
"File '/a/b/node_modules/foo.ts' does not exist.",
"File '/a/b/node_modules/foo.tsx' does not exist.",
- "File '/a/b/node_modules/foo.d.ts' does not exist.",
- "File '/a/b/node_modules/foo/index.ts' does not exist.",
- "File '/a/b/node_modules/foo/index.tsx' does not exist.",
- "File '/a/b/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
- "Resolving real path for '/a/b/node_modules/foo/index.d.ts', result '/a/b/node_modules/foo/index.d.ts'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========",
+ "File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result.",
+ "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.",
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
"======== Resolving module 'foo' from '/a/b/c/lib.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Resolution for module 'foo' was found in cache from location '/a/b/c'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========",
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
"======== Resolving module '@typescript/lib-es5' from '__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
diff --git a/tests/baselines/reference/cachedModuleResolution1.types b/tests/baselines/reference/cachedModuleResolution1.types
index fd769552cb7f0..ccc9e1311c83b 100644
--- a/tests/baselines/reference/cachedModuleResolution1.types
+++ b/tests/baselines/reference/cachedModuleResolution1.types
@@ -1,4 +1,4 @@
-=== /a/b/node_modules/foo/index.d.ts ===
+=== /a/b/node_modules/foo.d.ts ===
export declare let x: number
>x : number
diff --git a/tests/baselines/reference/cachedModuleResolution2.js b/tests/baselines/reference/cachedModuleResolution2.js
index 104787f53c69f..d649b3c53ee37 100644
--- a/tests/baselines/reference/cachedModuleResolution2.js
+++ b/tests/baselines/reference/cachedModuleResolution2.js
@@ -1,6 +1,6 @@
//// [tests/cases/compiler/cachedModuleResolution2.ts] ////
-//// [index.d.ts]
+//// [foo.d.ts]
export declare let x: number
//// [lib.ts]
diff --git a/tests/baselines/reference/cachedModuleResolution2.symbols b/tests/baselines/reference/cachedModuleResolution2.symbols
index 3d39e8f2c2072..b9080b03cbfa2 100644
--- a/tests/baselines/reference/cachedModuleResolution2.symbols
+++ b/tests/baselines/reference/cachedModuleResolution2.symbols
@@ -1,6 +1,6 @@
-=== /a/b/node_modules/foo/index.d.ts ===
+=== /a/b/node_modules/foo.d.ts ===
export declare let x: number
->x : Symbol(x, Decl(index.d.ts, 0, 18))
+>x : Symbol(x, Decl(foo.d.ts, 0, 18))
=== /a/b/c/lib.ts ===
import {x} from "foo";
diff --git a/tests/baselines/reference/cachedModuleResolution2.trace.json b/tests/baselines/reference/cachedModuleResolution2.trace.json
index 19af7ff4e2be3..fa4bc5c0686a8 100644
--- a/tests/baselines/reference/cachedModuleResolution2.trace.json
+++ b/tests/baselines/reference/cachedModuleResolution2.trace.json
@@ -3,22 +3,18 @@
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
- "File '/a/b/node_modules/foo/package.json' does not exist.",
"File '/a/b/node_modules/foo.ts' does not exist.",
"File '/a/b/node_modules/foo.tsx' does not exist.",
- "File '/a/b/node_modules/foo.d.ts' does not exist.",
- "File '/a/b/node_modules/foo/index.ts' does not exist.",
- "File '/a/b/node_modules/foo/index.tsx' does not exist.",
- "File '/a/b/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
- "Resolving real path for '/a/b/node_modules/foo/index.d.ts', result '/a/b/node_modules/foo/index.d.ts'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========",
+ "File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result.",
+ "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.",
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
"======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
"Resolution for module 'foo' was found in cache from location '/a/b/c'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========",
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
"======== Resolving module '@typescript/lib-es5' from '__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
diff --git a/tests/baselines/reference/cachedModuleResolution2.types b/tests/baselines/reference/cachedModuleResolution2.types
index 86183073314b0..4c34d48b3a9ed 100644
--- a/tests/baselines/reference/cachedModuleResolution2.types
+++ b/tests/baselines/reference/cachedModuleResolution2.types
@@ -1,4 +1,4 @@
-=== /a/b/node_modules/foo/index.d.ts ===
+=== /a/b/node_modules/foo.d.ts ===
export declare let x: number
>x : number
diff --git a/tests/baselines/reference/cachedModuleResolution5.js b/tests/baselines/reference/cachedModuleResolution5.js
index 329948c2bc4c7..dfabec484bd12 100644
--- a/tests/baselines/reference/cachedModuleResolution5.js
+++ b/tests/baselines/reference/cachedModuleResolution5.js
@@ -1,6 +1,6 @@
//// [tests/cases/compiler/cachedModuleResolution5.ts] ////
-//// [index.d.ts]
+//// [foo.d.ts]
export declare let x: number
//// [app.ts]
diff --git a/tests/baselines/reference/cachedModuleResolution5.symbols b/tests/baselines/reference/cachedModuleResolution5.symbols
index ae77a3c9a0b05..6c18677efcfed 100644
--- a/tests/baselines/reference/cachedModuleResolution5.symbols
+++ b/tests/baselines/reference/cachedModuleResolution5.symbols
@@ -1,6 +1,6 @@
-=== /a/b/node_modules/foo/index.d.ts ===
+=== /a/b/node_modules/foo.d.ts ===
export declare let x: number
->x : Symbol(x, Decl(index.d.ts, 0, 18))
+>x : Symbol(x, Decl(foo.d.ts, 0, 18))
=== /a/b/c/d/e/app.ts ===
import {x} from "foo";
diff --git a/tests/baselines/reference/cachedModuleResolution5.trace.json b/tests/baselines/reference/cachedModuleResolution5.trace.json
index d5ae1c8e859b6..79b1126ca4697 100644
--- a/tests/baselines/reference/cachedModuleResolution5.trace.json
+++ b/tests/baselines/reference/cachedModuleResolution5.trace.json
@@ -5,20 +5,16 @@
"Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
"Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
- "File '/a/b/node_modules/foo/package.json' does not exist.",
"File '/a/b/node_modules/foo.ts' does not exist.",
"File '/a/b/node_modules/foo.tsx' does not exist.",
- "File '/a/b/node_modules/foo.d.ts' does not exist.",
- "File '/a/b/node_modules/foo/index.ts' does not exist.",
- "File '/a/b/node_modules/foo/index.tsx' does not exist.",
- "File '/a/b/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
- "Resolving real path for '/a/b/node_modules/foo/index.d.ts', result '/a/b/node_modules/foo/index.d.ts'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========",
+ "File '/a/b/node_modules/foo.d.ts' exists - use it as a name resolution result.",
+ "Resolving real path for '/a/b/node_modules/foo.d.ts', result '/a/b/node_modules/foo.d.ts'.",
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
"======== Resolving module 'foo' from '/a/b/lib.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Resolution for module 'foo' was found in cache from location '/a/b'.",
- "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo/index.d.ts'. ========",
+ "======== Module name 'foo' was successfully resolved to '/a/b/node_modules/foo.d.ts'. ========",
"======== Resolving module '@typescript/lib-es5' from '__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
diff --git a/tests/baselines/reference/cachedModuleResolution5.types b/tests/baselines/reference/cachedModuleResolution5.types
index bbb74ad4247aa..e827caaf9228d 100644
--- a/tests/baselines/reference/cachedModuleResolution5.types
+++ b/tests/baselines/reference/cachedModuleResolution5.types
@@ -1,4 +1,4 @@
-=== /a/b/node_modules/foo/index.d.ts ===
+=== /a/b/node_modules/foo.d.ts ===
export declare let x: number
>x : number
diff --git a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.js b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.js
index 676fbe3915ad5..a4d31dabc8000 100644
--- a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.js
+++ b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.js
@@ -1,6 +1,6 @@
//// [tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts] ////
-//// [index.d.ts]
+//// [umd.d.ts]
export as namespace UMD;
export type Thing = {
diff --git a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.symbols b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.symbols
index 68f43a3aebbdf..4ac0f4928b0c1 100644
--- a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.symbols
+++ b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.symbols
@@ -1,17 +1,17 @@
-=== tests/cases/compiler/node_modules/umd/index.d.ts ===
+=== tests/cases/compiler/node_modules/umd.d.ts ===
export as namespace UMD;
->UMD : Symbol(UMD, Decl(index.d.ts, 0, 0))
+>UMD : Symbol(UMD, Decl(umd.d.ts, 0, 0))
export type Thing = {
->Thing : Symbol(Thing, Decl(index.d.ts, 0, 24))
+>Thing : Symbol(Thing, Decl(umd.d.ts, 0, 24))
a: number;
->a : Symbol(a, Decl(index.d.ts, 2, 21))
+>a : Symbol(a, Decl(umd.d.ts, 2, 21))
}
export declare function makeThing(): Thing;
->makeThing : Symbol(makeThing, Decl(index.d.ts, 4, 1))
->Thing : Symbol(Thing, Decl(index.d.ts, 0, 24))
+>makeThing : Symbol(makeThing, Decl(umd.d.ts, 4, 1))
+>Thing : Symbol(Thing, Decl(umd.d.ts, 0, 24))
=== tests/cases/compiler/index.ts ===
import { makeThing } from "umd";
diff --git a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.types b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.types
index def367267061d..7e71235bb2fb1 100644
--- a/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.types
+++ b/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.types
@@ -1,6 +1,6 @@
-=== tests/cases/compiler/node_modules/umd/index.d.ts ===
+=== tests/cases/compiler/node_modules/umd.d.ts ===
export as namespace UMD;
->UMD : typeof import("tests/cases/compiler/node_modules/umd/index")
+>UMD : typeof import("tests/cases/compiler/node_modules/umd")
export type Thing = {
>Thing : { a: number; }
@@ -14,10 +14,10 @@ export declare function makeThing(): Thing;
=== tests/cases/compiler/index.ts ===
import { makeThing } from "umd";
->makeThing : () => import("tests/cases/compiler/node_modules/umd/index").Thing
+>makeThing : () => import("tests/cases/compiler/node_modules/umd").Thing
export const thing = makeThing();
->thing : import("tests/cases/compiler/node_modules/umd/index").Thing
->makeThing() : import("tests/cases/compiler/node_modules/umd/index").Thing
->makeThing : () => import("tests/cases/compiler/node_modules/umd/index").Thing
+>thing : import("tests/cases/compiler/node_modules/umd").Thing
+>makeThing() : import("tests/cases/compiler/node_modules/umd").Thing
+>makeThing : () => import("tests/cases/compiler/node_modules/umd").Thing
diff --git a/tests/baselines/reference/nodeResolution2.js b/tests/baselines/reference/nodeResolution2.js
index e947f904ca73d..1c3058a1e0ea6 100644
--- a/tests/baselines/reference/nodeResolution2.js
+++ b/tests/baselines/reference/nodeResolution2.js
@@ -1,6 +1,6 @@
//// [tests/cases/compiler/nodeResolution2.ts] ////
-//// [index.d.ts]
+//// [a.d.ts]
export var x: number;
//// [b.ts]
diff --git a/tests/baselines/reference/nodeResolution2.symbols b/tests/baselines/reference/nodeResolution2.symbols
index 6c4bd9b6fb18b..ead8db27d7e79 100644
--- a/tests/baselines/reference/nodeResolution2.symbols
+++ b/tests/baselines/reference/nodeResolution2.symbols
@@ -2,7 +2,7 @@
import y = require("a");
>y : Symbol(y, Decl(b.ts, 0, 0))
-=== tests/cases/compiler/node_modules/a/index.d.ts ===
+=== tests/cases/compiler/node_modules/a.d.ts ===
export var x: number;
->x : Symbol(x, Decl(index.d.ts, 0, 10))
+>x : Symbol(x, Decl(a.d.ts, 0, 10))
diff --git a/tests/baselines/reference/nodeResolution2.types b/tests/baselines/reference/nodeResolution2.types
index 4ea52116a8ff2..3f4e97f7cfc54 100644
--- a/tests/baselines/reference/nodeResolution2.types
+++ b/tests/baselines/reference/nodeResolution2.types
@@ -2,7 +2,7 @@
import y = require("a");
>y : typeof y
-=== tests/cases/compiler/node_modules/a/index.d.ts ===
+=== tests/cases/compiler/node_modules/a.d.ts ===
export var x: number;
>x : number
diff --git a/tests/baselines/reference/nodeResolution5.js b/tests/baselines/reference/nodeResolution5.js
index 2b6de26e6678e..109810a436458 100644
--- a/tests/baselines/reference/nodeResolution5.js
+++ b/tests/baselines/reference/nodeResolution5.js
@@ -1,6 +1,6 @@
//// [tests/cases/compiler/nodeResolution5.ts] ////
-//// [index.d.ts]
+//// [a.d.ts]
declare module "a" {
var x: number;
}
diff --git a/tests/baselines/reference/nodeResolution5.symbols b/tests/baselines/reference/nodeResolution5.symbols
index db3bf2753c1ad..c00eca8188d10 100644
--- a/tests/baselines/reference/nodeResolution5.symbols
+++ b/tests/baselines/reference/nodeResolution5.symbols
@@ -2,11 +2,11 @@
import y = require("a");
>y : Symbol(y, Decl(b.ts, 0, 0))
-=== tests/cases/compiler/node_modules/a/index.d.ts ===
+=== tests/cases/compiler/node_modules/a.d.ts ===
declare module "a" {
->"a" : Symbol("a", Decl(index.d.ts, 0, 0))
+>"a" : Symbol("a", Decl(a.d.ts, 0, 0))
var x: number;
->x : Symbol(x, Decl(index.d.ts, 1, 7))
+>x : Symbol(x, Decl(a.d.ts, 1, 7))
}
diff --git a/tests/baselines/reference/nodeResolution5.types b/tests/baselines/reference/nodeResolution5.types
index fb31e87a0c79c..3cd5d2dd631a4 100644
--- a/tests/baselines/reference/nodeResolution5.types
+++ b/tests/baselines/reference/nodeResolution5.types
@@ -2,7 +2,7 @@
import y = require("a");
>y : typeof y
-=== tests/cases/compiler/node_modules/a/index.d.ts ===
+=== tests/cases/compiler/node_modules/a.d.ts ===
declare module "a" {
>"a" : typeof import("a")
diff --git a/tests/baselines/reference/nodeResolution6.js b/tests/baselines/reference/nodeResolution6.js
index 362bf6ecf9b26..3ee4da97624c6 100644
--- a/tests/baselines/reference/nodeResolution6.js
+++ b/tests/baselines/reference/nodeResolution6.js
@@ -3,7 +3,7 @@
//// [ref.ts]
var x = 1;
-//// [index.d.ts]
+//// [a.d.ts]
///
export declare var y;
diff --git a/tests/baselines/reference/nodeResolution6.symbols b/tests/baselines/reference/nodeResolution6.symbols
index 98004d1e5a150..24864d15a7966 100644
--- a/tests/baselines/reference/nodeResolution6.symbols
+++ b/tests/baselines/reference/nodeResolution6.symbols
@@ -2,13 +2,13 @@
import y = require("a");
>y : Symbol(y, Decl(b.ts, 0, 0))
-=== tests/cases/compiler/node_modules/a/ref.ts ===
+=== tests/cases/compiler/node_modules/ref.ts ===
var x = 1;
>x : Symbol(x, Decl(ref.ts, 0, 3))
-=== tests/cases/compiler/node_modules/a/index.d.ts ===
+=== tests/cases/compiler/node_modules/a.d.ts ===
///
export declare var y;
->y : Symbol(y, Decl(index.d.ts, 1, 18))
+>y : Symbol(y, Decl(a.d.ts, 1, 18))
diff --git a/tests/baselines/reference/nodeResolution6.types b/tests/baselines/reference/nodeResolution6.types
index 4f5da344e14e7..1c08f9c9113c3 100644
--- a/tests/baselines/reference/nodeResolution6.types
+++ b/tests/baselines/reference/nodeResolution6.types
@@ -2,12 +2,12 @@
import y = require("a");
>y : typeof y
-=== tests/cases/compiler/node_modules/a/ref.ts ===
+=== tests/cases/compiler/node_modules/ref.ts ===
var x = 1;
>x : number
>1 : 1
-=== tests/cases/compiler/node_modules/a/index.d.ts ===
+=== tests/cases/compiler/node_modules/a.d.ts ===
///
export declare var y;
>y : any
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.js b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.js
index 8a1a8479344b7..07d19ef51db95 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.js
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.js
@@ -22,7 +22,7 @@ export var y = 1;
//// [index.d.ts]
export var z: number;
-//// [index.ts]
+//// [file4.ts]
export var z1 = 1;
@@ -36,7 +36,7 @@ exports.x = 1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.y = void 0;
exports.y = 1;
-//// [index.js]
+//// [file4.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.z1 = void 0;
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.symbols b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.symbols
index 54f38e9c9f2ea..4baefdba819f3 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.symbols
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.symbols
@@ -51,7 +51,7 @@ export var y = 1;
export var z: number;
>z : Symbol(z, Decl(index.d.ts, 0, 10))
-=== c:/node_modules/file4/index.ts ===
+=== c:/node_modules/file4.ts ===
export var z1 = 1;
->z1 : Symbol(z1, Decl(index.ts, 0, 10))
+>z1 : Symbol(z1, Decl(file4.ts, 0, 10))
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json
index 365ad6894ae4e..a8b342f5f0978 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.trace.json
@@ -54,13 +54,9 @@
"Loading module 'file4' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory 'c:/root/folder1/node_modules' does not exist, skipping all lookups in it.",
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
- "File 'c:/node_modules/file4/package.json' does not exist.",
- "File 'c:/node_modules/file4.ts' does not exist.",
- "File 'c:/node_modules/file4.tsx' does not exist.",
- "File 'c:/node_modules/file4.d.ts' does not exist.",
- "File 'c:/node_modules/file4/index.ts' exists - use it as a name resolution result.",
- "Resolving real path for 'c:/node_modules/file4/index.ts', result 'c:/node_modules/file4/index.ts'.",
- "======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4/index.ts'. ========",
+ "File 'c:/node_modules/file4.ts' exists - use it as a name resolution result.",
+ "Resolving real path for 'c:/node_modules/file4.ts', result 'c:/node_modules/file4.ts'.",
+ "======== Module name 'file4' was successfully resolved to 'c:/node_modules/file4.ts'. ========",
"======== Resolving module '@typescript/lib-es5' from 'c:/root/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
"Explicitly specified module resolution kind: 'Node10'.",
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types
index b05f1154565a1..2cdc99dcd8cab 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution5_node.types
@@ -61,7 +61,7 @@ export var y = 1;
export var z: number;
>z : number
-=== c:/node_modules/file4/index.ts ===
+=== c:/node_modules/file4.ts ===
export var z1 = 1;
>z1 : number
>1 : 1
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.js b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.js
index 75e79c8316d69..9279af3793d68 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.js
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.js
@@ -23,7 +23,7 @@ export let b: number;
//// [index.d.ts]
export let x: number;
-//// [index.d.ts]
+//// [module3.d.ts]
export let y: number;
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.symbols b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.symbols
index e1db50212484c..5da6a8717cacf 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.symbols
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.symbols
@@ -50,8 +50,8 @@ export let b: number;
export let x: number;
>x : Symbol(x, Decl(index.d.ts, 0, 10))
-=== c:/node_modules/module3/index.d.ts ===
+=== c:/node_modules/module3.d.ts ===
export let y: number;
->y : Symbol(y, Decl(index.d.ts, 0, 10))
+>y : Symbol(y, Decl(module3.d.ts, 0, 10))
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json
index 92eb39f974863..75b5ab1d659c4 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.trace.json
@@ -33,15 +33,11 @@
"Loading module 'module3' from 'node_modules' folder, target file types: TypeScript, Declaration.",
"Directory 'c:/root/src/node_modules' does not exist, skipping all lookups in it.",
"Directory 'c:/root/node_modules' does not exist, skipping all lookups in it.",
- "File 'c:/node_modules/module3/package.json' does not exist.",
"File 'c:/node_modules/module3.ts' does not exist.",
"File 'c:/node_modules/module3.tsx' does not exist.",
- "File 'c:/node_modules/module3.d.ts' does not exist.",
- "File 'c:/node_modules/module3/index.ts' does not exist.",
- "File 'c:/node_modules/module3/index.tsx' does not exist.",
- "File 'c:/node_modules/module3/index.d.ts' exists - use it as a name resolution result.",
- "Resolving real path for 'c:/node_modules/module3/index.d.ts', result 'c:/node_modules/module3/index.d.ts'.",
- "======== Module name 'module3' was successfully resolved to 'c:/node_modules/module3/index.d.ts'. ========",
+ "File 'c:/node_modules/module3.d.ts' exists - use it as a name resolution result.",
+ "Resolving real path for 'c:/node_modules/module3.d.ts', result 'c:/node_modules/module3.d.ts'.",
+ "======== Module name 'module3' was successfully resolved to 'c:/node_modules/module3.d.ts'. ========",
"======== Resolving module 'module1' from 'c:/root/generated/src/project/file2.ts'. ========",
"Module resolution kind is not specified, using 'Node10'.",
"'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'module1'.",
diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types
index 041aacc40501d..974f710b4c280 100644
--- a/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types
+++ b/tests/baselines/reference/pathMappingBasedModuleResolution7_node.types
@@ -56,7 +56,7 @@ export let b: number;
export let x: number;
>x : number
-=== c:/node_modules/module3/index.d.ts ===
+=== c:/node_modules/module3.d.ts ===
export let y: number;
>y : number
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.js b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.js
index ba2ed909f8d4d..8ad2a61f2b5fb 100644
--- a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.js
+++ b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.js
@@ -4,17 +4,17 @@
import f = require("f"); // should work to f.ts
let fnumber: number = f;
-//// [index.json]
+//// [f.json]
{
"a": true,
"b": "hello"
}
-//// [index.ts]
+//// [f.ts]
export = 10;
-//// [out/node_modules/f/index.js]
+//// [out/node_modules/f.js]
"use strict";
module.exports = 10;
//// [out/projects/file1.js]
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.symbols b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.symbols
index abadc64a13415..ab6a6f28af80a 100644
--- a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.symbols
+++ b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.symbols
@@ -6,7 +6,7 @@ let fnumber: number = f;
>fnumber : Symbol(fnumber, Decl(file1.ts, 1, 3))
>f : Symbol(f, Decl(file1.ts, 0, 0))
-=== /src/node_modules/f/index.ts ===
+=== /src/node_modules/f.ts ===
export = 10;
diff --git a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.types b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.types
index de19c0e6e651c..589776e008f98 100644
--- a/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.types
+++ b/tests/baselines/reference/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.types
@@ -6,7 +6,7 @@ let fnumber: number = f;
>fnumber : number
>f : 10
-=== /src/node_modules/f/index.ts ===
+=== /src/node_modules/f.ts ===
export = 10;
diff --git a/tests/cases/compiler/cachedModuleResolution1.ts b/tests/cases/compiler/cachedModuleResolution1.ts
index bab6679d87ecf..2e8be93fdf37b 100644
--- a/tests/cases/compiler/cachedModuleResolution1.ts
+++ b/tests/cases/compiler/cachedModuleResolution1.ts
@@ -1,7 +1,7 @@
// @moduleResolution: node
// @traceResolution: true
-// @filename: /a/b/node_modules/foo/index.d.ts
+// @filename: /a/b/node_modules/foo.d.ts
export declare let x: number
// @filename: /a/b/c/d/e/app.ts
diff --git a/tests/cases/compiler/cachedModuleResolution2.ts b/tests/cases/compiler/cachedModuleResolution2.ts
index 22546b58b9936..38aaf4e609df3 100644
--- a/tests/cases/compiler/cachedModuleResolution2.ts
+++ b/tests/cases/compiler/cachedModuleResolution2.ts
@@ -1,7 +1,7 @@
// @moduleResolution: node
// @traceResolution: true
-// @filename: /a/b/node_modules/foo/index.d.ts
+// @filename: /a/b/node_modules/foo.d.ts
export declare let x: number
// @filename: /a/b/c/lib.ts
diff --git a/tests/cases/compiler/cachedModuleResolution5.ts b/tests/cases/compiler/cachedModuleResolution5.ts
index 5235c59578c4a..721ee2d4934c8 100644
--- a/tests/cases/compiler/cachedModuleResolution5.ts
+++ b/tests/cases/compiler/cachedModuleResolution5.ts
@@ -1,7 +1,7 @@
// @moduleResolution: node
// @traceResolution: true
-// @filename: /a/b/node_modules/foo/index.d.ts
+// @filename: /a/b/node_modules/foo.d.ts
export declare let x: number
// @filename: /a/b/c/d/e/app.ts
diff --git a/tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts b/tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts
index 5b248e67813f3..a6d77a5156709 100644
--- a/tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts
+++ b/tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts
@@ -1,5 +1,5 @@
// @declaration: true
-// @filename: node_modules/umd/index.d.ts
+// @filename: node_modules/umd.d.ts
export as namespace UMD;
export type Thing = {
diff --git a/tests/cases/compiler/nodeResolution2.ts b/tests/cases/compiler/nodeResolution2.ts
index 91c7f70ace0f1..d03706ebeacb1 100644
--- a/tests/cases/compiler/nodeResolution2.ts
+++ b/tests/cases/compiler/nodeResolution2.ts
@@ -1,7 +1,7 @@
// @module: commonjs
// @moduleResolution: node
-// @filename: node_modules/a/index.d.ts
+// @filename: node_modules/a.d.ts
export var x: number;
// @filename: b.ts
diff --git a/tests/cases/compiler/nodeResolution5.ts b/tests/cases/compiler/nodeResolution5.ts
index b4283edb76ad3..313dabd7899ff 100644
--- a/tests/cases/compiler/nodeResolution5.ts
+++ b/tests/cases/compiler/nodeResolution5.ts
@@ -1,7 +1,7 @@
// @module: commonjs
// @moduleResolution: node
-// @filename: node_modules/a/index.d.ts
+// @filename: node_modules/a.d.ts
declare module "a" {
var x: number;
}
diff --git a/tests/cases/compiler/nodeResolution6.ts b/tests/cases/compiler/nodeResolution6.ts
index 01164e5a9dc0c..3f6dc81c84780 100644
--- a/tests/cases/compiler/nodeResolution6.ts
+++ b/tests/cases/compiler/nodeResolution6.ts
@@ -1,10 +1,10 @@
// @module: commonjs
// @moduleResolution: node
-// @filename: node_modules/a/ref.ts
+// @filename: node_modules/ref.ts
var x = 1;
-// @filename: node_modules/a/index.d.ts
+// @filename: node_modules/a.d.ts
///
export declare var y;
diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts b/tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts
index dffcd83c3128f..ddc8e0e492595 100644
--- a/tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts
+++ b/tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts
@@ -39,5 +39,5 @@ export var y = 1;
// @filename: c:/root/shared/components/file3/index.d.ts
export var z: number;
-// @filename: c:/node_modules/file4/index.ts
+// @filename: c:/node_modules/file4.ts
export var z1 = 1;
diff --git a/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts b/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts
index 35e65a076d4f2..1ba9630e0cfab 100644
--- a/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts
+++ b/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts
@@ -44,6 +44,6 @@ export let b: number;
// @filename: c:/root/src/file3/index.d.ts
export let x: number;
-// @filename: c:/node_modules/module3/index.d.ts
+// @filename: c:/node_modules/module3.d.ts
export let y: number;
diff --git a/tests/cases/compiler/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.ts b/tests/cases/compiler/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.ts
index 922b8b6fcca00..341d6a5f80c79 100644
--- a/tests/cases/compiler/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.ts
+++ b/tests/cases/compiler/requireOfJsonFileNonRelativeWithoutExtensionResolvesToTs.ts
@@ -8,11 +8,11 @@
import f = require("f"); // should work to f.ts
let fnumber: number = f;
-// @Filename: /src/node_modules/f/index.json
+// @Filename: /src/node_modules/f.json
{
"a": true,
"b": "hello"
}
-// @Filename: /src/node_modules/f/index.ts
+// @Filename: /src/node_modules/f.ts
export = 10;
From d74fcfc9d43ca13cc93ebbbaf67d035337e0eab9 Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Wed, 10 May 2023 09:28:25 -0700
Subject: [PATCH 08/10] revert unit tests too
---
src/testRunner/unittests/moduleResolution.ts | 13 ++++---
.../unittests/tscWatch/programUpdates.ts | 2 +-
.../unittests/tsserver/configuredProjects.ts | 4 +--
.../events/projectUpdatedInBackground.ts | 2 +-
.../node-baseUrl-path-mappings.js | 18 ++++------
.../moduleResolution/node-baseUrl.js | 18 ++++------
...module-name-as-file-ts-files-not-loaded.js | 18 ++++------
.../non-relative-module-name-as-file.js | 18 ++++------
.../type-reference-from-secondary-location.js | 27 +++++++++++++++
...odule-resolution-changes-in-config-file.js | 20 +++++------
...odule-resolution-changes-in-config-file.js | 34 +++++++------------
...he-session-and-project-is-at-root-level.js | 2 +-
...ession-and-project-is-not-at-root-level.js | 23 ++++++-------
...oundUpdate-and-project-is-at-root-level.js | 2 +-
...Update-and-project-is-not-at-root-level.js | 23 ++++++-------
...oundUpdate-and-project-is-at-root-level.js | 2 +-
...Update-and-project-is-not-at-root-level.js | 21 +++++-------
17 files changed, 118 insertions(+), 129 deletions(-)
diff --git a/src/testRunner/unittests/moduleResolution.ts b/src/testRunner/unittests/moduleResolution.ts
index 6be5fb521be26..560d68b7e954f 100644
--- a/src/testRunner/unittests/moduleResolution.ts
+++ b/src/testRunner/unittests/moduleResolution.ts
@@ -262,7 +262,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
function test(hasDirectoryExists: boolean) {
const containingFile = { name: "/a/b/c/d/e.ts" };
- const moduleFile = { name: "/a/b/node_modules/foo/index.ts" };
+ const moduleFile = { name: "/a/b/node_modules/foo.ts" };
baselines.push(`Resolving "foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`);
const resolution = ts.nodeModuleNameResolver("foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile));
baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`);
@@ -278,7 +278,7 @@ describe("unittests:: moduleResolution:: Node module resolution - non-relative p
function test(hasDirectoryExists: boolean) {
const containingFile = { name: "/a/b/c/d/e.ts" };
- const moduleFile = { name: "/a/b/node_modules/foo/index.d.ts" };
+ const moduleFile = { name: "/a/b/node_modules/foo.d.ts" };
baselines.push(`Resolving "foo" from ${containingFile.name}${hasDirectoryExists ? "" : " with host that doesnt have directoryExists"}`);
const resolution = ts.nodeModuleNameResolver("foo", containingFile.name, {}, createModuleResolutionHost(baselines, hasDirectoryExists, containingFile, moduleFile));
baselines.push(`Resolution:: ${JSON.stringify(resolution, /*replacer*/ undefined, 2)}`);
@@ -672,7 +672,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", (
const m2: File = { name: "/root/m2/index.d.ts" }; // load folder as module
const m3: File = { name: "/root/m3/package.json", content: JSON.stringify({ typings: "dist/typings.d.ts" }) };
const m3Typings: File = { name: "/root/m3/dist/typings.d.ts" };
- const m4: File = { name: "/root/node_modules/m4/index.ts" }; // fallback to node
+ const m4: File = { name: "/root/node_modules/m4.ts" }; // fallback to node
const options: ts.CompilerOptions = { moduleResolution: ts.ModuleResolutionKind.Node10, baseUrl: "/root" };
const host = createModuleResolutionHost(baselines, hasDirectoryExists, main, m1, m2, m3, m3Typings, m4);
@@ -732,7 +732,7 @@ describe("unittests:: moduleResolution:: baseUrl augmented module resolution", (
const file4Typings: File = { name: "/root/generated/folder2/file4/package.json", content: JSON.stringify({ typings: "dist/types.d.ts" }) };
const file4: File = { name: "/root/generated/folder2/file4/dist/types.d.ts" }; // load file pointed by typings
const file5: File = { name: "/root/someanotherfolder/file5/index.d.ts" }; // load remapped module from folder
- const file6: File = { name: "/root/node_modules/file6/index.ts" }; // fallback to node
+ const file6: File = { name: "/root/node_modules/file6.ts" }; // fallback to node
const host = createModuleResolutionHost(baselines, hasDirectoryExists, file1, file2, file3, file4, file4Typings, file5, file6);
const options: ts.CompilerOptions = {
@@ -969,6 +969,11 @@ describe("unittests:: moduleResolution:: Type reference directive resolution: ",
});
it("Can be resolved from secondary location", () => {
const baselines: string[] = [];
+ {
+ const f1 = { name: "/root/src/app.ts" };
+ const f2 = { name: "/root/node_modules/lib.d.ts" };
+ test(baselines, /*typesRoot*/"/root/src/types", /* typeDirective */"lib", f1, f2);
+ }
{
const f1 = { name: "/root/src/app.ts" };
const f2 = { name: "/root/node_modules/lib/index.d.ts" };
diff --git a/src/testRunner/unittests/tscWatch/programUpdates.ts b/src/testRunner/unittests/tscWatch/programUpdates.ts
index fad1f8a710dd1..229aadd9e1501 100644
--- a/src/testRunner/unittests/tscWatch/programUpdates.ts
+++ b/src/testRunner/unittests/tscWatch/programUpdates.ts
@@ -387,7 +387,7 @@ export class A {
content: `import { T } from "module1";`
};
const nodeModuleFile: File = {
- path: "/a/b/node_modules/module1/index.ts",
+ path: "/a/b/node_modules/module1.ts",
content: `export interface T {}`
};
const classicModuleFile: File = {
diff --git a/src/testRunner/unittests/tsserver/configuredProjects.ts b/src/testRunner/unittests/tsserver/configuredProjects.ts
index 09cb22c1ac3ac..a496d5612849c 100644
--- a/src/testRunner/unittests/tsserver/configuredProjects.ts
+++ b/src/testRunner/unittests/tsserver/configuredProjects.ts
@@ -200,7 +200,7 @@ describe("unittests:: tsserver:: ConfiguredProjects", () => {
content: `import { T } from "module1";`
};
const nodeModuleFile: File = {
- path: "/a/b/node_modules/module1/index.ts",
+ path: "/a/b/node_modules/module1.ts",
content: `export interface T {}`
};
const classicModuleFile: File = {
@@ -1139,4 +1139,4 @@ describe("unittests:: tsserver:: ConfiguredProjects:: when reading tsconfig file
baselineTsserverLogs("configuredProjects", "should be tolerated without crashing the server when reading tsconfig file fails", session);
});
-});
\ No newline at end of file
+});
diff --git a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts
index 39a73aee235d0..19be7628c980b 100644
--- a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts
+++ b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts
@@ -361,7 +361,7 @@ describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => {
content: 'import a from "file2"'
};
const file2: File = {
- path: rootFolder + "a/b/node_modules/file2/index.d.ts",
+ path: rootFolder + "a/b/node_modules/file2.d.ts",
content: "export class a { }"
};
const file3: File = {
diff --git a/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js b/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js
index b3e644611e158..30e9c41445cc7 100644
--- a/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js
+++ b/tests/baselines/reference/moduleResolution/node-baseUrl-path-mappings.js
@@ -16,7 +16,7 @@
//// [/root/someanotherfolder/file5/index.d.ts]
-//// [/root/node_modules/file6/index.ts]
+//// [/root/node_modules/file6.ts]
Resolving "folder1/file1" from /root/folder1/main.ts
@@ -129,7 +129,7 @@ Resolution:: {
Resolving "file6" from /root/folder1/main.ts
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/root/node_modules/file6/index.ts",
+ "resolvedFileName": "/root/node_modules/file6.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -159,10 +159,7 @@ Resolution:: {
"/root/folder1/node_modules/@types/file6/package.json",
"/root/folder1/node_modules/@types/file6.d.ts",
"/root/folder1/node_modules/@types/file6/index.d.ts",
- "/root/node_modules/file6/package.json",
- "/root/node_modules/file6.ts",
- "/root/node_modules/file6.tsx",
- "/root/node_modules/file6.d.ts"
+ "/root/node_modules/file6/package.json"
]
}
@@ -184,7 +181,7 @@ Resolution:: {
//// [/root/someanotherfolder/file5/index.d.ts]
-//// [/root/node_modules/file6/index.ts]
+//// [/root/node_modules/file6.ts]
Resolving "folder1/file1" from /root/folder1/main.ts with host that doesnt have directoryExists
@@ -297,7 +294,7 @@ Resolution:: {
Resolving "file6" from /root/folder1/main.ts with host that doesnt have directoryExists
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/root/node_modules/file6/index.ts",
+ "resolvedFileName": "/root/node_modules/file6.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -327,9 +324,6 @@ Resolution:: {
"/root/folder1/node_modules/@types/file6/package.json",
"/root/folder1/node_modules/@types/file6.d.ts",
"/root/folder1/node_modules/@types/file6/index.d.ts",
- "/root/node_modules/file6/package.json",
- "/root/node_modules/file6.ts",
- "/root/node_modules/file6.tsx",
- "/root/node_modules/file6.d.ts"
+ "/root/node_modules/file6/package.json"
]
}
diff --git a/tests/baselines/reference/moduleResolution/node-baseUrl.js b/tests/baselines/reference/moduleResolution/node-baseUrl.js
index 970cb66914b26..ecb69b2076974 100644
--- a/tests/baselines/reference/moduleResolution/node-baseUrl.js
+++ b/tests/baselines/reference/moduleResolution/node-baseUrl.js
@@ -13,7 +13,7 @@
//// [/root/m3/dist/typings.d.ts]
-//// [/root/node_modules/m4/index.ts]
+//// [/root/node_modules/m4.ts]
Resolving "m1" from /root/a/b/main.ts
@@ -65,7 +65,7 @@ Resolution:: {
Resolving "m4" from /root/a/b/main.ts
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/root/node_modules/m4/index.ts",
+ "resolvedFileName": "/root/node_modules/m4.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -98,10 +98,7 @@ Resolution:: {
"/root/a/node_modules/@types/m4/package.json",
"/root/a/node_modules/@types/m4.d.ts",
"/root/a/node_modules/@types/m4/index.d.ts",
- "/root/node_modules/m4/package.json",
- "/root/node_modules/m4.ts",
- "/root/node_modules/m4.tsx",
- "/root/node_modules/m4.d.ts"
+ "/root/node_modules/m4/package.json"
]
}
@@ -120,7 +117,7 @@ Resolution:: {
//// [/root/m3/dist/typings.d.ts]
-//// [/root/node_modules/m4/index.ts]
+//// [/root/node_modules/m4.ts]
Resolving "m1" from /root/a/b/main.ts with host that doesnt have directoryExists
@@ -172,7 +169,7 @@ Resolution:: {
Resolving "m4" from /root/a/b/main.ts with host that doesnt have directoryExists
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/root/node_modules/m4/index.ts",
+ "resolvedFileName": "/root/node_modules/m4.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -205,9 +202,6 @@ Resolution:: {
"/root/a/node_modules/@types/m4/package.json",
"/root/a/node_modules/@types/m4.d.ts",
"/root/a/node_modules/@types/m4/index.d.ts",
- "/root/node_modules/m4/package.json",
- "/root/node_modules/m4.ts",
- "/root/node_modules/m4.tsx",
- "/root/node_modules/m4.d.ts"
+ "/root/node_modules/m4/package.json"
]
}
diff --git a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js
index cec3a472ed536..b30a6b150a505 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file-ts-files-not-loaded.js
@@ -2,12 +2,12 @@ Resolving "foo" from /a/b/c/d/e.ts
//// [/a/b/c/d/e.ts]
-//// [/a/b/node_modules/foo/index.ts]
+//// [/a/b/node_modules/foo.ts]
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/a/b/node_modules/foo/index.ts",
+ "resolvedFileName": "/a/b/node_modules/foo.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -33,10 +33,7 @@ Resolution:: {
"/a/b/c/node_modules/@types/foo/package.json",
"/a/b/c/node_modules/@types/foo.d.ts",
"/a/b/c/node_modules/@types/foo/index.d.ts",
- "/a/b/node_modules/foo/package.json",
- "/a/b/node_modules/foo.ts",
- "/a/b/node_modules/foo.tsx",
- "/a/b/node_modules/foo.d.ts"
+ "/a/b/node_modules/foo/package.json"
]
}
@@ -44,12 +41,12 @@ Resolving "foo" from /a/b/c/d/e.ts with host that doesnt have directoryExists
//// [/a/b/c/d/e.ts]
-//// [/a/b/node_modules/foo/index.ts]
+//// [/a/b/node_modules/foo.ts]
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/a/b/node_modules/foo/index.ts",
+ "resolvedFileName": "/a/b/node_modules/foo.ts",
"extension": ".ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -75,9 +72,6 @@ Resolution:: {
"/a/b/c/node_modules/@types/foo/package.json",
"/a/b/c/node_modules/@types/foo.d.ts",
"/a/b/c/node_modules/@types/foo/index.d.ts",
- "/a/b/node_modules/foo/package.json",
- "/a/b/node_modules/foo.ts",
- "/a/b/node_modules/foo.tsx",
- "/a/b/node_modules/foo.d.ts"
+ "/a/b/node_modules/foo/package.json"
]
}
diff --git a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js
index 6a26214f1fc2f..4ba986ae2ecf4 100644
--- a/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js
+++ b/tests/baselines/reference/moduleResolution/non-relative-module-name-as-file.js
@@ -2,12 +2,12 @@ Resolving "foo" from /a/b/c/d/e.ts
//// [/a/b/c/d/e.ts]
-//// [/a/b/node_modules/foo/index.d.ts]
+//// [/a/b/node_modules/foo.d.ts]
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/a/b/node_modules/foo/index.d.ts",
+ "resolvedFileName": "/a/b/node_modules/foo.d.ts",
"extension": ".d.ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -35,10 +35,7 @@ Resolution:: {
"/a/b/c/node_modules/@types/foo/index.d.ts",
"/a/b/node_modules/foo/package.json",
"/a/b/node_modules/foo.ts",
- "/a/b/node_modules/foo.tsx",
- "/a/b/node_modules/foo.d.ts",
- "/a/b/node_modules/foo/index.ts",
- "/a/b/node_modules/foo/index.tsx"
+ "/a/b/node_modules/foo.tsx"
]
}
@@ -46,12 +43,12 @@ Resolving "foo" from /a/b/c/d/e.ts with host that doesnt have directoryExists
//// [/a/b/c/d/e.ts]
-//// [/a/b/node_modules/foo/index.d.ts]
+//// [/a/b/node_modules/foo.d.ts]
Resolution:: {
"resolvedModule": {
- "resolvedFileName": "/a/b/node_modules/foo/index.d.ts",
+ "resolvedFileName": "/a/b/node_modules/foo.d.ts",
"extension": ".d.ts",
"isExternalLibraryImport": true,
"resolvedUsingTsExtension": false
@@ -79,9 +76,6 @@ Resolution:: {
"/a/b/c/node_modules/@types/foo/index.d.ts",
"/a/b/node_modules/foo/package.json",
"/a/b/node_modules/foo.ts",
- "/a/b/node_modules/foo.tsx",
- "/a/b/node_modules/foo.d.ts",
- "/a/b/node_modules/foo/index.ts",
- "/a/b/node_modules/foo/index.tsx"
+ "/a/b/node_modules/foo.tsx"
]
}
diff --git a/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js b/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js
index 141bb1f2b9212..4f96a2c8cc9b8 100644
--- a/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js
+++ b/tests/baselines/reference/moduleResolution/type-reference-from-secondary-location.js
@@ -1,6 +1,33 @@
//// [/root/src/app.ts]
+//// [/root/node_modules/lib.d.ts]
+
+
+Resolving "lib" from /root/src/app.ts typesRoots: [/root/src/types] with host that doesnt have directoryExists
+Resolution:: {
+ "resolvedTypeReferenceDirective": {
+ "primary": false,
+ "resolvedFileName": "/root/node_modules/lib.d.ts",
+ "isExternalLibraryImport": true
+ },
+ "failedLookupLocations": [
+ "/root/src/types/lib.d.ts",
+ "/root/src/types/lib/package.json",
+ "/root/src/types/lib/index.d.ts",
+ "/root/src/node_modules/lib/package.json",
+ "/root/src/node_modules/lib.d.ts",
+ "/root/src/node_modules/lib/index.d.ts",
+ "/root/src/node_modules/@types/lib/package.json",
+ "/root/src/node_modules/@types/lib.d.ts",
+ "/root/src/node_modules/@types/lib/index.d.ts",
+ "/root/node_modules/lib/package.json"
+ ]
+}
+
+//// [/root/src/app.ts]
+
+
//// [/root/node_modules/lib/index.d.ts]
diff --git a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js
index e9d4937e8f4d4..e54fd78da7914 100644
--- a/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js
+++ b/tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js
@@ -16,7 +16,7 @@ interface Array { length: number; [n: number]: T; }
//// [/a/b/file1.ts]
import { T } from "module1";
-//// [/a/b/node_modules/module1/index.ts]
+//// [/a/b/node_modules/module1.ts]
export interface T {}
//// [/a/module1.ts]
@@ -34,9 +34,9 @@ export interface T {}
/a/lib/tsc.js -w -p /a/b/tsconfig.json
Output::
>> Screen clear
-[[90m12:00:23 AM[0m] Starting compilation in watch mode...
+[[90m12:00:21 AM[0m] Starting compilation in watch mode...
-[[90m12:00:26 AM[0m] Found 0 errors. Watching for file changes.
+[[90m12:00:24 AM[0m] Found 0 errors. Watching for file changes.
@@ -45,17 +45,17 @@ Program options: {"moduleResolution":2,"watch":true,"project":"/a/b/tsconfig.jso
Program structureReused: Not
Program files::
/a/lib/lib.d.ts
-/a/b/node_modules/module1/index.ts
+/a/b/node_modules/module1.ts
/a/b/file1.ts
Semantic diagnostics in builder refreshed for::
/a/lib/lib.d.ts
-/a/b/node_modules/module1/index.ts
+/a/b/node_modules/module1.ts
/a/b/file1.ts
Shape signatures in builder refreshed for::
/a/lib/lib.d.ts (used version)
-/a/b/node_modules/module1/index.ts (used version)
+/a/b/node_modules/module1.ts (used version)
/a/b/file1.ts (used version)
FsWatches::
@@ -63,7 +63,7 @@ FsWatches::
{}
/a/b/file1.ts: *new*
{}
-/a/b/node_modules/module1/index.ts: *new*
+/a/b/node_modules/module1.ts: *new*
{}
/a/lib/lib.d.ts: *new*
{}
@@ -93,9 +93,9 @@ Before running Timeout callback:: count: 1
After running Timeout callback:: count: 0
Output::
>> Screen clear
-[[90m12:00:30 AM[0m] File change detected. Starting incremental compilation...
+[[90m12:00:28 AM[0m] File change detected. Starting incremental compilation...
-[[90m12:00:36 AM[0m] Found 0 errors. Watching for file changes.
+[[90m12:00:34 AM[0m] Found 0 errors. Watching for file changes.
@@ -126,7 +126,7 @@ FsWatches::
{}
FsWatches *deleted*::
-/a/b/node_modules/module1/index.ts:
+/a/b/node_modules/module1.ts:
{}
exitCode:: ExitStatus.undefined
diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js b/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js
index b212e8d37cf99..5d39a2c6a8084 100644
--- a/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js
+++ b/tests/baselines/reference/tsserver/configuredProjects/should-properly-handle-module-resolution-changes-in-config-file.js
@@ -4,7 +4,7 @@ Creating project service
//// [/a/b/file1.ts]
import { T } from "module1";
-//// [/a/b/node_modules/module1/index.ts]
+//// [/a/b/node_modules/module1.ts]
export interface T {}
//// [/a/module1.ts]
@@ -42,11 +42,11 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 un
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/b/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured)
Info seq [hh:mm:ss:mss] Files (2)
- /a/b/node_modules/module1/index.ts Text-1 "export interface T {}"
+ /a/b/node_modules/module1.ts Text-1 "export interface T {}"
/a/b/file1.ts SVC-1-0 "import { T } from \"module1\";"
- node_modules/module1/index.ts
+ node_modules/module1.ts
Imported via "module1" from file 'file1.ts'
file1.ts
Part of 'files' list in tsconfig.json
@@ -61,8 +61,8 @@ Info seq [hh:mm:ss:mss] FileName: /a/b/file1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info seq [hh:mm:ss:mss] Search path: /a/b/node_modules/module1
-Info seq [hh:mm:ss:mss] For info: /a/b/node_modules/module1/index.ts :: No config files found.
+Info seq [hh:mm:ss:mss] Search path: /a/b/node_modules
+Info seq [hh:mm:ss:mss] For info: /a/b/node_modules/module1.ts :: No config files found.
Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured)
Info seq [hh:mm:ss:mss] Files (2)
@@ -70,7 +70,7 @@ Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
Info seq [hh:mm:ss:mss] FileName: /a/b/file1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json
-Info seq [hh:mm:ss:mss] FileName: /a/b/node_modules/module1/index.ts ProjectRootPath: undefined
+Info seq [hh:mm:ss:mss] FileName: /a/b/node_modules/module1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json
Info seq [hh:mm:ss:mss] Search path: /a
Info seq [hh:mm:ss:mss] For info: /a/module1.ts :: No config files found.
@@ -97,7 +97,7 @@ Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
Info seq [hh:mm:ss:mss] FileName: /a/b/file1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json
-Info seq [hh:mm:ss:mss] FileName: /a/b/node_modules/module1/index.ts ProjectRootPath: undefined
+Info seq [hh:mm:ss:mss] FileName: /a/b/node_modules/module1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json
Info seq [hh:mm:ss:mss] FileName: /a/module1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1*
@@ -163,25 +163,21 @@ Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
Info seq [hh:mm:ss:mss] FileName: /a/b/file1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json
-Info seq [hh:mm:ss:mss] FileName: /a/b/node_modules/module1/index.ts ProjectRootPath: undefined
+Info seq [hh:mm:ss:mss] FileName: /a/b/node_modules/module1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects:
Info seq [hh:mm:ss:mss] FileName: /a/module1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1*,/a/b/tsconfig.json
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/module1/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root
-Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/module1/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2*
Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject2* WatchType: Missing file
-Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules/module1/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots
-Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules/module1/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots
Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred)
Info seq [hh:mm:ss:mss] Files (1)
- /a/b/node_modules/module1/index.ts Text-1 "export interface T {}"
+ /a/b/node_modules/module1.ts Text-1 "export interface T {}"
- index.ts
+ module1.ts
Root file specified for compilation
Info seq [hh:mm:ss:mss] -----------------------------------------------
@@ -210,7 +206,7 @@ Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
Info seq [hh:mm:ss:mss] FileName: /a/b/file1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json
-Info seq [hh:mm:ss:mss] FileName: /a/b/node_modules/module1/index.ts ProjectRootPath: undefined
+Info seq [hh:mm:ss:mss] FileName: /a/b/node_modules/module1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2*
Info seq [hh:mm:ss:mss] FileName: /a/module1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json
@@ -219,12 +215,6 @@ After running Timeout callback:: count: 0
PolledWatches::
/a/lib/lib.d.ts:
{"pollingInterval":500}
-/a/b/node_modules/module1/tsconfig.json: *new*
- {"pollingInterval":2000}
-/a/b/node_modules/module1/jsconfig.json: *new*
- {"pollingInterval":2000}
-/a/b/node_modules/module1/node_modules/@types: *new*
- {"pollingInterval":500}
/a/b/node_modules/node_modules/@types: *new*
{"pollingInterval":500}
@@ -263,7 +253,7 @@ Info seq [hh:mm:ss:mss] -----------------------------------------------
Info seq [hh:mm:ss:mss] Open files:
Info seq [hh:mm:ss:mss] FileName: /a/b/file1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json
-Info seq [hh:mm:ss:mss] FileName: /a/b/node_modules/module1/index.ts ProjectRootPath: undefined
+Info seq [hh:mm:ss:mss] FileName: /a/b/node_modules/module1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2*
Info seq [hh:mm:ss:mss] FileName: /a/module1.ts ProjectRootPath: undefined
Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json
diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js
index 35a9844e5e53c..f4fb0066cd259 100644
--- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js
+++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js
@@ -221,7 +221,7 @@ Info seq [hh:mm:ss:mss] event:
After running Timeout callback:: count: 0
Before running Timeout callback:: count: 0
-//// [/a/b/node_modules/file2/index.d.ts]
+//// [/a/b/node_modules/file2.d.ts]
export class a { }
diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js
index 4ab80cde67cf1..7850fe4cf6c7e 100644
--- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js
+++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js
@@ -242,15 +242,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/u
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Before running Timeout callback:: count: 1
-6: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
-//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts]
+5: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
+//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts]
export class a { }
@@ -286,12 +283,12 @@ Info seq [hh:mm:ss:mss] Running: /user/username/rootfolder/otherfolder/a/b/proj
Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
After running Timeout callback:: count: 2
-7: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-8: *ensureProjectForOpenFiles*
+6: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+7: *ensureProjectForOpenFiles*
Before running Timeout callback:: count: 2
-7: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-8: *ensureProjectForOpenFiles*
+6: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+7: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
@@ -307,14 +304,14 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/ro
Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
Info seq [hh:mm:ss:mss] Files (4)
/a/lib/lib.d.ts Text-1 "/// \ninterface 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; }"
- /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts Text-1 "export class a { }"
+ /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts Text-1 "export class a { }"
/user/username/rootfolder/otherfolder/a/b/project/file1.ts SVC-1-0 "import a from \"file2\""
/user/username/rootfolder/otherfolder/a/b/project/file3.ts Text-2 "export class c { }export class d {}"
../../../../../../../a/lib/lib.d.ts
Default library for target 'es5'
- ../node_modules/file2/index.d.ts
+ ../node_modules/file2.d.ts
Imported via "file2" from file 'file1.ts'
file1.ts
Matched by default include pattern '**/*'
diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
index 8bf5b2fa32c09..dfce44d674316 100644
--- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
+++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
@@ -225,7 +225,7 @@ Info seq [hh:mm:ss:mss] event:
After running Timeout callback:: count: 0
Before running Timeout callback:: count: 0
-//// [/a/b/node_modules/file2/index.d.ts]
+//// [/a/b/node_modules/file2.d.ts]
export class a { }
diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
index f7318f353fc35..80f7a35419bb1 100644
--- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
+++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
@@ -246,15 +246,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/u
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Before running Timeout callback:: count: 1
-6: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
-//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts]
+5: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
+//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts]
export class a { }
@@ -290,12 +287,12 @@ Info seq [hh:mm:ss:mss] Running: /user/username/rootfolder/otherfolder/a/b/proj
Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*
After running Timeout callback:: count: 2
-7: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-8: *ensureProjectForOpenFiles*
+6: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+7: *ensureProjectForOpenFiles*
Before running Timeout callback:: count: 2
-7: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-8: *ensureProjectForOpenFiles*
+6: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
+7: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
@@ -311,14 +308,14 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/ro
Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
Info seq [hh:mm:ss:mss] Files (4)
/a/lib/lib.d.ts Text-1 "/// \ninterface 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; }"
- /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts Text-1 "export class a { }"
+ /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts Text-1 "export class a { }"
/user/username/rootfolder/otherfolder/a/b/project/file1.ts SVC-1-0 "import a from \"file2\""
/user/username/rootfolder/otherfolder/a/b/project/file3.ts Text-2 "export class c { }export class d {}"
../../../../../../../a/lib/lib.d.ts
Default library for target 'es5'
- ../node_modules/file2/index.d.ts
+ ../node_modules/file2.d.ts
Imported via "file2" from file 'file1.ts'
file1.ts
Matched by default include pattern '**/*'
diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
index c1fe153453fa9..d92a3680ba764 100644
--- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
+++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
@@ -227,7 +227,7 @@ After running Timeout callback:: count: 1
Before running Timeout callback:: count: 1
3: checkOne
-//// [/a/b/node_modules/file2/index.d.ts]
+//// [/a/b/node_modules/file2.d.ts]
export class a { }
diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
index 6bdcf67863e0b..ae5b9c4d331d5 100644
--- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
+++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
@@ -247,16 +247,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/u
Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info seq [hh:mm:ss:mss] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
+Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
Before running Timeout callback:: count: 2
3: checkOne
-7: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
-//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts]
+6: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
+//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts]
export class a { }
@@ -302,14 +299,14 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/ro
Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
Info seq [hh:mm:ss:mss] Files (4)
/a/lib/lib.d.ts Text-1 "/// \ninterface 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; }"
- /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts Text-1 "export class a { }"
+ /user/username/rootfolder/otherfolder/a/b/node_modules/file2.d.ts Text-1 "export class a { }"
/user/username/rootfolder/otherfolder/a/b/project/file1.ts SVC-1-0 "import a from \"file2\""
/user/username/rootfolder/otherfolder/a/b/project/file3.ts Text-2 "export class c { }export class d {}"
../../../../../../../a/lib/lib.d.ts
Default library for target 'es5'
- ../node_modules/file2/index.d.ts
+ ../node_modules/file2.d.ts
Imported via "file2" from file 'file1.ts'
file1.ts
Matched by default include pattern '**/*'
@@ -328,7 +325,7 @@ Info seq [hh:mm:ss:mss] event:
}
}
After running Timeout callback:: count: 1
-8: *ensureProjectForOpenFiles*
+7: *ensureProjectForOpenFiles*
PolledWatches::
/user/username/rootfolder/otherfolder/a/b/project/node_modules:
@@ -357,7 +354,7 @@ FsWatchesRecursive::
{}
Before running Timeout callback:: count: 1
-8: *ensureProjectForOpenFiles*
+7: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles*
Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles:
@@ -389,4 +386,4 @@ Info seq [hh:mm:ss:mss] event:
}
}
After running Timeout callback:: count: 1
-9: checkOne
+8: checkOne
From 407c24570b383f5f1557639bdcdc99f468ee0287 Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Wed, 10 May 2023 09:53:05 -0700
Subject: [PATCH 09/10] remove unused baselines
---
...he-session-and-project-is-at-root-level.js | 244 -----------
...ession-and-project-is-not-at-root-level.js | 347 ---------------
...oundUpdate-and-project-is-at-root-level.js | 273 ------------
...Update-and-project-is-not-at-root-level.js | 405 ------------------
...oundUpdate-and-project-is-at-root-level.js | 275 ------------
...Update-and-project-is-not-at-root-level.js | 396 -----------------
6 files changed, 1940 deletions(-)
delete mode 100644 tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js
delete mode 100644 tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js
delete mode 100644 tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
delete mode 100644 tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
delete mode 100644 tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
delete mode 100644 tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js
deleted file mode 100644
index a2f47b6de28ee..0000000000000
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js
+++ /dev/null
@@ -1,244 +0,0 @@
-Info 0 [00:00:19.000] Provided types map file "/a/lib/typesMap.json" doesn't exist
-Info 1 [00:00:20.000] request:
- {
- "command": "open",
- "arguments": {
- "file": "/a/b/project/file1.ts"
- },
- "seq": 1,
- "type": "request"
- }
-Before request
-//// [/a/b/project/file1.ts]
-import a from "file2"
-
-//// [/a/b/project/file3.ts]
-export class c { }
-
-//// [/a/lib/lib.d.ts]
-///
-interface Boolean {}
-interface Function {}
-interface CallableFunction {}
-interface NewableFunction {}
-interface IArguments {}
-interface Number { toExponential: any; }
-interface Object {}
-interface RegExp {}
-interface String { charAt: any; }
-interface Array { length: number; [n: number]: T; }
-
-//// [/a/b/project/tsconfig.json]
-{"compilerOptions":{"typeRoots":[]}}
-
-
-PolledWatches::
-
-FsWatches::
-
-FsWatchesRecursive::
-
-Info 2 [00:00:21.000] Search path: /a/b/project
-Info 3 [00:00:22.000] For info: /a/b/project/file1.ts :: Config file name: /a/b/project/tsconfig.json
-Info 4 [00:00:23.000] Creating configuration project /a/b/project/tsconfig.json
-Info 5 [00:00:24.000] FileWatcher:: Added:: WatchInfo: /a/b/project/tsconfig.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: Config file
-Info 6 [00:00:25.000] Config: /a/b/project/tsconfig.json : {
- "rootNames": [
- "/a/b/project/file1.ts",
- "/a/b/project/file3.ts"
- ],
- "options": {
- "typeRoots": [],
- "configFilePath": "/a/b/project/tsconfig.json"
- }
-}
-Info 7 [00:00:26.000] DirectoryWatcher:: Added:: WatchInfo: /a/b/project 1 undefined Config: /a/b/project/tsconfig.json WatchType: Wild card directory
-Info 8 [00:00:27.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/project 1 undefined Config: /a/b/project/tsconfig.json WatchType: Wild card directory
-Info 9 [00:00:28.000] FileWatcher:: Added:: WatchInfo: /a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 10 [00:00:29.000] Starting updateGraphWorker: Project: /a/b/project/tsconfig.json
-Info 11 [00:00:30.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
-Info 12 [00:00:31.000] DirectoryWatcher:: Added:: WatchInfo: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 13 [00:00:32.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 14 [00:00:33.000] Finishing updateGraphWorker: Project: /a/b/project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 15 [00:00:34.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 16 [00:00:35.000] Files (3)
- /a/lib/lib.d.ts
- /a/b/project/file1.ts
- /a/b/project/file3.ts
-
-
- ../../lib/lib.d.ts
- Default library for target 'es5'
- file1.ts
- Matched by default include pattern '**/*'
- file3.ts
- Matched by default include pattern '**/*'
-
-Info 17 [00:00:36.000] -----------------------------------------------
-Info 18 [00:00:37.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 18 [00:00:38.000] Files (3)
-
-Info 18 [00:00:39.000] -----------------------------------------------
-Info 18 [00:00:40.000] Open files:
-Info 18 [00:00:41.000] FileName: /a/b/project/file1.ts ProjectRootPath: undefined
-Info 18 [00:00:42.000] Projects: /a/b/project/tsconfig.json
-After request
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Info 18 [00:00:43.000] response:
- {
- "responseRequired": false
- }
-Info 19 [00:00:47.000] FileWatcher:: Triggered with /a/b/project/file3.ts 1:: WatchInfo: /a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 20 [00:00:48.000] Scheduled: /a/b/project/tsconfig.json
-Info 21 [00:00:49.000] Scheduled: *ensureProjectForOpenFiles*
-Info 22 [00:00:50.000] Elapsed:: *ms FileWatcher:: Triggered with /a/b/project/file3.ts 1:: WatchInfo: /a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Before checking timeout queue length (2) and running
-//// [/a/b/project/file3.ts]
-export class c { }export class d {}
-
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Info 23 [00:00:51.000] Running: /a/b/project/tsconfig.json
-Info 24 [00:00:52.000] Starting updateGraphWorker: Project: /a/b/project/tsconfig.json
-Info 25 [00:00:53.000] Finishing updateGraphWorker: Project: /a/b/project/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms
-Info 26 [00:00:54.000] Different program with same set of files
-Info 27 [00:00:55.000] Running: *ensureProjectForOpenFiles*
-Info 28 [00:00:56.000] Before ensureProjectForOpenFiles:
-Info 29 [00:00:57.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 29 [00:00:58.000] Files (3)
-
-Info 29 [00:00:59.000] -----------------------------------------------
-Info 29 [00:01:00.000] Open files:
-Info 29 [00:01:01.000] FileName: /a/b/project/file1.ts ProjectRootPath: undefined
-Info 29 [00:01:02.000] Projects: /a/b/project/tsconfig.json
-Info 29 [00:01:03.000] After ensureProjectForOpenFiles:
-Info 30 [00:01:04.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 30 [00:01:05.000] Files (3)
-
-Info 30 [00:01:06.000] -----------------------------------------------
-Info 30 [00:01:07.000] Open files:
-Info 30 [00:01:08.000] FileName: /a/b/project/file1.ts ProjectRootPath: undefined
-Info 30 [00:01:09.000] Projects: /a/b/project/tsconfig.json
-After checking timeout queue length (2) and running
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Before running timeout callbacks
-//// [/a/b/node_modules/file2/index.d.ts]
-export class a { }
-
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-After running timeout callbacks
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Before running timeout callbacks
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-After running timeout callbacks
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js
deleted file mode 100644
index a2ff131a88b2c..0000000000000
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js
+++ /dev/null
@@ -1,347 +0,0 @@
-Info 0 [00:00:29.000] Provided types map file "/a/lib/typesMap.json" doesn't exist
-Info 1 [00:00:30.000] request:
- {
- "command": "open",
- "arguments": {
- "file": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts"
- },
- "seq": 1,
- "type": "request"
- }
-Before request
-//// [/user/username/rootfolder/otherfolder/a/b/project/file1.ts]
-import a from "file2"
-
-//// [/user/username/rootfolder/otherfolder/a/b/project/file3.ts]
-export class c { }
-
-//// [/a/lib/lib.d.ts]
-///
-interface Boolean {}
-interface Function {}
-interface CallableFunction {}
-interface NewableFunction {}
-interface IArguments {}
-interface Number { toExponential: any; }
-interface Object {}
-interface RegExp {}
-interface String { charAt: any; }
-interface Array { length: number; [n: number]: T; }
-
-//// [/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json]
-{"compilerOptions":{"typeRoots":[]}}
-
-
-PolledWatches::
-
-FsWatches::
-
-FsWatchesRecursive::
-
-Info 2 [00:00:31.000] Search path: /user/username/rootfolder/otherfolder/a/b/project
-Info 3 [00:00:32.000] For info: /user/username/rootfolder/otherfolder/a/b/project/file1.ts :: Config file name: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 4 [00:00:33.000] Creating configuration project /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 5 [00:00:34.000] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Config file
-Info 6 [00:00:35.000] Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json : {
- "rootNames": [
- "/user/username/rootfolder/otherfolder/a/b/project/file1.ts",
- "/user/username/rootfolder/otherfolder/a/b/project/file3.ts"
- ],
- "options": {
- "typeRoots": [],
- "configFilePath": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json"
- }
-}
-Info 7 [00:00:36.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project 1 undefined Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Wild card directory
-Info 8 [00:00:37.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project 1 undefined Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Wild card directory
-Info 9 [00:00:38.000] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 10 [00:00:39.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 11 [00:00:40.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
-Info 12 [00:00:41.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 13 [00:00:42.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 14 [00:00:43.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 15 [00:00:44.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 16 [00:00:45.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 17 [00:00:46.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 18 [00:00:47.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 19 [00:00:48.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 20 [00:00:49.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 21 [00:00:50.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 22 [00:00:51.000] Files (3)
- /a/lib/lib.d.ts
- /user/username/rootfolder/otherfolder/a/b/project/file1.ts
- /user/username/rootfolder/otherfolder/a/b/project/file3.ts
-
-
- ../../../../../../../a/lib/lib.d.ts
- Default library for target 'es5'
- file1.ts
- Matched by default include pattern '**/*'
- file3.ts
- Matched by default include pattern '**/*'
-
-Info 23 [00:00:52.000] -----------------------------------------------
-Info 24 [00:00:53.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 24 [00:00:54.000] Files (3)
-
-Info 24 [00:00:55.000] -----------------------------------------------
-Info 24 [00:00:56.000] Open files:
-Info 24 [00:00:57.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 24 [00:00:58.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-After request
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Info 24 [00:00:59.000] response:
- {
- "responseRequired": false
- }
-Info 25 [00:01:03.000] FileWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/project/file3.ts 1:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 26 [00:01:04.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 27 [00:01:05.000] Scheduled: *ensureProjectForOpenFiles*
-Info 28 [00:01:06.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/project/file3.ts 1:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Before checking timeout queue length (2) and running
-//// [/user/username/rootfolder/otherfolder/a/b/project/file3.ts]
-export class c { }export class d {}
-
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Info 29 [00:01:07.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 30 [00:01:08.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 31 [00:01:09.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms
-Info 32 [00:01:10.000] Different program with same set of files
-Info 33 [00:01:11.000] Running: *ensureProjectForOpenFiles*
-Info 34 [00:01:12.000] Before ensureProjectForOpenFiles:
-Info 35 [00:01:13.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 35 [00:01:14.000] Files (3)
-
-Info 35 [00:01:15.000] -----------------------------------------------
-Info 35 [00:01:16.000] Open files:
-Info 35 [00:01:17.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 35 [00:01:18.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 35 [00:01:19.000] After ensureProjectForOpenFiles:
-Info 36 [00:01:20.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 36 [00:01:21.000] Files (3)
-
-Info 36 [00:01:22.000] -----------------------------------------------
-Info 36 [00:01:23.000] Open files:
-Info 36 [00:01:24.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 36 [00:01:25.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-After checking timeout queue length (2) and running
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Info 36 [00:01:29.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 37 [00:01:30.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
-Info 38 [00:01:31.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 39 [00:01:32.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 40 [00:01:33.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 41 [00:01:34.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 42 [00:01:37.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 43 [00:01:38.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 44 [00:01:39.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 45 [00:01:42.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 46 [00:01:43.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 47 [00:01:44.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Before running timeout callbacks
-//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts]
-export class a { }
-
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Info 48 [00:01:45.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
-Info 49 [00:01:46.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 50 [00:01:47.000] Scheduled: *ensureProjectForOpenFiles*
-After running timeout callbacks
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Before running timeout callbacks
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Info 51 [00:01:48.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 52 [00:01:49.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 53 [00:01:50.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 54 [00:01:51.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 55 [00:01:52.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 56 [00:01:53.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 57 [00:01:54.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 58 [00:01:55.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 59 [00:01:56.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
-Info 60 [00:01:57.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 61 [00:01:58.000] Files (4)
- /a/lib/lib.d.ts
- /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts
- /user/username/rootfolder/otherfolder/a/b/project/file1.ts
- /user/username/rootfolder/otherfolder/a/b/project/file3.ts
-
-
- ../../../../../../../a/lib/lib.d.ts
- Default library for target 'es5'
- ../node_modules/file2/index.d.ts
- Imported via "file2" from file 'file1.ts'
- file1.ts
- Matched by default include pattern '**/*'
- file3.ts
- Matched by default include pattern '**/*'
-
-Info 62 [00:01:59.000] -----------------------------------------------
-Info 63 [00:02:00.000] Running: *ensureProjectForOpenFiles*
-Info 64 [00:02:01.000] Before ensureProjectForOpenFiles:
-Info 65 [00:02:02.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 65 [00:02:03.000] Files (4)
-
-Info 65 [00:02:04.000] -----------------------------------------------
-Info 65 [00:02:05.000] Open files:
-Info 65 [00:02:06.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 65 [00:02:07.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 65 [00:02:08.000] After ensureProjectForOpenFiles:
-Info 66 [00:02:09.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 66 [00:02:10.000] Files (4)
-
-Info 66 [00:02:11.000] -----------------------------------------------
-Info 66 [00:02:12.000] Open files:
-Info 66 [00:02:13.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 66 [00:02:14.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-After running timeout callbacks
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
deleted file mode 100644
index dc22b31cc4e6f..0000000000000
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
+++ /dev/null
@@ -1,273 +0,0 @@
-Info 0 [00:00:19.000] Provided types map file "/a/lib/typesMap.json" doesn't exist
-Info 1 [00:00:20.000] request:
- {
- "command": "open",
- "arguments": {
- "file": "/a/b/project/file1.ts"
- },
- "seq": 1,
- "type": "request"
- }
-Before request
-//// [/a/b/project/file1.ts]
-import a from "file2"
-
-//// [/a/b/project/file3.ts]
-export class c { }
-
-//// [/a/lib/lib.d.ts]
-///
-interface Boolean {}
-interface Function {}
-interface CallableFunction {}
-interface NewableFunction {}
-interface IArguments {}
-interface Number { toExponential: any; }
-interface Object {}
-interface RegExp {}
-interface String { charAt: any; }
-interface Array { length: number; [n: number]: T; }
-
-//// [/a/b/project/tsconfig.json]
-{"compilerOptions":{"typeRoots":[]}}
-
-
-PolledWatches::
-
-FsWatches::
-
-FsWatchesRecursive::
-
-Info 2 [00:00:21.000] Search path: /a/b/project
-Info 3 [00:00:22.000] For info: /a/b/project/file1.ts :: Config file name: /a/b/project/tsconfig.json
-Info 4 [00:00:23.000] Creating configuration project /a/b/project/tsconfig.json
-Info 5 [00:00:24.000] FileWatcher:: Added:: WatchInfo: /a/b/project/tsconfig.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: Config file
-Info 6 [00:00:25.000] event:
- {"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/a/b/project/tsconfig.json","reason":"Creating possible configured project for /a/b/project/file1.ts to open"}}
-Info 7 [00:00:26.000] Config: /a/b/project/tsconfig.json : {
- "rootNames": [
- "/a/b/project/file1.ts",
- "/a/b/project/file3.ts"
- ],
- "options": {
- "typeRoots": [],
- "configFilePath": "/a/b/project/tsconfig.json"
- }
-}
-Info 8 [00:00:27.000] DirectoryWatcher:: Added:: WatchInfo: /a/b/project 1 undefined Config: /a/b/project/tsconfig.json WatchType: Wild card directory
-Info 9 [00:00:28.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/project 1 undefined Config: /a/b/project/tsconfig.json WatchType: Wild card directory
-Info 10 [00:00:29.000] FileWatcher:: Added:: WatchInfo: /a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 11 [00:00:30.000] Starting updateGraphWorker: Project: /a/b/project/tsconfig.json
-Info 12 [00:00:31.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
-Info 13 [00:00:32.000] DirectoryWatcher:: Added:: WatchInfo: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 14 [00:00:33.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 15 [00:00:34.000] Finishing updateGraphWorker: Project: /a/b/project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 16 [00:00:35.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 17 [00:00:36.000] Files (3)
- /a/lib/lib.d.ts
- /a/b/project/file1.ts
- /a/b/project/file3.ts
-
-
- ../../lib/lib.d.ts
- Default library for target 'es5'
- file1.ts
- Matched by default include pattern '**/*'
- file3.ts
- Matched by default include pattern '**/*'
-
-Info 18 [00:00:37.000] -----------------------------------------------
-Info 19 [00:00:38.000] event:
- {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/a/b/project/tsconfig.json"}}
-Info 20 [00:00:39.000] event:
- {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":2,"tsSize":39,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{"typeRoots":[]},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":false,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}}
-Info 21 [00:00:40.000] event:
- {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/a/b/project/file1.ts","configFile":"/a/b/project/tsconfig.json","diagnostics":[]}}
-Info 22 [00:00:41.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 22 [00:00:42.000] Files (3)
-
-Info 22 [00:00:43.000] -----------------------------------------------
-Info 22 [00:00:44.000] Open files:
-Info 22 [00:00:45.000] FileName: /a/b/project/file1.ts ProjectRootPath: undefined
-Info 22 [00:00:46.000] Projects: /a/b/project/tsconfig.json
-After request
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Info 22 [00:00:47.000] response:
- {
- "responseRequired": false
- }
-Info 23 [00:00:51.000] FileWatcher:: Triggered with /a/b/project/file3.ts 1:: WatchInfo: /a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 24 [00:00:52.000] Scheduled: /a/b/project/tsconfig.json
-Info 25 [00:00:53.000] Scheduled: *ensureProjectForOpenFiles*
-Info 26 [00:00:54.000] Elapsed:: *ms FileWatcher:: Triggered with /a/b/project/file3.ts 1:: WatchInfo: /a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Before checking timeout queue length (2) and running
-//// [/a/b/project/file3.ts]
-export class c { }export class d {}
-
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Info 27 [00:00:55.000] Running: /a/b/project/tsconfig.json
-Info 28 [00:00:56.000] Starting updateGraphWorker: Project: /a/b/project/tsconfig.json
-Info 29 [00:00:57.000] Finishing updateGraphWorker: Project: /a/b/project/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms
-Info 30 [00:00:58.000] Different program with same set of files
-Info 31 [00:00:59.000] Running: *ensureProjectForOpenFiles*
-Info 32 [00:01:00.000] Before ensureProjectForOpenFiles:
-Info 33 [00:01:01.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 33 [00:01:02.000] Files (3)
-
-Info 33 [00:01:03.000] -----------------------------------------------
-Info 33 [00:01:04.000] Open files:
-Info 33 [00:01:05.000] FileName: /a/b/project/file1.ts ProjectRootPath: undefined
-Info 33 [00:01:06.000] Projects: /a/b/project/tsconfig.json
-Info 33 [00:01:07.000] After ensureProjectForOpenFiles:
-Info 34 [00:01:08.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 34 [00:01:09.000] Files (3)
-
-Info 34 [00:01:10.000] -----------------------------------------------
-Info 34 [00:01:11.000] Open files:
-Info 34 [00:01:12.000] FileName: /a/b/project/file1.ts ProjectRootPath: undefined
-Info 34 [00:01:13.000] Projects: /a/b/project/tsconfig.json
-Info 34 [00:01:14.000] got projects updated in background, updating diagnostics for /a/b/project/file1.ts
-Info 35 [00:01:15.000] event:
- {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/a/b/project/file1.ts"]}}
-After checking timeout queue length (2) and running
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Checking timeout queue length: 0
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Before running timeout callbacks
-//// [/a/b/node_modules/file2/index.d.ts]
-export class a { }
-
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-After running timeout callbacks
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Before running timeout callbacks
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-After running timeout callbacks
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
deleted file mode 100644
index a434bc69729c3..0000000000000
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
+++ /dev/null
@@ -1,405 +0,0 @@
-Info 0 [00:00:29.000] Provided types map file "/a/lib/typesMap.json" doesn't exist
-Info 1 [00:00:30.000] request:
- {
- "command": "open",
- "arguments": {
- "file": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts"
- },
- "seq": 1,
- "type": "request"
- }
-Before request
-//// [/user/username/rootfolder/otherfolder/a/b/project/file1.ts]
-import a from "file2"
-
-//// [/user/username/rootfolder/otherfolder/a/b/project/file3.ts]
-export class c { }
-
-//// [/a/lib/lib.d.ts]
-///
-interface Boolean {}
-interface Function {}
-interface CallableFunction {}
-interface NewableFunction {}
-interface IArguments {}
-interface Number { toExponential: any; }
-interface Object {}
-interface RegExp {}
-interface String { charAt: any; }
-interface Array { length: number; [n: number]: T; }
-
-//// [/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json]
-{"compilerOptions":{"typeRoots":[]}}
-
-
-PolledWatches::
-
-FsWatches::
-
-FsWatchesRecursive::
-
-Info 2 [00:00:31.000] Search path: /user/username/rootfolder/otherfolder/a/b/project
-Info 3 [00:00:32.000] For info: /user/username/rootfolder/otherfolder/a/b/project/file1.ts :: Config file name: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 4 [00:00:33.000] Creating configuration project /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 5 [00:00:34.000] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Config file
-Info 6 [00:00:35.000] event:
- {"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json","reason":"Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open"}}
-Info 7 [00:00:36.000] Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json : {
- "rootNames": [
- "/user/username/rootfolder/otherfolder/a/b/project/file1.ts",
- "/user/username/rootfolder/otherfolder/a/b/project/file3.ts"
- ],
- "options": {
- "typeRoots": [],
- "configFilePath": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json"
- }
-}
-Info 8 [00:00:37.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project 1 undefined Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Wild card directory
-Info 9 [00:00:38.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project 1 undefined Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Wild card directory
-Info 10 [00:00:39.000] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 11 [00:00:40.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 12 [00:00:41.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
-Info 13 [00:00:42.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 14 [00:00:43.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 15 [00:00:44.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 16 [00:00:45.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 17 [00:00:46.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 18 [00:00:47.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 19 [00:00:48.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 20 [00:00:49.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 21 [00:00:50.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 22 [00:00:51.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 23 [00:00:52.000] Files (3)
- /a/lib/lib.d.ts
- /user/username/rootfolder/otherfolder/a/b/project/file1.ts
- /user/username/rootfolder/otherfolder/a/b/project/file3.ts
-
-
- ../../../../../../../a/lib/lib.d.ts
- Default library for target 'es5'
- file1.ts
- Matched by default include pattern '**/*'
- file3.ts
- Matched by default include pattern '**/*'
-
-Info 24 [00:00:53.000] -----------------------------------------------
-Info 25 [00:00:54.000] event:
- {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json"}}
-Info 26 [00:00:55.000] event:
- {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":2,"tsSize":39,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{"typeRoots":[]},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":false,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}}
-Info 27 [00:00:56.000] event:
- {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/user/username/rootfolder/otherfolder/a/b/project/file1.ts","configFile":"/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json","diagnostics":[]}}
-Info 28 [00:00:57.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 28 [00:00:58.000] Files (3)
-
-Info 28 [00:00:59.000] -----------------------------------------------
-Info 28 [00:01:00.000] Open files:
-Info 28 [00:01:01.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 28 [00:01:02.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-After request
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Info 28 [00:01:03.000] response:
- {
- "responseRequired": false
- }
-Info 29 [00:01:07.000] FileWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/project/file3.ts 1:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 30 [00:01:08.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 31 [00:01:09.000] Scheduled: *ensureProjectForOpenFiles*
-Info 32 [00:01:10.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/project/file3.ts 1:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Before checking timeout queue length (2) and running
-//// [/user/username/rootfolder/otherfolder/a/b/project/file3.ts]
-export class c { }export class d {}
-
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Info 33 [00:01:11.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 34 [00:01:12.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 35 [00:01:13.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms
-Info 36 [00:01:14.000] Different program with same set of files
-Info 37 [00:01:15.000] Running: *ensureProjectForOpenFiles*
-Info 38 [00:01:16.000] Before ensureProjectForOpenFiles:
-Info 39 [00:01:17.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 39 [00:01:18.000] Files (3)
-
-Info 39 [00:01:19.000] -----------------------------------------------
-Info 39 [00:01:20.000] Open files:
-Info 39 [00:01:21.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 39 [00:01:22.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 39 [00:01:23.000] After ensureProjectForOpenFiles:
-Info 40 [00:01:24.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 40 [00:01:25.000] Files (3)
-
-Info 40 [00:01:26.000] -----------------------------------------------
-Info 40 [00:01:27.000] Open files:
-Info 40 [00:01:28.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 40 [00:01:29.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 40 [00:01:30.000] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts
-Info 41 [00:01:31.000] event:
- {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/rootfolder/otherfolder/a/b/project/file1.ts"]}}
-After checking timeout queue length (2) and running
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Checking timeout queue length: 0
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Info 42 [00:01:35.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 43 [00:01:36.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
-Info 44 [00:01:37.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 45 [00:01:38.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 46 [00:01:39.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 47 [00:01:40.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 48 [00:01:43.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 49 [00:01:44.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 50 [00:01:45.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 51 [00:01:48.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 52 [00:01:49.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 53 [00:01:50.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Before running timeout callbacks
-//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts]
-export class a { }
-
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Info 54 [00:01:51.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
-Info 55 [00:01:52.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 56 [00:01:53.000] Scheduled: *ensureProjectForOpenFiles*
-After running timeout callbacks
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Before running timeout callbacks
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Info 57 [00:01:54.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 58 [00:01:55.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 59 [00:01:56.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 60 [00:01:57.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 61 [00:01:58.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 62 [00:01:59.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 63 [00:02:00.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 64 [00:02:01.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 65 [00:02:02.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
-Info 66 [00:02:03.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 67 [00:02:04.000] Files (4)
- /a/lib/lib.d.ts
- /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts
- /user/username/rootfolder/otherfolder/a/b/project/file1.ts
- /user/username/rootfolder/otherfolder/a/b/project/file3.ts
-
-
- ../../../../../../../a/lib/lib.d.ts
- Default library for target 'es5'
- ../node_modules/file2/index.d.ts
- Imported via "file2" from file 'file1.ts'
- file1.ts
- Matched by default include pattern '**/*'
- file3.ts
- Matched by default include pattern '**/*'
-
-Info 68 [00:02:05.000] -----------------------------------------------
-Info 69 [00:02:06.000] Running: *ensureProjectForOpenFiles*
-Info 70 [00:02:07.000] Before ensureProjectForOpenFiles:
-Info 71 [00:02:08.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 71 [00:02:09.000] Files (4)
-
-Info 71 [00:02:10.000] -----------------------------------------------
-Info 71 [00:02:11.000] Open files:
-Info 71 [00:02:12.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 71 [00:02:13.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 71 [00:02:14.000] After ensureProjectForOpenFiles:
-Info 72 [00:02:15.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 72 [00:02:16.000] Files (4)
-
-Info 72 [00:02:17.000] -----------------------------------------------
-Info 72 [00:02:18.000] Open files:
-Info 72 [00:02:19.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 72 [00:02:20.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 72 [00:02:21.000] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts
-Info 73 [00:02:22.000] event:
- {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/rootfolder/otherfolder/a/b/project/file1.ts"]}}
-After running timeout callbacks
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Checking timeout queue length: 0
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
deleted file mode 100644
index fe962b76ae188..0000000000000
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js
+++ /dev/null
@@ -1,275 +0,0 @@
-Info 0 [00:00:19.000] Provided types map file "/a/lib/typesMap.json" doesn't exist
-Info 1 [00:00:20.000] request:
- {
- "command": "open",
- "arguments": {
- "file": "/a/b/project/file1.ts"
- },
- "seq": 1,
- "type": "request"
- }
-Before request
-//// [/a/b/project/file1.ts]
-import a from "file2"
-
-//// [/a/b/project/file3.ts]
-export class c { }
-
-//// [/a/lib/lib.d.ts]
-///
-interface Boolean {}
-interface Function {}
-interface CallableFunction {}
-interface NewableFunction {}
-interface IArguments {}
-interface Number { toExponential: any; }
-interface Object {}
-interface RegExp {}
-interface String { charAt: any; }
-interface Array { length: number; [n: number]: T; }
-
-//// [/a/b/project/tsconfig.json]
-{"compilerOptions":{"typeRoots":[]}}
-
-
-PolledWatches::
-
-FsWatches::
-
-FsWatchesRecursive::
-
-Info 2 [00:00:21.000] Search path: /a/b/project
-Info 3 [00:00:22.000] For info: /a/b/project/file1.ts :: Config file name: /a/b/project/tsconfig.json
-Info 4 [00:00:23.000] Creating configuration project /a/b/project/tsconfig.json
-Info 5 [00:00:24.000] FileWatcher:: Added:: WatchInfo: /a/b/project/tsconfig.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: Config file
-Info 6 [00:00:25.000] event:
- {"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/a/b/project/tsconfig.json","reason":"Creating possible configured project for /a/b/project/file1.ts to open"}}
-Info 7 [00:00:26.000] Config: /a/b/project/tsconfig.json : {
- "rootNames": [
- "/a/b/project/file1.ts",
- "/a/b/project/file3.ts"
- ],
- "options": {
- "typeRoots": [],
- "configFilePath": "/a/b/project/tsconfig.json"
- }
-}
-Info 8 [00:00:27.000] DirectoryWatcher:: Added:: WatchInfo: /a/b/project 1 undefined Config: /a/b/project/tsconfig.json WatchType: Wild card directory
-Info 9 [00:00:28.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/project 1 undefined Config: /a/b/project/tsconfig.json WatchType: Wild card directory
-Info 10 [00:00:29.000] FileWatcher:: Added:: WatchInfo: /a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 11 [00:00:30.000] Starting updateGraphWorker: Project: /a/b/project/tsconfig.json
-Info 12 [00:00:31.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
-Info 13 [00:00:32.000] DirectoryWatcher:: Added:: WatchInfo: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 14 [00:00:33.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/project/node_modules 1 undefined Project: /a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 15 [00:00:34.000] Finishing updateGraphWorker: Project: /a/b/project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 16 [00:00:35.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 17 [00:00:36.000] Files (3)
- /a/lib/lib.d.ts
- /a/b/project/file1.ts
- /a/b/project/file3.ts
-
-
- ../../lib/lib.d.ts
- Default library for target 'es5'
- file1.ts
- Matched by default include pattern '**/*'
- file3.ts
- Matched by default include pattern '**/*'
-
-Info 18 [00:00:37.000] -----------------------------------------------
-Info 19 [00:00:38.000] event:
- {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/a/b/project/tsconfig.json"}}
-Info 20 [00:00:39.000] event:
- {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":2,"tsSize":39,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{"typeRoots":[]},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":false,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}}
-Info 21 [00:00:40.000] event:
- {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/a/b/project/file1.ts","configFile":"/a/b/project/tsconfig.json","diagnostics":[]}}
-Info 22 [00:00:41.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 22 [00:00:42.000] Files (3)
-
-Info 22 [00:00:43.000] -----------------------------------------------
-Info 22 [00:00:44.000] Open files:
-Info 22 [00:00:45.000] FileName: /a/b/project/file1.ts ProjectRootPath: undefined
-Info 22 [00:00:46.000] Projects: /a/b/project/tsconfig.json
-After request
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Info 22 [00:00:47.000] response:
- {
- "responseRequired": false
- }
-Info 23 [00:00:51.000] FileWatcher:: Triggered with /a/b/project/file3.ts 1:: WatchInfo: /a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 24 [00:00:52.000] Scheduled: /a/b/project/tsconfig.json
-Info 25 [00:00:53.000] Scheduled: *ensureProjectForOpenFiles*
-Info 26 [00:00:54.000] Elapsed:: *ms FileWatcher:: Triggered with /a/b/project/file3.ts 1:: WatchInfo: /a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Before checking timeout queue length (2) and running
-//// [/a/b/project/file3.ts]
-export class c { }export class d {}
-
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Info 27 [00:00:55.000] Running: /a/b/project/tsconfig.json
-Info 28 [00:00:56.000] Starting updateGraphWorker: Project: /a/b/project/tsconfig.json
-Info 29 [00:00:57.000] Finishing updateGraphWorker: Project: /a/b/project/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms
-Info 30 [00:00:58.000] Different program with same set of files
-Info 31 [00:00:59.000] Running: *ensureProjectForOpenFiles*
-Info 32 [00:01:00.000] Before ensureProjectForOpenFiles:
-Info 33 [00:01:01.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 33 [00:01:02.000] Files (3)
-
-Info 33 [00:01:03.000] -----------------------------------------------
-Info 33 [00:01:04.000] Open files:
-Info 33 [00:01:05.000] FileName: /a/b/project/file1.ts ProjectRootPath: undefined
-Info 33 [00:01:06.000] Projects: /a/b/project/tsconfig.json
-Info 33 [00:01:07.000] After ensureProjectForOpenFiles:
-Info 34 [00:01:08.000] Project '/a/b/project/tsconfig.json' (Configured)
-Info 34 [00:01:09.000] Files (3)
-
-Info 34 [00:01:10.000] -----------------------------------------------
-Info 34 [00:01:11.000] Open files:
-Info 34 [00:01:12.000] FileName: /a/b/project/file1.ts ProjectRootPath: undefined
-Info 34 [00:01:13.000] Projects: /a/b/project/tsconfig.json
-Info 34 [00:01:14.000] got projects updated in background, updating diagnostics for /a/b/project/file1.ts
-Info 35 [00:01:15.000] event:
- {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/a/b/project/file1.ts"]}}
-After checking timeout queue length (2) and running
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Checking timeout queue length: 1
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Before running timeout callbacks
-//// [/a/b/node_modules/file2/index.d.ts]
-export class a { }
-
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Info 36 [00:01:23.000] event:
- {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/a/b/project/file1.ts","diagnostics":[]}}
-After running timeout callbacks
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-Before running timeout callbacks
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
-
-After running timeout callbacks
-
-PolledWatches::
-/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/a/b/project/tsconfig.json:
- {}
-/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/a/b/project:
- {}
diff --git a/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
deleted file mode 100644
index 5a37bab0b767c..0000000000000
--- a/tests/baselines/reference/tsserver/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js
+++ /dev/null
@@ -1,396 +0,0 @@
-Info 0 [00:00:29.000] Provided types map file "/a/lib/typesMap.json" doesn't exist
-Info 1 [00:00:30.000] request:
- {
- "command": "open",
- "arguments": {
- "file": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts"
- },
- "seq": 1,
- "type": "request"
- }
-Before request
-//// [/user/username/rootfolder/otherfolder/a/b/project/file1.ts]
-import a from "file2"
-
-//// [/user/username/rootfolder/otherfolder/a/b/project/file3.ts]
-export class c { }
-
-//// [/a/lib/lib.d.ts]
-///
-interface Boolean {}
-interface Function {}
-interface CallableFunction {}
-interface NewableFunction {}
-interface IArguments {}
-interface Number { toExponential: any; }
-interface Object {}
-interface RegExp {}
-interface String { charAt: any; }
-interface Array { length: number; [n: number]: T; }
-
-//// [/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json]
-{"compilerOptions":{"typeRoots":[]}}
-
-
-PolledWatches::
-
-FsWatches::
-
-FsWatchesRecursive::
-
-Info 2 [00:00:31.000] Search path: /user/username/rootfolder/otherfolder/a/b/project
-Info 3 [00:00:32.000] For info: /user/username/rootfolder/otherfolder/a/b/project/file1.ts :: Config file name: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 4 [00:00:33.000] Creating configuration project /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 5 [00:00:34.000] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Config file
-Info 6 [00:00:35.000] event:
- {"seq":0,"type":"event","event":"projectLoadingStart","body":{"projectName":"/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json","reason":"Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open"}}
-Info 7 [00:00:36.000] Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json : {
- "rootNames": [
- "/user/username/rootfolder/otherfolder/a/b/project/file1.ts",
- "/user/username/rootfolder/otherfolder/a/b/project/file3.ts"
- ],
- "options": {
- "typeRoots": [],
- "configFilePath": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json"
- }
-}
-Info 8 [00:00:37.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project 1 undefined Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Wild card directory
-Info 9 [00:00:38.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project 1 undefined Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Wild card directory
-Info 10 [00:00:39.000] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 11 [00:00:40.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 12 [00:00:41.000] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info
-Info 13 [00:00:42.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 14 [00:00:43.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 15 [00:00:44.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 16 [00:00:45.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 17 [00:00:46.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 18 [00:00:47.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 19 [00:00:48.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 20 [00:00:49.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 21 [00:00:50.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms
-Info 22 [00:00:51.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 23 [00:00:52.000] Files (3)
- /a/lib/lib.d.ts
- /user/username/rootfolder/otherfolder/a/b/project/file1.ts
- /user/username/rootfolder/otherfolder/a/b/project/file3.ts
-
-
- ../../../../../../../a/lib/lib.d.ts
- Default library for target 'es5'
- file1.ts
- Matched by default include pattern '**/*'
- file3.ts
- Matched by default include pattern '**/*'
-
-Info 24 [00:00:53.000] -----------------------------------------------
-Info 25 [00:00:54.000] event:
- {"seq":0,"type":"event","event":"projectLoadingFinish","body":{"projectName":"/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json"}}
-Info 26 [00:00:55.000] event:
- {"seq":0,"type":"event","event":"telemetry","body":{"telemetryEventName":"projectInfo","payload":{"projectId":"79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c","fileStats":{"js":0,"jsSize":0,"jsx":0,"jsxSize":0,"ts":2,"tsSize":39,"tsx":0,"tsxSize":0,"dts":1,"dtsSize":334,"deferred":0,"deferredSize":0},"compilerOptions":{"typeRoots":[]},"typeAcquisition":{"enable":false,"include":false,"exclude":false},"extends":false,"files":false,"include":false,"exclude":false,"compileOnSave":false,"configFileName":"tsconfig.json","projectType":"configured","languageServiceEnabled":true,"version":"FakeVersion"}}}
-Info 27 [00:00:56.000] event:
- {"seq":0,"type":"event","event":"configFileDiag","body":{"triggerFile":"/user/username/rootfolder/otherfolder/a/b/project/file1.ts","configFile":"/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json","diagnostics":[]}}
-Info 28 [00:00:57.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 28 [00:00:58.000] Files (3)
-
-Info 28 [00:00:59.000] -----------------------------------------------
-Info 28 [00:01:00.000] Open files:
-Info 28 [00:01:01.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 28 [00:01:02.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-After request
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Info 28 [00:01:03.000] response:
- {
- "responseRequired": false
- }
-Info 29 [00:01:07.000] FileWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/project/file3.ts 1:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Info 30 [00:01:08.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 31 [00:01:09.000] Scheduled: *ensureProjectForOpenFiles*
-Info 32 [00:01:10.000] Elapsed:: *ms FileWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/project/file3.ts 1:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/file3.ts 500 undefined WatchType: Closed Script info
-Before checking timeout queue length (2) and running
-//// [/user/username/rootfolder/otherfolder/a/b/project/file3.ts]
-export class c { }export class d {}
-
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Info 33 [00:01:11.000] Running: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 34 [00:01:12.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 35 [00:01:13.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms
-Info 36 [00:01:14.000] Different program with same set of files
-Info 37 [00:01:15.000] Running: *ensureProjectForOpenFiles*
-Info 38 [00:01:16.000] Before ensureProjectForOpenFiles:
-Info 39 [00:01:17.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 39 [00:01:18.000] Files (3)
-
-Info 39 [00:01:19.000] -----------------------------------------------
-Info 39 [00:01:20.000] Open files:
-Info 39 [00:01:21.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 39 [00:01:22.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 39 [00:01:23.000] After ensureProjectForOpenFiles:
-Info 40 [00:01:24.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 40 [00:01:25.000] Files (3)
-
-Info 40 [00:01:26.000] -----------------------------------------------
-Info 40 [00:01:27.000] Open files:
-Info 40 [00:01:28.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 40 [00:01:29.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 40 [00:01:30.000] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts
-Info 41 [00:01:31.000] event:
- {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/rootfolder/otherfolder/a/b/project/file1.ts"]}}
-After checking timeout queue length (2) and running
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Checking timeout queue length: 1
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-
-Info 42 [00:01:35.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 43 [00:01:36.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation
-Info 44 [00:01:37.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 45 [00:01:38.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 46 [00:01:39.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 47 [00:01:40.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 48 [00:01:43.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 49 [00:01:44.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 50 [00:01:45.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2 :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 51 [00:01:48.000] DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 52 [00:01:49.000] Scheduled: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one
-Info 53 [00:01:50.000] Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts :: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Before running timeout callbacks
-//// [/user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts]
-export class a { }
-
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/a/node_modules:
- {"pollingInterval":500}
-/user/username/rootfolder/otherfolder/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Info 54 [00:01:51.000] Scheduled: *ensureProjectForOpenFiles*
-Info 55 [00:01:52.000] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 56 [00:01:53.000] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 57 [00:01:54.000] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
-Info 58 [00:01:55.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 59 [00:01:56.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 60 [00:01:57.000] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 61 [00:01:58.000] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Failed Lookup Locations
-Info 62 [00:01:59.000] Finishing updateGraphWorker: Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Version: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms
-Info 63 [00:02:00.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 64 [00:02:01.000] Files (4)
- /a/lib/lib.d.ts
- /user/username/rootfolder/otherfolder/a/b/node_modules/file2/index.d.ts
- /user/username/rootfolder/otherfolder/a/b/project/file1.ts
- /user/username/rootfolder/otherfolder/a/b/project/file3.ts
-
-
- ../../../../../../../a/lib/lib.d.ts
- Default library for target 'es5'
- ../node_modules/file2/index.d.ts
- Imported via "file2" from file 'file1.ts'
- file1.ts
- Matched by default include pattern '**/*'
- file3.ts
- Matched by default include pattern '**/*'
-
-Info 65 [00:02:02.000] -----------------------------------------------
-Info 66 [00:02:03.000] event:
- {"seq":0,"type":"event","event":"syntaxDiag","body":{"file":"/user/username/rootfolder/otherfolder/a/b/project/file1.ts","diagnostics":[]}}
-After running timeout callbacks
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Before running timeout callbacks
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Info 67 [00:02:04.000] Running: *ensureProjectForOpenFiles*
-Info 68 [00:02:05.000] Before ensureProjectForOpenFiles:
-Info 69 [00:02:06.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 69 [00:02:07.000] Files (4)
-
-Info 69 [00:02:08.000] -----------------------------------------------
-Info 69 [00:02:09.000] Open files:
-Info 69 [00:02:10.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 69 [00:02:11.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 69 [00:02:12.000] After ensureProjectForOpenFiles:
-Info 70 [00:02:13.000] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured)
-Info 70 [00:02:14.000] Files (4)
-
-Info 70 [00:02:15.000] -----------------------------------------------
-Info 70 [00:02:16.000] Open files:
-Info 70 [00:02:17.000] FileName: /user/username/rootfolder/otherfolder/a/b/project/file1.ts ProjectRootPath: undefined
-Info 70 [00:02:18.000] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json
-Info 70 [00:02:19.000] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts
-Info 71 [00:02:20.000] event:
- {"seq":0,"type":"event","event":"projectsUpdatedInBackground","body":{"openFiles":["/user/username/rootfolder/otherfolder/a/b/project/file1.ts"]}}
-After running timeout callbacks
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
-
-Checking timeout queue length: 1
-
-PolledWatches::
-/user/username/rootfolder/otherfolder/a/b/project/node_modules:
- {"pollingInterval":500}
-
-FsWatches::
-/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json:
- {}
-/user/username/rootfolder/otherfolder/a/b/project/file3.ts:
- {}
-/a/lib/lib.d.ts:
- {}
-
-FsWatchesRecursive::
-/user/username/rootfolder/otherfolder/a/b/project:
- {}
-/user/username/rootfolder/otherfolder/a/b/node_modules:
- {}
From 11faca6282e67f5ef91aaf02c2d1b2022967e1a4 Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Wed, 10 May 2023 10:34:00 -0700
Subject: [PATCH 10/10] Add test cases for nodenext+ESM module resolution
First test shows that no files are resolved in node_modules itself.
Second test shows that a successful resolution skips node_modules but
successfully resolves anyway.
---
.../nodeNextModuleResolution1.errors.txt | 18 +++
.../reference/nodeNextModuleResolution1.js | 19 ++++
.../nodeNextModuleResolution1.symbols | 9 ++
.../nodeNextModuleResolution1.trace.json | 103 ++++++++++++++++++
.../reference/nodeNextModuleResolution1.types | 9 ++
.../reference/nodeNextModuleResolution2.js | 20 ++++
.../nodeNextModuleResolution2.symbols | 8 ++
.../nodeNextModuleResolution2.trace.json | 102 +++++++++++++++++
.../reference/nodeNextModuleResolution2.types | 8 ++
.../compiler/nodeNextModuleResolution1.ts | 15 +++
.../compiler/nodeNextModuleResolution2.ts | 16 +++
11 files changed, 327 insertions(+)
create mode 100644 tests/baselines/reference/nodeNextModuleResolution1.errors.txt
create mode 100644 tests/baselines/reference/nodeNextModuleResolution1.js
create mode 100644 tests/baselines/reference/nodeNextModuleResolution1.symbols
create mode 100644 tests/baselines/reference/nodeNextModuleResolution1.trace.json
create mode 100644 tests/baselines/reference/nodeNextModuleResolution1.types
create mode 100644 tests/baselines/reference/nodeNextModuleResolution2.js
create mode 100644 tests/baselines/reference/nodeNextModuleResolution2.symbols
create mode 100644 tests/baselines/reference/nodeNextModuleResolution2.trace.json
create mode 100644 tests/baselines/reference/nodeNextModuleResolution2.types
create mode 100644 tests/cases/compiler/nodeNextModuleResolution1.ts
create mode 100644 tests/cases/compiler/nodeNextModuleResolution2.ts
diff --git a/tests/baselines/reference/nodeNextModuleResolution1.errors.txt b/tests/baselines/reference/nodeNextModuleResolution1.errors.txt
new file mode 100644
index 0000000000000..00bab93c4a854
--- /dev/null
+++ b/tests/baselines/reference/nodeNextModuleResolution1.errors.txt
@@ -0,0 +1,18 @@
+/a/b/c/d/e/app.ts(1,17): error TS2307: Cannot find module 'foo' or its corresponding type declarations.
+
+
+==== /a/node_modules/foo.d.ts (0 errors) ====
+ export declare let x: number
+
+==== /a/b/c/d/e/package.json (0 errors) ====
+ {
+ "name": "e",
+ "version": "1.0.0",
+ "type": "module"
+ }
+==== /a/b/c/d/e/app.ts (1 errors) ====
+ import {x} from "foo";
+ ~~~~~
+!!! error TS2307: Cannot find module 'foo' or its corresponding type declarations.
+
+
\ No newline at end of file
diff --git a/tests/baselines/reference/nodeNextModuleResolution1.js b/tests/baselines/reference/nodeNextModuleResolution1.js
new file mode 100644
index 0000000000000..d76bd3acd7fb6
--- /dev/null
+++ b/tests/baselines/reference/nodeNextModuleResolution1.js
@@ -0,0 +1,19 @@
+//// [tests/cases/compiler/nodeNextModuleResolution1.ts] ////
+
+//// [foo.d.ts]
+export declare let x: number
+
+//// [package.json]
+{
+ "name": "e",
+ "version": "1.0.0",
+ "type": "module"
+}
+//// [app.ts]
+import {x} from "foo";
+
+
+
+//// [app.js]
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/tests/baselines/reference/nodeNextModuleResolution1.symbols b/tests/baselines/reference/nodeNextModuleResolution1.symbols
new file mode 100644
index 0000000000000..f8657910c2002
--- /dev/null
+++ b/tests/baselines/reference/nodeNextModuleResolution1.symbols
@@ -0,0 +1,9 @@
+=== /a/node_modules/foo.d.ts ===
+export declare let x: number
+>x : Symbol(x, Decl(foo.d.ts, 0, 18))
+
+=== /a/b/c/d/e/app.ts ===
+import {x} from "foo";
+>x : Symbol(x, Decl(app.ts, 0, 8))
+
+
diff --git a/tests/baselines/reference/nodeNextModuleResolution1.trace.json b/tests/baselines/reference/nodeNextModuleResolution1.trace.json
new file mode 100644
index 0000000000000..9927ef6c30d11
--- /dev/null
+++ b/tests/baselines/reference/nodeNextModuleResolution1.trace.json
@@ -0,0 +1,103 @@
+[
+ "File '/a/node_modules/package.json' does not exist.",
+ "File '/a/package.json' does not exist.",
+ "File '/package.json' does not exist.",
+ "Found 'package.json' at '/a/b/c/d/e/package.json'.",
+ "======== Resolving module 'foo' from '/a/b/c/d/e/app.ts'. ========",
+ "Explicitly specified module resolution kind: 'NodeNext'.",
+ "Resolving in ESM mode with conditions 'import', 'types', 'node'.",
+ "File '/a/b/c/d/e/package.json' exists according to earlier cached lookups.",
+ "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration.",
+ "Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/node_modules/@types' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name 'foo' was not resolved. ========",
+ "File 'package.json' does not exist.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-es5' from '__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-es5'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-es5'",
+ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-es5' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-decorators' from '__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-decorators'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-decorators'",
+ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-decorators' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-decorators/legacy' from '__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-decorators/legacy'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-decorators/legacy'",
+ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-dom' from '__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-dom'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-dom'",
+ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-dom' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-webworker/importscripts' from '__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-webworker/importscripts'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-webworker/importscripts'",
+ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-scripthost' from '__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-scripthost' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups."
+]
\ No newline at end of file
diff --git a/tests/baselines/reference/nodeNextModuleResolution1.types b/tests/baselines/reference/nodeNextModuleResolution1.types
new file mode 100644
index 0000000000000..374248db15127
--- /dev/null
+++ b/tests/baselines/reference/nodeNextModuleResolution1.types
@@ -0,0 +1,9 @@
+=== /a/node_modules/foo.d.ts ===
+export declare let x: number
+>x : number
+
+=== /a/b/c/d/e/app.ts ===
+import {x} from "foo";
+>x : any
+
+
diff --git a/tests/baselines/reference/nodeNextModuleResolution2.js b/tests/baselines/reference/nodeNextModuleResolution2.js
new file mode 100644
index 0000000000000..19475675a566b
--- /dev/null
+++ b/tests/baselines/reference/nodeNextModuleResolution2.js
@@ -0,0 +1,20 @@
+//// [tests/cases/compiler/nodeNextModuleResolution2.ts] ////
+
+//// [index.d.ts]
+export declare let x: number
+//// [package.json]
+{
+ "name": "foo",
+ "type": "module",
+ "exports": {
+ ".": "./index.d.ts"
+ }
+}
+
+//// [app.mts]
+import {x} from "foo";
+
+
+//// [app.mjs]
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/tests/baselines/reference/nodeNextModuleResolution2.symbols b/tests/baselines/reference/nodeNextModuleResolution2.symbols
new file mode 100644
index 0000000000000..e229b0e38e03b
--- /dev/null
+++ b/tests/baselines/reference/nodeNextModuleResolution2.symbols
@@ -0,0 +1,8 @@
+=== /a/node_modules/foo/index.d.ts ===
+export declare let x: number
+>x : Symbol(x, Decl(index.d.ts, 0, 18))
+
+=== /a/b/c/d/e/app.mts ===
+import {x} from "foo";
+>x : Symbol(x, Decl(app.mts, 0, 8))
+
diff --git a/tests/baselines/reference/nodeNextModuleResolution2.trace.json b/tests/baselines/reference/nodeNextModuleResolution2.trace.json
new file mode 100644
index 0000000000000..79fe344e8e784
--- /dev/null
+++ b/tests/baselines/reference/nodeNextModuleResolution2.trace.json
@@ -0,0 +1,102 @@
+[
+ "Found 'package.json' at '/a/node_modules/foo/package.json'.",
+ "======== Resolving module 'foo' from '/a/b/c/d/e/app.mts'. ========",
+ "Explicitly specified module resolution kind: 'NodeNext'.",
+ "Resolving in ESM mode with conditions 'import', 'types', 'node'.",
+ "File '/a/b/c/d/e/package.json' does not exist.",
+ "File '/a/b/c/d/package.json' does not exist.",
+ "File '/a/b/c/package.json' does not exist.",
+ "File '/a/b/package.json' does not exist.",
+ "File '/a/package.json' does not exist.",
+ "File '/package.json' does not exist.",
+ "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, JavaScript, Declaration.",
+ "Directory '/a/b/c/d/e/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/b/c/d/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/b/c/node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/a/b/node_modules' does not exist, skipping all lookups in it.",
+ "File '/a/node_modules/foo/package.json' exists according to earlier cached lookups.",
+ "Using 'exports' subpath '.' with target './index.d.ts'.",
+ "File '/a/node_modules/foo/index.d.ts' exists - use it as a name resolution result.",
+ "Resolving real path for '/a/node_modules/foo/index.d.ts', result '/a/node_modules/foo/index.d.ts'.",
+ "======== Module name 'foo' was successfully resolved to '/a/node_modules/foo/index.d.ts'. ========",
+ "File 'package.json' does not exist.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-es5' from '__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-es5'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-es5'",
+ "Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-es5' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-decorators' from '__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-decorators'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-decorators'",
+ "Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-decorators' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-decorators/legacy' from '__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-decorators/legacy'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-decorators/legacy'",
+ "Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-dom' from '__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-dom'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-dom'",
+ "Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-dom' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-webworker/importscripts' from '__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-webworker/importscripts'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-webworker/importscripts'",
+ "Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups.",
+ "======== Resolving module '@typescript/lib-scripthost' from '__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========",
+ "Explicitly specified module resolution kind: 'Node10'.",
+ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "Scoped package detected, looking in 'typescript__lib-scripthost'",
+ "Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.",
+ "Directory 'node_modules' does not exist, skipping all lookups in it.",
+ "Directory '/node_modules' does not exist, skipping all lookups in it.",
+ "======== Module name '@typescript/lib-scripthost' was not resolved. ========",
+ "File 'package.json' does not exist according to earlier cached lookups.",
+ "File '/package.json' does not exist according to earlier cached lookups."
+]
\ No newline at end of file
diff --git a/tests/baselines/reference/nodeNextModuleResolution2.types b/tests/baselines/reference/nodeNextModuleResolution2.types
new file mode 100644
index 0000000000000..9e8e5f87ef09b
--- /dev/null
+++ b/tests/baselines/reference/nodeNextModuleResolution2.types
@@ -0,0 +1,8 @@
+=== /a/node_modules/foo/index.d.ts ===
+export declare let x: number
+>x : number
+
+=== /a/b/c/d/e/app.mts ===
+import {x} from "foo";
+>x : number
+
diff --git a/tests/cases/compiler/nodeNextModuleResolution1.ts b/tests/cases/compiler/nodeNextModuleResolution1.ts
new file mode 100644
index 0000000000000..c22c4fe3312cf
--- /dev/null
+++ b/tests/cases/compiler/nodeNextModuleResolution1.ts
@@ -0,0 +1,15 @@
+// @moduleResolution: nodenext
+// @traceResolution: true
+
+// @filename: /a/node_modules/foo.d.ts
+export declare let x: number
+
+// @filename: /a/b/c/d/e/package.json
+{
+ "name": "e",
+ "version": "1.0.0",
+ "type": "module"
+}
+// @filename: /a/b/c/d/e/app.ts
+import {x} from "foo";
+
diff --git a/tests/cases/compiler/nodeNextModuleResolution2.ts b/tests/cases/compiler/nodeNextModuleResolution2.ts
new file mode 100644
index 0000000000000..2bbe7a540715d
--- /dev/null
+++ b/tests/cases/compiler/nodeNextModuleResolution2.ts
@@ -0,0 +1,16 @@
+// @moduleResolution: nodenext
+// @traceResolution: true
+
+// @filename: /a/node_modules/foo/index.d.ts
+export declare let x: number
+// @filename: /a/node_modules/foo/package.json
+{
+ "name": "foo",
+ "type": "module",
+ "exports": {
+ ".": "./index.d.ts"
+ }
+}
+
+// @filename: /a/b/c/d/e/app.mts
+import {x} from "foo";