From f30c9513322fac848eaf3dca296b47649e371ee3 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 28 Feb 2023 15:59:15 -0800 Subject: [PATCH 1/6] Add tests for library redirections --- src/testRunner/tests.ts | 5 + src/testRunner/unittests/helpers/contents.ts | 4 + .../unittests/helpers/libraryResolution.ts | 86 + src/testRunner/unittests/helpers/tsc.ts | 2 +- src/testRunner/unittests/helpers/vfs.ts | 49 +- .../unittests/tsbuild/libraryResolution.ts | 16 + .../tsbuildWatch/libraryResolution.ts | 15 + .../unittests/tsc/libraryResolution.ts | 18 + .../unittests/tscWatch/libraryResolution.ts | 139 + .../unittests/tsserver/libraryResolution.ts | 88 + .../with-config-with-redirection.js | 904 ++++++ .../tsbuild/libraryResolution/with-config.js | 945 +++++++ .../with-config-with-redirection.js | 982 +++++++ .../libraryResolution/with-config.js | 1023 +++++++ .../with-config-with-redirection.js | 456 +++ .../tsc/libraryResolution/with-config.js | 457 ++++ .../without-config-with-redirection.js | 259 ++ .../tsc/libraryResolution/without-config.js | 256 ++ .../with-config-with-redirection.js | 2437 +++++++++++++++++ .../tscWatch/libraryResolution/with-config.js | 2053 ++++++++++++++ .../without-config-with-redirection.js | 948 +++++++ .../libraryResolution/without-config.js | 823 ++++++ .../with-config-with-redirection.js | 1320 +++++++++ .../tsserver/libraryResolution/with-config.js | 1274 +++++++++ 24 files changed, 14537 insertions(+), 22 deletions(-) create mode 100644 src/testRunner/unittests/helpers/libraryResolution.ts create mode 100644 src/testRunner/unittests/tsbuild/libraryResolution.ts create mode 100644 src/testRunner/unittests/tsbuildWatch/libraryResolution.ts create mode 100644 src/testRunner/unittests/tsc/libraryResolution.ts create mode 100644 src/testRunner/unittests/tscWatch/libraryResolution.ts create mode 100644 src/testRunner/unittests/tsserver/libraryResolution.ts create mode 100644 tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js create mode 100644 tests/baselines/reference/tsbuild/libraryResolution/with-config.js create mode 100644 tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js create mode 100644 tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js create mode 100644 tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js create mode 100644 tests/baselines/reference/tsc/libraryResolution/with-config.js create mode 100644 tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js create mode 100644 tests/baselines/reference/tsc/libraryResolution/without-config.js create mode 100644 tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js create mode 100644 tests/baselines/reference/tscWatch/libraryResolution/with-config.js create mode 100644 tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js create mode 100644 tests/baselines/reference/tscWatch/libraryResolution/without-config.js create mode 100644 tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js create mode 100644 tests/baselines/reference/tsserver/libraryResolution/with-config.js diff --git a/src/testRunner/tests.ts b/src/testRunner/tests.ts index 45a31fc7bbade..28e89ee7877e7 100644 --- a/src/testRunner/tests.ts +++ b/src/testRunner/tests.ts @@ -78,6 +78,7 @@ import "./unittests/tsbuild/graphOrdering"; import "./unittests/tsbuild/inferredTypeFromTransitiveModule"; import "./unittests/tsbuild/javascriptProjectEmit"; import "./unittests/tsbuild/lateBoundSymbol"; +import "./unittests/tsbuild/libraryResolution"; import "./unittests/tsbuild/moduleResolution"; import "./unittests/tsbuild/moduleSpecifiers"; import "./unittests/tsbuild/noEmit"; @@ -92,6 +93,7 @@ import "./unittests/tsbuild/sample"; import "./unittests/tsbuild/transitiveReferences"; import "./unittests/tsbuildWatch/configFileErrors"; import "./unittests/tsbuildWatch/demo"; +import "./unittests/tsbuildWatch/libraryResolution"; import "./unittests/tsbuildWatch/moduleResolution"; import "./unittests/tsbuildWatch/noEmit"; import "./unittests/tsbuildWatch/noEmitOnError"; @@ -105,6 +107,7 @@ import "./unittests/tsc/composite"; import "./unittests/tsc/declarationEmit"; import "./unittests/tsc/forceConsistentCasingInFileNames"; import "./unittests/tsc/incremental"; +import "./unittests/tsc/libraryResolution"; import "./unittests/tsc/listFilesOnly"; import "./unittests/tsc/projectReferences"; import "./unittests/tsc/projectReferencesConfig"; @@ -116,6 +119,7 @@ import "./unittests/tscWatch/nodeNextWatch"; import "./unittests/tscWatch/emitAndErrorUpdates"; import "./unittests/tscWatch/forceConsistentCasingInFileNames"; import "./unittests/tscWatch/incremental"; +import "./unittests/tscWatch/libraryResolution"; import "./unittests/tscWatch/moduleResolution"; import "./unittests/tscWatch/programUpdates"; import "./unittests/tscWatch/projectsWithReferences"; @@ -155,6 +159,7 @@ import "./unittests/tsserver/inlayHints"; import "./unittests/tsserver/inferredProjects"; import "./unittests/tsserver/jsdocTag"; import "./unittests/tsserver/languageService"; +import "./unittests/tsserver/libraryResolution"; import "./unittests/tsserver/maxNodeModuleJsDepth"; import "./unittests/tsserver/metadataInResponse"; import "./unittests/tsserver/moduleResolution"; diff --git a/src/testRunner/unittests/helpers/contents.ts b/src/testRunner/unittests/helpers/contents.ts index 2b81a284a55f9..4a0bb4918dec9 100644 --- a/src/testRunner/unittests/helpers/contents.ts +++ b/src/testRunner/unittests/helpers/contents.ts @@ -19,3 +19,7 @@ interface Symbol { readonly [Symbol.toStringTag]: string; } `; + +export interface FsContents { + [path: string]: string; +} \ No newline at end of file diff --git a/src/testRunner/unittests/helpers/libraryResolution.ts b/src/testRunner/unittests/helpers/libraryResolution.ts new file mode 100644 index 0000000000000..11bf63292c10a --- /dev/null +++ b/src/testRunner/unittests/helpers/libraryResolution.ts @@ -0,0 +1,86 @@ +import { dedent } from "../../_namespaces/Utils"; +import { FsContents, libContent } from "./contents"; +import { loadProjectFromFiles } from "./vfs"; +import { createServerHost, createWatchedSystem } from "./virtualFileSystemWithWatch"; + +function getFsContentsForLibResolution(libRedirection?: boolean): FsContents { + return { + "/home/src/projects/project1/utils.d.ts": `export const y = 10;`, + "/home/src/projects/project1/file.ts": `export const file = 10;`, + "/home/src/projects/project1/core.d.ts": `export const core = 10;`, + "/home/src/projects/project1/index.ts": `export const x = "type1";`, + "/home/src/projects/project1/file2.ts": dedent` + /// + /// + /// + `, + "/home/src/projects/project1/tsconfig.json": JSON.stringify({ + compilerOptions: { composite: true, typeRoots: ["./typeroot1"], lib: ["es5", "dom"], traceResolution: true }, + }), + "/home/src/projects/project1/typeroot1/sometype/index.d.ts": `export type TheNum = "type1";`, + "/home/src/projects/project2/utils.d.ts": `export const y = 10;`, + "/home/src/projects/project2/index.ts": `export const y = 10`, + "/home/src/projects/project2/tsconfig.json": JSON.stringify({ + compilerOptions: { composite: true, lib: ["es5", "dom"], traceResolution: true }, + }), + "/home/src/projects/project3/utils.d.ts": `export const y = 10;`, + "/home/src/projects/project3/index.ts": `export const z = 10`, + "/home/src/projects/project3/tsconfig.json": JSON.stringify({ + compilerOptions: { composite: true, lib: ["es5", "dom"], traceResolution: true }, + }), + "/home/src/projects/project4/utils.d.ts": `export const y = 10;`, + "/home/src/projects/project4/index.ts": `export const z = 10`, + "/home/src/projects/project4/tsconfig.json": JSON.stringify({ + compilerOptions: { composite: true, lib: ["esnext", "dom", "webworker"], traceResolution: true }, + }), + "/home/src/lib/lib.es5.d.ts": libContent, + "/home/src/lib/lib.esnext.d.ts": libContent, + "/home/src/lib/lib.dom.d.ts": "interface DOMInterface { }", + "/home/src/lib/lib.webworker.d.ts": "interface WebWorkerInterface { }", + "/home/src/lib/lib.scripthost.d.ts": "interface ScriptHostInterface { }", + "/home/src/projects/node_modules/@typescript/unlreated/index.d.ts": "export const unrelated = 10;", + ...libRedirection ? { + "/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts": libContent, + "/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts": libContent, + "/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts": "interface DOMInterface { }", + "/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts": "interface WebworkerInterface { }", + "/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts": "interface ScriptHostInterface { }", + } : undefined + }; +} + +export function getFsForLibResolution(libRedirection: true | undefined) { + return loadProjectFromFiles( + getFsContentsForLibResolution(libRedirection), + { + cwd: "/home/src/projects", + executingFilePath: "/home/src/lib/tsc.js", + } + ); +} + +export function getSysForLibResolution(libRedirection?: true) { + return createWatchedSystem( + getFsContentsForLibResolution(libRedirection), + { + currentDirectory: "/home/src/projects", + executingFilePath: "/home/src/lib/tsc.js", + } + ); +} + +export function getServerHosForLibResolution(libRedirection?: true) { + return createServerHost( + getFsContentsForLibResolution(libRedirection), + { + currentDirectory: "/home/src/projects", + executingFilePath: "/home/src/lib/tsc.js", + } + ); +} + +export function getCommandLineArgsForLibResolution(withoutConfig: true | undefined) { + return withoutConfig ? + ["project1/core.d.ts", "project1/utils.d.ts", "project1/file.ts", "project1/index.ts", "project1/file2.ts", "--lib", "es5,dom", "--traceResolution", "--explainFiles"] : + ["-p", "project1", "--explainFiles"]; +} diff --git a/src/testRunner/unittests/helpers/tsc.ts b/src/testRunner/unittests/helpers/tsc.ts index ce21213a4dc5f..d6681047f9664 100644 --- a/src/testRunner/unittests/helpers/tsc.ts +++ b/src/testRunner/unittests/helpers/tsc.ts @@ -69,7 +69,7 @@ export function testTscCompileLike(input: TestTscCompileLike) { const fs = inputFs.shadow(); // Create system - const sys = new fakes.System(fs, { executingFilePath: "/lib/tsc", env: environmentVariables }) as TscCompileSystem; + const sys = new fakes.System(fs, { executingFilePath: `${fs.meta.get("defaultLibLocation")}/tsc`, env: environmentVariables }) as TscCompileSystem; sys.storeFilesChangingSignatureDuringEmit = true; sys.write(`${sys.getExecutingFilePath()} ${commandLineArgs.join(" ")}\n`); sys.exit = exitCode => sys.exitCode = exitCode; diff --git a/src/testRunner/unittests/helpers/vfs.ts b/src/testRunner/unittests/helpers/vfs.ts index cf91b51d499fb..df8fc06f3c1f3 100644 --- a/src/testRunner/unittests/helpers/vfs.ts +++ b/src/testRunner/unittests/helpers/vfs.ts @@ -1,47 +1,54 @@ import * as Harness from "../../_namespaces/Harness"; +import { getDirectoryPath } from "../../_namespaces/ts"; import * as vfs from "../../_namespaces/vfs"; import * as vpath from "../../_namespaces/vpath"; import { libContent } from "./contents"; +export interface FsOptions { + libContentToAppend?: string; + cwd?: string; + executingFilePath?: string; +} +export type FsOptionsOrLibContentsToAppend = FsOptions | string; + +function valueOfFsOptions(options: FsOptionsOrLibContentsToAppend | undefined, key: keyof FsOptions) { + return typeof options === "string" ? + key === "libContentToAppend" ? options : undefined : + options?.[key]; +} + /** * Load project from disk into /src folder */ - export function loadProjectFromDisk( root: string, - libContentToAppend?: string + options?: FsOptionsOrLibContentsToAppend ): vfs.FileSystem { const resolver = vfs.createResolver(Harness.IO); - const fs = new vfs.FileSystem(/*ignoreCase*/ true, { - files: { - ["/src"]: new vfs.Mount(vpath.resolve(Harness.IO.getWorkspaceRoot(), root), resolver) - }, - cwd: "/", - meta: { defaultLibLocation: "/lib" }, - }); - addLibAndMakeReadonly(fs, libContentToAppend); - return fs; + return loadProjectFromFiles({ + ["/src"]: new vfs.Mount(vpath.resolve(Harness.IO.getWorkspaceRoot(), root), resolver) + }, options); } + /** * All the files must be in /src */ - export function loadProjectFromFiles( files: vfs.FileSet, - libContentToAppend?: string + options?: FsOptionsOrLibContentsToAppend, ): vfs.FileSystem { + const executingFilePath = valueOfFsOptions(options, "executingFilePath"); + const defaultLibLocation = executingFilePath ? getDirectoryPath(executingFilePath) : "/lib"; const fs = new vfs.FileSystem(/*ignoreCase*/ true, { files, - cwd: "/", - meta: { defaultLibLocation: "/lib" }, + cwd: valueOfFsOptions(options, "cwd") || "/", + meta: { defaultLibLocation }, }); - addLibAndMakeReadonly(fs, libContentToAppend); - return fs; -} -function addLibAndMakeReadonly(fs: vfs.FileSystem, libContentToAppend?: string) { - fs.mkdirSync("/lib"); - fs.writeFileSync("/lib/lib.d.ts", libContentToAppend ? `${libContent}${libContentToAppend}` : libContent); + const libContentToAppend = valueOfFsOptions(options, "libContentToAppend"); + fs.mkdirpSync(defaultLibLocation); + fs.writeFileSync(`${defaultLibLocation}/lib.d.ts`, libContentToAppend ? `${libContent}${libContentToAppend}` : libContent); fs.makeReadonly(); + return fs; } export function replaceText(fs: vfs.FileSystem, path: string, oldText: string, newText: string) { diff --git a/src/testRunner/unittests/tsbuild/libraryResolution.ts b/src/testRunner/unittests/tsbuild/libraryResolution.ts new file mode 100644 index 0000000000000..ed854616c3ac2 --- /dev/null +++ b/src/testRunner/unittests/tsbuild/libraryResolution.ts @@ -0,0 +1,16 @@ +import { getFsForLibResolution } from "../helpers/libraryResolution"; +import { verifyTsc } from "../helpers/tsc"; + +describe("unittests:: tsbuild:: libraryResolution:: library file resolution", () => { + function verify(libRedirection?: true) { + verifyTsc({ + scenario: "libraryResolution", + subScenario: `with config${libRedirection ? " with redirection" : ""}`, + fs: () => getFsForLibResolution(libRedirection), + commandLineArgs: ["-b", "project1", "project2", "project3", "project4", "--verbose", "--explainFiles"], + baselinePrograms: true, + }); + } + verify(); + verify(/*libRedirection*/ true); +}); diff --git a/src/testRunner/unittests/tsbuildWatch/libraryResolution.ts b/src/testRunner/unittests/tsbuildWatch/libraryResolution.ts new file mode 100644 index 0000000000000..a6391cdb9b7ee --- /dev/null +++ b/src/testRunner/unittests/tsbuildWatch/libraryResolution.ts @@ -0,0 +1,15 @@ +import { getSysForLibResolution } from "../helpers/libraryResolution"; +import { verifyTscWatch } from "../helpers/tscWatch"; + +describe("unittests:: tsbuildWatch:: watchMode:: libraryResolution:: library file resolution", () => { + function verify(libRedirection?: true) { + verifyTscWatch({ + scenario: "libraryResolution", + subScenario: `with config${libRedirection ? " with redirection" : ""}`, + sys: () => getSysForLibResolution(libRedirection), + commandLineArgs: ["-b", "-w", "project1", "project2", "project3", "project4", "--verbose", "--explainFiles", "--extendedDiagnostics"], + }); + } + verify(); + verify(/*libRedirection*/ true); +}); diff --git a/src/testRunner/unittests/tsc/libraryResolution.ts b/src/testRunner/unittests/tsc/libraryResolution.ts new file mode 100644 index 0000000000000..c922ec87fa989 --- /dev/null +++ b/src/testRunner/unittests/tsc/libraryResolution.ts @@ -0,0 +1,18 @@ +import { getCommandLineArgsForLibResolution, getFsForLibResolution } from "../helpers/libraryResolution"; +import { verifyTsc } from "../helpers/tsc"; + +describe("unittests:: tsc:: libraryResolution:: library file resolution", () => { + function verify(libRedirection?: true, withoutConfig?: true) { + verifyTsc({ + scenario: "libraryResolution", + subScenario: `${withoutConfig ? "without" : "with"} config${libRedirection ? " with redirection" : ""}`, + fs: () => getFsForLibResolution(libRedirection), + commandLineArgs: getCommandLineArgsForLibResolution(withoutConfig), + baselinePrograms: true, + }); + } + verify(); + verify(/*libRedirection*/ true); + verify(/*libRedirection*/ undefined, /*withoutConfig*/ true); + verify(/*libRedirection*/ true, /*withoutConfig*/ true); +}); \ No newline at end of file diff --git a/src/testRunner/unittests/tscWatch/libraryResolution.ts b/src/testRunner/unittests/tscWatch/libraryResolution.ts new file mode 100644 index 0000000000000..9605491eca0f6 --- /dev/null +++ b/src/testRunner/unittests/tscWatch/libraryResolution.ts @@ -0,0 +1,139 @@ +import { getCommandLineArgsForLibResolution, getSysForLibResolution } from "../helpers/libraryResolution"; +import { + TscWatchCompileChange, + TscWatchSystem, + verifyTscWatch +} from "../helpers/tscWatch"; + +describe("unittests:: tsc-watch:: libraryResolution", () => { + function commandLineArgs(withoutConfig: true | undefined) { + return ["-w", ...getCommandLineArgsForLibResolution(withoutConfig), "--extendedDiagnostics"]; + } + + function editOptions(withoutConfig: true | undefined, changeLib: (sys: TscWatchSystem) => void): TscWatchCompileChange[] { + return withoutConfig ? [] : [ + { + caption: "change program options to update module resolution", + edit: sys => sys.writeFile("/home/src/projects/project1/tsconfig.json", JSON.stringify({ + compilerOptions: { + composite: true, + typeRoots: ["./typeroot1", "./typeroot2"], + lib: ["es5", "dom"], + traceResolution: true, + }, + })), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + { + caption: "change program options to update module resolution and also update lib file", + edit: sys => { + sys.writeFile("/home/src/projects/project1/tsconfig.json", JSON.stringify({ + compilerOptions: { + composite: true, + typeRoots: ["./typeroot1"], + lib: ["es5", "dom"], + traceResolution: true, + }, + })); + changeLib(sys); + }, + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + } + ]; + } + function verify(withoutConfig?: true) { + verifyTscWatch({ + scenario: "libraryResolution", + subScenario: `${withoutConfig ? "without" : "with"} config`, + sys: () => getSysForLibResolution(), + commandLineArgs: commandLineArgs(withoutConfig), + edits: [ + { + caption: "write redirect file dom", + edit: sys => sys.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts", content: "interface DOMInterface { }" }), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); + sys.runQueuedTimeoutCallbacks(); + } + }, + { + caption: "edit index", + edit: sys => sys.appendFile("/home/src/projects/project1/index.ts", "export const xyz = 10;"), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + { + caption: "delete core", + edit: sys => sys.deleteFile("/home/src/projects/project1/core.d.ts"), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + { + caption: "delete redirect file dom", + edit: sys => sys.deleteFile("/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts"), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + ...editOptions(withoutConfig, sys => sys.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts", content: "interface DOMInterface { }" })), + { + caption: "write redirect file webworker", + edit: sys => sys.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts", content: "interface WebworkerInterface { }" }), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); + sys.runQueuedTimeoutCallbacks(); + } + }, + { + caption: "delete redirect file webworker", + edit: sys => sys.deleteFile("/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts"), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + ] + }); + + verifyTscWatch({ + scenario: "libraryResolution", + subScenario: `${withoutConfig ? "without" : "with"} config with redirection`, + sys: () => getSysForLibResolution(/*libRedirection*/ true), + commandLineArgs: commandLineArgs(withoutConfig), + edits: [ + { + caption: "delete redirect file dom", + edit: sys => sys.deleteFile("/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts"), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + { + caption: "edit index", + edit: sys => sys.appendFile("/home/src/projects/project1/index.ts", "export const xyz = 10;"), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + { + caption: "delete core", + edit: sys => sys.deleteFile("/home/src/projects/project1/core.d.ts"), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + { + caption: "write redirect file dom", + edit: sys => sys.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts", content: "interface DOMInterface { }" }), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); + sys.runQueuedTimeoutCallbacks(); + } + }, + ...editOptions(withoutConfig, sys => sys.deleteFile("/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts")), + { + caption: "delete redirect file webworker", + edit: sys => sys.deleteFile("/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts"), + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }, + { + caption: "write redirect file webworker", + edit: sys => sys.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts", content: "interface WebworkerInterface { }" }), + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); + sys.runQueuedTimeoutCallbacks(); + } + }, + ] + }); + } + verify(); + verify(/*withoutConfig*/ true); +}); diff --git a/src/testRunner/unittests/tsserver/libraryResolution.ts b/src/testRunner/unittests/tsserver/libraryResolution.ts new file mode 100644 index 0000000000000..213e538ed70c7 --- /dev/null +++ b/src/testRunner/unittests/tsserver/libraryResolution.ts @@ -0,0 +1,88 @@ +import { getServerHosForLibResolution } from "../helpers/libraryResolution"; +import { + baselineTsserverLogs, + createLoggerWithInMemoryLogs, + createSession, + openFilesForSession +} from "../helpers/tsserver"; + +describe("unittests:: tsserver:: libraryResolution", () => { + it("with config", () => { + const host = getServerHosForLibResolution(); + const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); + openFilesForSession(["/home/src/projects/project1/index.ts"], session); + host.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts", content: "interface DOMInterface { }" }); + host.runQueuedTimeoutCallbacks(); + host.runQueuedTimeoutCallbacks(); + host.appendFile("/home/src/projects/project1/file.ts", "export const xyz = 10;"); + host.runQueuedTimeoutCallbacks(); + host.deleteFile("/home/src/projects/project1/core.d.ts"); + host.runQueuedTimeoutCallbacks(); + host.deleteFile("/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts"); + host.runQueuedTimeoutCallbacks(); + host.writeFile("/home/src/projects/project1/tsconfig.json", JSON.stringify({ + compilerOptions: { + composite: true, + typeRoots: ["./typeroot1", "./typeroot2"], + lib: ["es5", "dom"], + traceResolution: true, + }, + })); + host.runQueuedTimeoutCallbacks(); + host.writeFile("/home/src/projects/project1/tsconfig.json", JSON.stringify({ + compilerOptions: { + composite: true, + typeRoots: ["./typeroot1"], + lib: ["es5", "dom"], + traceResolution: true, + }, + })); + host.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts", content: "interface DOMInterface { }" }); + host.runQueuedTimeoutCallbacks(); + host.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts", content: "interface WebWorkerInterface { }" }); + host.runQueuedTimeoutCallbacks(); + host.runQueuedTimeoutCallbacks(); + host.deleteFile("/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts"); + host.runQueuedTimeoutCallbacks(); + baselineTsserverLogs("libraryResolution", "with config", session); + }); + it("with config with redirection", () => { + const host = getServerHosForLibResolution(/*libRedirection*/ true); + const session = createSession(host, { logger: createLoggerWithInMemoryLogs(host) }); + openFilesForSession(["/home/src/projects/project1/index.ts"], session); + host.deleteFile("/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts"); + host.runQueuedTimeoutCallbacks(); + host.appendFile("/home/src/projects/project1/file.ts", "export const xyz = 10;"); + host.runQueuedTimeoutCallbacks(); + host.deleteFile("/home/src/projects/project1/core.d.ts"); + host.runQueuedTimeoutCallbacks(); + host.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts", content: "interface DOMInterface { }" }); + host.runQueuedTimeoutCallbacks(); + host.runQueuedTimeoutCallbacks(); + host.writeFile("/home/src/projects/project1/tsconfig.json", JSON.stringify({ + compilerOptions: { + composite: true, + typeRoots: ["./typeroot1", "./typeroot2"], + lib: ["es5", "dom"], + traceResolution: true, + }, + })); + host.runQueuedTimeoutCallbacks(); + host.writeFile("/home/src/projects/project1/tsconfig.json", JSON.stringify({ + compilerOptions: { + composite: true, + typeRoots: ["./typeroot1"], + lib: ["es5", "dom"], + traceResolution: true, + }, + })); + host.deleteFile("/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts"); + host.runQueuedTimeoutCallbacks(); + host.deleteFile("/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts"); + host.runQueuedTimeoutCallbacks(); + host.ensureFileOrFolder({ path: "/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts", content: "interface WebWorkerInterface { }" }); + host.runQueuedTimeoutCallbacks(); + host.runQueuedTimeoutCallbacks(); + baselineTsserverLogs("libraryResolution", "with config with redirection", session); + }); +}); \ No newline at end of file diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js new file mode 100644 index 0000000000000..b55a99a6329c3 --- /dev/null +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js @@ -0,0 +1,904 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-es5/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-esnext/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + + + +Output:: +/home/src/lib/tsc -b project1 project2 project3 project4 --verbose --explainFiles +[12:00:49 AM] Projects in this build: + * project1/tsconfig.json + * project2/tsconfig.json + * project3/tsconfig.json + * project4/tsconfig.json + +[12:00:50 AM] Project 'project1/tsconfig.json' is out of date because output file 'project1/tsconfig.tsbuildinfo' does not exist + +[12:00:51 AM] Building project '/home/src/projects/project1/tsconfig.json'... + +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:01:01 AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist + +[12:01:02 AM] Building project '/home/src/projects/project2/tsconfig.json'... + +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +node_modules/@typescript/lib-es5/index.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project2/index.ts + Matched by default include pattern '**/*' +project2/utils.d.ts + Matched by default include pattern '**/*' +[12:01:08 AM] Project 'project3/tsconfig.json' is out of date because output file 'project3/tsconfig.tsbuildinfo' does not exist + +[12:01:09 AM] Building project '/home/src/projects/project3/tsconfig.json'... + +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project3/__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 '/home/src/projects/project3/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-es5' +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project3/__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 '/home/src/projects/project3/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom' +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +node_modules/@typescript/lib-es5/index.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project3/index.ts + Matched by default include pattern '**/*' +project3/utils.d.ts + Matched by default include pattern '**/*' +[12:01:15 AM] Project 'project4/tsconfig.json' is out of date because output file 'project4/tsconfig.tsbuildinfo' does not exist + +[12:01:16 AM] Building project '/home/src/projects/project4/tsconfig.json'... + +======== Resolving module '@typescript/lib-esnext' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ======== +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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts'. +======== Module name '@typescript/lib-esnext' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project4/__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 '/home/src/projects/project4/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom' +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project4/__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. +Directory '/home/src/projects/project4/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +node_modules/@typescript/lib-esnext/index.d.ts + Library 'lib.esnext.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +node_modules/@typescript/lib-webworker/index.d.ts + Library 'lib.webworker.d.ts' specified in compilerOptions +project4/index.ts + Matched by default include pattern '**/*' +project4/utils.d.ts + Matched by default include pattern '**/*' +exitCode:: ExitStatus.Success +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts during emit) +/home/src/projects/project1/file2.ts (computed .d.ts during emit) +/home/src/projects/project1/index.ts (computed .d.ts during emit) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) + +Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project2/index.ts +/home/src/projects/project2/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project2/index.ts +/home/src/projects/project2/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project2/index.ts (computed .d.ts during emit) +/home/src/projects/project2/utils.d.ts (used version) + +Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project3/index.ts +/home/src/projects/project3/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project3/index.ts +/home/src/projects/project3/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project3/index.ts (computed .d.ts during emit) +/home/src/projects/project3/utils.d.ts (used version) + +Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/project4/index.ts +/home/src/projects/project4/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/project4/index.ts +/home/src/projects/project4/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/project4/index.ts (computed .d.ts during emit) +/home/src/projects/project4/utils.d.ts (used version) + + +//// [/home/src/projects/project1/file.d.ts] +export declare const file = 10; + + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/file2.d.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1901 +} + +//// [/home/src/projects/project2/index.d.ts] +export declare const y = 10; + + +//// [/home/src/projects/project2/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = 10; + + +//// [/home/src/projects/project2/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11999455899-export const y = 10", + "signature": "-7152472870-export declare const y = 10;\n" + }, + "version": "-11999455899-export const y = 10", + "signature": "-7152472870-export declare const y = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 3, + "./index.ts" + ], + [ + 4, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1053 +} + +//// [/home/src/projects/project3/index.d.ts] +export declare const z = 10; + + +//// [/home/src/projects/project3/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = void 0; +exports.z = 10; + + +//// [/home/src/projects/project3/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project3/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 3, + "./index.ts" + ], + [ + 4, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1053 +} + +//// [/home/src/projects/project4/index.d.ts] +export declare const z = 10; + + +//// [/home/src/projects/project4/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = void 0; +exports.z = 10; + + +//// [/home/src/projects/project4/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-esnext/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[4,5],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project4/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-esnext/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-esnext/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 4, + "./index.ts" + ], + [ + 5, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-esnext/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1198 +} + diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js new file mode 100644 index 0000000000000..4b20fbbef2600 --- /dev/null +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js @@ -0,0 +1,945 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + + + +Output:: +/home/src/lib/tsc -b project1 project2 project3 project4 --verbose --explainFiles +[12:00:39 AM] Projects in this build: + * project1/tsconfig.json + * project2/tsconfig.json + * project3/tsconfig.json + * project4/tsconfig.json + +[12:00:40 AM] Project 'project1/tsconfig.json' is out of date because output file 'project1/tsconfig.tsbuildinfo' does not exist + +[12:00:41 AM] Building project '/home/src/projects/project1/tsconfig.json'... + +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-dom' was not resolved. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:00:51 AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist + +[12:00:52 AM] Building project '/home/src/projects/project2/tsconfig.json'... + +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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 '/home/src/projects/project2/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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/home/src/projects/project2/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. +======== Module name '@typescript/lib-dom' was not resolved. ======== +../lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project2/index.ts + Matched by default include pattern '**/*' +project2/utils.d.ts + Matched by default include pattern '**/*' +[12:00:58 AM] Project 'project3/tsconfig.json' is out of date because output file 'project3/tsconfig.tsbuildinfo' does not exist + +[12:00:59 AM] Building project '/home/src/projects/project3/tsconfig.json'... + +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project3/__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 '/home/src/projects/project3/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-es5' +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project3/__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 '/home/src/projects/project3/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom' +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-dom' was not resolved. ======== +../lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project3/index.ts + Matched by default include pattern '**/*' +project3/utils.d.ts + Matched by default include pattern '**/*' +[12:01:05 AM] Project 'project4/tsconfig.json' is out of date because output file 'project4/tsconfig.tsbuildinfo' does not exist + +[12:01:06 AM] Building project '/home/src/projects/project4/tsconfig.json'... + +======== Resolving module '@typescript/lib-esnext' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ======== +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. +Scoped package detected, looking in 'typescript__lib-esnext' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-esnext' +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. +======== Module name '@typescript/lib-esnext' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project4/__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 '/home/src/projects/project4/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom' +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-dom' was not resolved. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project4/__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. +Directory '/home/src/projects/project4/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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +Directory '/home/src/projects/project4/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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +../lib/lib.esnext.d.ts + Library 'lib.esnext.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library 'lib.webworker.d.ts' specified in compilerOptions +project4/index.ts + Matched by default include pattern '**/*' +project4/utils.d.ts + Matched by default include pattern '**/*' +exitCode:: ExitStatus.Success +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts during emit) +/home/src/projects/project1/file2.ts (computed .d.ts during emit) +/home/src/projects/project1/index.ts (computed .d.ts during emit) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/projects/project2/index.ts +/home/src/projects/project2/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/projects/project2/index.ts +/home/src/projects/project2/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/projects/project2/index.ts (computed .d.ts during emit) +/home/src/projects/project2/utils.d.ts (used version) + +Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/projects/project3/index.ts +/home/src/projects/project3/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/projects/project3/index.ts +/home/src/projects/project3/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/projects/project3/index.ts (computed .d.ts during emit) +/home/src/projects/project3/utils.d.ts (used version) + +Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"explainFiles":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.esnext.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/projects/project4/index.ts +/home/src/projects/project4/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.esnext.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/projects/project4/index.ts +/home/src/projects/project4/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.esnext.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/projects/project4/index.ts (computed .d.ts during emit) +/home/src/projects/project4/utils.d.ts (used version) + + +//// [/home/src/projects/project1/file.d.ts] +export declare const file = 10; + + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/file2.d.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "../../lib/lib.scripthost.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../../lib/lib.webworker.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1805 +} + +//// [/home/src/projects/project2/index.d.ts] +export declare const y = 10; + + +//// [/home/src/projects/project2/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = 10; + + +//// [/home/src/projects/project2/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11999455899-export const y = 10", + "signature": "-7152472870-export declare const y = 10;\n" + }, + "version": "-11999455899-export const y = 10", + "signature": "-7152472870-export declare const y = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 3, + "./index.ts" + ], + [ + 4, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1005 +} + +//// [/home/src/projects/project3/index.d.ts] +export declare const z = 10; + + +//// [/home/src/projects/project3/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = void 0; +exports.z = 10; + + +//// [/home/src/projects/project3/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project3/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 3, + "./index.ts" + ], + [ + 4, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1005 +} + +//// [/home/src/projects/project4/index.d.ts] +export declare const z = 10; + + +//// [/home/src/projects/project4/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = void 0; +exports.z = 10; + + +//// [/home/src/projects/project4/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.esnext.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[4,5],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project4/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.esnext.d.ts", + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../../lib/lib.esnext.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 4, + "./index.ts" + ], + [ + 5, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.esnext.d.ts", + "../../lib/lib.webworker.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1126 +} + diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js new file mode 100644 index 0000000000000..94c79ac95c711 --- /dev/null +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js @@ -0,0 +1,982 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + +//// [/home/src/projects/node_modules/@typescript/lib-es5/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-esnext/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts] +interface ScriptHostInterface { } + + +/home/src/lib/tsc.js -b -w project1 project2 project3 project4 --verbose --explainFiles --extendedDiagnostics +Output:: +[12:01:33 AM] Starting compilation in watch mode... + +[12:01:34 AM] Projects in this build: + * project1/tsconfig.json + * project2/tsconfig.json + * project3/tsconfig.json + * project4/tsconfig.json + +[12:01:35 AM] Project 'project1/tsconfig.json' is out of date because output file 'project1/tsconfig.tsbuildinfo' does not exist + +[12:01:36 AM] Building project '/home/src/projects/project1/tsconfig.json'... + +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:01:54 AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist + +[12:01:55 AM] Building project '/home/src/projects/project2/tsconfig.json'... + +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +node_modules/@typescript/lib-es5/index.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project2/index.ts + Matched by default include pattern '**/*' +project2/utils.d.ts + Matched by default include pattern '**/*' +[12:02:05 AM] Project 'project3/tsconfig.json' is out of date because output file 'project3/tsconfig.tsbuildinfo' does not exist + +[12:02:06 AM] Building project '/home/src/projects/project3/tsconfig.json'... + +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project3/__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 '/home/src/projects/project3/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-es5' +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project3/__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 '/home/src/projects/project3/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom' +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +node_modules/@typescript/lib-es5/index.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project3/index.ts + Matched by default include pattern '**/*' +project3/utils.d.ts + Matched by default include pattern '**/*' +[12:02:16 AM] Project 'project4/tsconfig.json' is out of date because output file 'project4/tsconfig.tsbuildinfo' does not exist + +[12:02:17 AM] Building project '/home/src/projects/project4/tsconfig.json'... + +======== Resolving module '@typescript/lib-esnext' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ======== +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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts'. +======== Module name '@typescript/lib-esnext' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project4/__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 '/home/src/projects/project4/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom' +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project4/__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. +Directory '/home/src/projects/project4/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +node_modules/@typescript/lib-esnext/index.d.ts + Library 'lib.esnext.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +node_modules/@typescript/lib-webworker/index.d.ts + Library 'lib.webworker.d.ts' specified in compilerOptions +project4/index.ts + Matched by default include pattern '**/*' +project4/utils.d.ts + Matched by default include pattern '**/*' +[12:02:27 AM] Found 0 errors. Watching for file changes. + +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file /home/src/projects/project1/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory /home/src/projects/project1/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file2.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-scripthost/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-es5/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/tsconfig.json 2000 undefined Config file /home/src/projects/project2/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project2 1 undefined Wild card directory /home/src/projects/project2/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project2 1 undefined Wild card directory /home/src/projects/project2/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/index.ts 250 undefined Source file /home/src/projects/project2/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/utils.d.ts 250 undefined Source file /home/src/projects/project2/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/tsconfig.json 2000 undefined Config file /home/src/projects/project3/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project3 1 undefined Wild card directory /home/src/projects/project3/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project3 1 undefined Wild card directory /home/src/projects/project3/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/index.ts 250 undefined Source file /home/src/projects/project3/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/utils.d.ts 250 undefined Source file /home/src/projects/project3/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/tsconfig.json 2000 undefined Config file /home/src/projects/project4/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project4 1 undefined Wild card directory /home/src/projects/project4/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project4 1 undefined Wild card directory /home/src/projects/project4/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/index.ts 250 undefined Source file /home/src/projects/project4/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/utils.d.ts 250 undefined Source file /home/src/projects/project4/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-esnext/package.json 2000 undefined package.json file /home/src/projects/project4/tsconfig.json + + +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts during emit) +/home/src/projects/project1/file2.ts (computed .d.ts during emit) +/home/src/projects/project1/index.ts (computed .d.ts during emit) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) + +Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project2/index.ts +/home/src/projects/project2/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project2/index.ts +/home/src/projects/project2/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project2/index.ts (computed .d.ts during emit) +/home/src/projects/project2/utils.d.ts (used version) + +Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project3/index.ts +/home/src/projects/project3/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project3/index.ts +/home/src/projects/project3/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project3/index.ts (computed .d.ts during emit) +/home/src/projects/project3/utils.d.ts (used version) + +Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/project4/index.ts +/home/src/projects/project4/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/project4/index.ts +/home/src/projects/project4/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-esnext/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/project4/index.ts (computed .d.ts during emit) +/home/src/projects/project4/utils.d.ts (used version) + +PolledWatches:: +/home/src/projects/node_modules/@typescript/lib-webworker/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/node_modules/@typescript/lib-scripthost/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/node_modules/@typescript/lib-es5/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/node_modules/@typescript/lib-dom/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/node_modules/@typescript/lib-esnext/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: *new* + {} +/home/src/projects/project1/core.d.ts: *new* + {} +/home/src/projects/project1/file.ts: *new* + {} +/home/src/projects/project1/file2.ts: *new* + {} +/home/src/projects/project1/index.ts: *new* + {} +/home/src/projects/project1/utils.d.ts: *new* + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: *new* + {} +/home/src/projects/project2/tsconfig.json: *new* + {} +/home/src/projects/project2/index.ts: *new* + {} +/home/src/projects/project2/utils.d.ts: *new* + {} +/home/src/projects/project3/tsconfig.json: *new* + {} +/home/src/projects/project3/index.ts: *new* + {} +/home/src/projects/project3/utils.d.ts: *new* + {} +/home/src/projects/project4/tsconfig.json: *new* + {} +/home/src/projects/project4/index.ts: *new* + {} +/home/src/projects/project4/utils.d.ts: *new* + {} + +FsWatchesRecursive:: +/home/src/projects/project1: *new* + {} +/home/src/projects/project2: *new* + {} +/home/src/projects/project3: *new* + {} +/home/src/projects/project4: *new* + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/file.d.ts] +export declare const file = 10; + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + +//// [/home/src/projects/project1/file2.d.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; + + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1901 +} + +//// [/home/src/projects/project2/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = 10; + + +//// [/home/src/projects/project2/index.d.ts] +export declare const y = 10; + + +//// [/home/src/projects/project2/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11999455899-export const y = 10", + "signature": "-7152472870-export declare const y = 10;\n" + }, + "version": "-11999455899-export const y = 10", + "signature": "-7152472870-export declare const y = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 3, + "./index.ts" + ], + [ + 4, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1053 +} + +//// [/home/src/projects/project3/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = void 0; +exports.z = 10; + + +//// [/home/src/projects/project3/index.d.ts] +export declare const z = 10; + + +//// [/home/src/projects/project3/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project3/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 3, + "./index.ts" + ], + [ + 4, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1053 +} + +//// [/home/src/projects/project4/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = void 0; +exports.z = 10; + + +//// [/home/src/projects/project4/index.d.ts] +export declare const z = 10; + + +//// [/home/src/projects/project4/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-esnext/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[4,5],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project4/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-esnext/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-esnext/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 4, + "./index.ts" + ], + [ + 5, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-esnext/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1198 +} + diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js new file mode 100644 index 0000000000000..f7ff429d8574c --- /dev/null +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js @@ -0,0 +1,1023 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + + +/home/src/lib/tsc.js -b -w project1 project2 project3 project4 --verbose --explainFiles --extendedDiagnostics +Output:: +[12:01:13 AM] Starting compilation in watch mode... + +[12:01:14 AM] Projects in this build: + * project1/tsconfig.json + * project2/tsconfig.json + * project3/tsconfig.json + * project4/tsconfig.json + +[12:01:15 AM] Project 'project1/tsconfig.json' is out of date because output file 'project1/tsconfig.tsbuildinfo' does not exist + +[12:01:16 AM] Building project '/home/src/projects/project1/tsconfig.json'... + +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-dom' was not resolved. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:01:34 AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist + +[12:01:35 AM] Building project '/home/src/projects/project2/tsconfig.json'... + +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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 '/home/src/projects/project2/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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/home/src/projects/project2/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. +======== Module name '@typescript/lib-dom' was not resolved. ======== +../lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project2/index.ts + Matched by default include pattern '**/*' +project2/utils.d.ts + Matched by default include pattern '**/*' +[12:01:45 AM] Project 'project3/tsconfig.json' is out of date because output file 'project3/tsconfig.tsbuildinfo' does not exist + +[12:01:46 AM] Building project '/home/src/projects/project3/tsconfig.json'... + +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project3/__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 '/home/src/projects/project3/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-es5' +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project3/__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 '/home/src/projects/project3/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom' +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-dom' was not resolved. ======== +../lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project3/index.ts + Matched by default include pattern '**/*' +project3/utils.d.ts + Matched by default include pattern '**/*' +[12:01:56 AM] Project 'project4/tsconfig.json' is out of date because output file 'project4/tsconfig.tsbuildinfo' does not exist + +[12:01:57 AM] Building project '/home/src/projects/project4/tsconfig.json'... + +======== Resolving module '@typescript/lib-esnext' from '/home/src/projects/project4/__lib_node_modules_lookup_lib.esnext.d.ts__.ts'. ======== +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. +Scoped package detected, looking in 'typescript__lib-esnext' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-esnext' +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. +======== Module name '@typescript/lib-esnext' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project4/__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 '/home/src/projects/project4/node_modules' does not exist, skipping all lookups in it. +Scoped package detected, looking in 'typescript__lib-dom' +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-dom' was not resolved. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project4/__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. +Directory '/home/src/projects/project4/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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +Directory '/home/src/projects/project4/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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +../lib/lib.esnext.d.ts + Library 'lib.esnext.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library 'lib.webworker.d.ts' specified in compilerOptions +project4/index.ts + Matched by default include pattern '**/*' +project4/utils.d.ts + Matched by default include pattern '**/*' +[12:02:07 AM] Found 0 errors. Watching for file changes. + +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file /home/src/projects/project1/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory /home/src/projects/project1/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file2.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-scripthost/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-es5/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/package.json 2000 undefined package.json file /home/src/projects/project1/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/tsconfig.json 2000 undefined Config file /home/src/projects/project2/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project2 1 undefined Wild card directory /home/src/projects/project2/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project2 1 undefined Wild card directory /home/src/projects/project2/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/index.ts 250 undefined Source file /home/src/projects/project2/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project2/utils.d.ts 250 undefined Source file /home/src/projects/project2/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/tsconfig.json 2000 undefined Config file /home/src/projects/project3/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project3 1 undefined Wild card directory /home/src/projects/project3/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project3 1 undefined Wild card directory /home/src/projects/project3/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/index.ts 250 undefined Source file /home/src/projects/project3/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project3/utils.d.ts 250 undefined Source file /home/src/projects/project3/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/tsconfig.json 2000 undefined Config file /home/src/projects/project4/tsconfig.json +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project4 1 undefined Wild card directory /home/src/projects/project4/tsconfig.json +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project4 1 undefined Wild card directory /home/src/projects/project4/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/index.ts 250 undefined Source file /home/src/projects/project4/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/project4/utils.d.ts 250 undefined Source file /home/src/projects/project4/tsconfig.json +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-esnext/package.json 2000 undefined package.json file /home/src/projects/project4/tsconfig.json + + +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts during emit) +/home/src/projects/project1/file2.ts (computed .d.ts during emit) +/home/src/projects/project1/index.ts (computed .d.ts during emit) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +Program root files: ["/home/src/projects/project2/index.ts","/home/src/projects/project2/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project2/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/projects/project2/index.ts +/home/src/projects/project2/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/projects/project2/index.ts +/home/src/projects/project2/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/projects/project2/index.ts (computed .d.ts during emit) +/home/src/projects/project2/utils.d.ts (used version) + +Program root files: ["/home/src/projects/project3/index.ts","/home/src/projects/project3/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project3/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/projects/project3/index.ts +/home/src/projects/project3/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/projects/project3/index.ts +/home/src/projects/project3/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/projects/project3/index.ts (computed .d.ts during emit) +/home/src/projects/project3/utils.d.ts (used version) + +Program root files: ["/home/src/projects/project4/index.ts","/home/src/projects/project4/utils.d.ts"] +Program options: {"composite":true,"lib":["lib.esnext.d.ts","lib.dom.d.ts","lib.webworker.d.ts"],"traceResolution":true,"watch":true,"explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project4/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.esnext.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/projects/project4/index.ts +/home/src/projects/project4/utils.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.esnext.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/projects/project4/index.ts +/home/src/projects/project4/utils.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.esnext.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/projects/project4/index.ts (computed .d.ts during emit) +/home/src/projects/project4/utils.d.ts (used version) + +PolledWatches:: +/home/src/projects/node_modules/@typescript/lib-webworker/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/node_modules/@typescript/lib-scripthost/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/node_modules/@typescript/lib-es5/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/project1/typeroot1/sometype/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/node_modules/@typescript/lib-dom/package.json: *new* + {"pollingInterval":2000} +/home/src/projects/node_modules/@typescript/lib-esnext/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: *new* + {} +/home/src/projects/project1/core.d.ts: *new* + {} +/home/src/projects/project1/file.ts: *new* + {} +/home/src/projects/project1/file2.ts: *new* + {} +/home/src/projects/project1/index.ts: *new* + {} +/home/src/projects/project1/utils.d.ts: *new* + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: *new* + {} +/home/src/projects/project2/tsconfig.json: *new* + {} +/home/src/projects/project2/index.ts: *new* + {} +/home/src/projects/project2/utils.d.ts: *new* + {} +/home/src/projects/project3/tsconfig.json: *new* + {} +/home/src/projects/project3/index.ts: *new* + {} +/home/src/projects/project3/utils.d.ts: *new* + {} +/home/src/projects/project4/tsconfig.json: *new* + {} +/home/src/projects/project4/index.ts: *new* + {} +/home/src/projects/project4/utils.d.ts: *new* + {} + +FsWatchesRecursive:: +/home/src/projects/project1: *new* + {} +/home/src/projects/project2: *new* + {} +/home/src/projects/project3: *new* + {} +/home/src/projects/project4: *new* + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/file.d.ts] +export declare const file = 10; + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + +//// [/home/src/projects/project1/file2.d.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; + + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "../../lib/lib.scripthost.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../../lib/lib.webworker.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1805 +} + +//// [/home/src/projects/project2/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.y = void 0; +exports.y = 10; + + +//// [/home/src/projects/project2/index.d.ts] +export declare const y = 10; + + +//// [/home/src/projects/project2/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11999455899-export const y = 10","signature":"-7152472870-export declare const y = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project2/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11999455899-export const y = 10", + "signature": "-7152472870-export declare const y = 10;\n" + }, + "version": "-11999455899-export const y = 10", + "signature": "-7152472870-export declare const y = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 3, + "./index.ts" + ], + [ + 4, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1005 +} + +//// [/home/src/projects/project3/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = void 0; +exports.z = 10; + + +//// [/home/src/projects/project3/index.d.ts] +export declare const z = 10; + + +//// [/home/src/projects/project3/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[3,4],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project3/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 3, + "./index.ts" + ], + [ + 4, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1005 +} + +//// [/home/src/projects/project4/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.z = void 0; +exports.z = 10; + + +//// [/home/src/projects/project4/index.d.ts] +export declare const z = 10; + + +//// [/home/src/projects/project4/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.esnext.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","./index.ts","./utils.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-11960320506-export const z = 10","signature":"-7483702853-export declare const z = 10;\n"},"-13729955264-export const y = 10;"],"root":[4,5],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,3,4,5],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project4/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.esnext.d.ts", + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "fileInfos": { + "../../lib/lib.esnext.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "./index.ts": { + "original": { + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "version": "-11960320506-export const z = 10", + "signature": "-7483702853-export declare const z = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + } + }, + "root": [ + [ + 4, + "./index.ts" + ], + [ + 5, + "./utils.d.ts" + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.esnext.d.ts", + "../../lib/lib.webworker.d.ts", + "./index.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1126 +} + diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js new file mode 100644 index 0000000000000..81ec67eef1a34 --- /dev/null +++ b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js @@ -0,0 +1,456 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-es5/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-esnext/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + + + +Output:: +/home/src/lib/tsc -p project1 --explainFiles +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +exitCode:: ExitStatus.Success +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"project":"/home/src/projects/project1","explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts during emit) +/home/src/projects/project1/file2.ts (computed .d.ts during emit) +/home/src/projects/project1/index.ts (computed .d.ts during emit) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) + + +//// [/home/src/projects/project1/file.d.ts] +export declare const file = 10; + + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/file2.d.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1901 +} + diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config.js b/tests/baselines/reference/tsc/libraryResolution/with-config.js new file mode 100644 index 0000000000000..da04f8f710b29 --- /dev/null +++ b/tests/baselines/reference/tsc/libraryResolution/with-config.js @@ -0,0 +1,457 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + + + +Output:: +/home/src/lib/tsc -p project1 --explainFiles +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-dom' was not resolved. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +exitCode:: ExitStatus.Success +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"project":"/home/src/projects/project1","explainFiles":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts during emit) +/home/src/projects/project1/file2.ts (computed .d.ts during emit) +/home/src/projects/project1/index.ts (computed .d.ts during emit) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + + +//// [/home/src/projects/project1/file.d.ts] +export declare const file = 10; + + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/file2.d.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "../../lib/lib.scripthost.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../../lib/lib.webworker.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1805 +} + diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js new file mode 100644 index 0000000000000..4dcdc73d74443 --- /dev/null +++ b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js @@ -0,0 +1,259 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-es5/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-esnext/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + + + +Output:: +/home/src/lib/tsc project1/core.d.ts project1/utils.d.ts project1/file.ts project1/index.ts project1/file2.ts --lib es5,dom --traceResolution --explainFiles +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/core.d.ts + Root file specified for compilation +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +exitCode:: ExitStatus.Success +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config.js b/tests/baselines/reference/tsc/libraryResolution/without-config.js new file mode 100644 index 0000000000000..62df6d65af726 --- /dev/null +++ b/tests/baselines/reference/tsc/libraryResolution/without-config.js @@ -0,0 +1,256 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + + + +Output:: +/home/src/lib/tsc project1/core.d.ts project1/utils.d.ts project1/file.ts project1/index.ts project1/file2.ts --lib es5,dom --traceResolution --explainFiles +======== 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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== 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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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. +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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== 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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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. +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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== 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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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. +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. +======== Module name '@typescript/lib-dom' was not resolved. ======== +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/core.d.ts + Root file specified for compilation +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +exitCode:: ExitStatus.Success +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js new file mode 100644 index 0000000000000..f220443ec820b --- /dev/null +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js @@ -0,0 +1,2437 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + +//// [/home/src/projects/node_modules/@typescript/lib-es5/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-esnext/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts] +interface ScriptHostInterface { } + + +/home/src/lib/tsc.js -w -p project1 --explainFiles --extendedDiagnostics +Output:: +[12:01:33 AM] Starting compilation in watch mode... + +Current directory: /home/src/projects CaseSensitiveFileNames: false +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Synchronizing program +CreatingProgramWith:: + roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file2.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Failed Lookup Locations +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:01:48 AM] Found 0 errors. Watching for file changes. + +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory + + +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts during emit) +/home/src/projects/project1/file2.ts (computed .d.ts during emit) +/home/src/projects/project1/index.ts (computed .d.ts during emit) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) + +FsWatches:: +/home/src/projects/project1/tsconfig.json: *new* + {} +/home/src/projects/project1/core.d.ts: *new* + {} +/home/src/projects/project1/file.ts: *new* + {} +/home/src/projects/project1/file2.ts: *new* + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: *new* + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: *new* + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: *new* + {} +/home/src/projects/project1/index.ts: *new* + {} +/home/src/projects/project1/utils.d.ts: *new* + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: *new* + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: *new* + {} +/home/src/projects/project1: *new* + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/file.d.ts] +export declare const file = 10; + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + +//// [/home/src/projects/project1/file2.d.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; + + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1901 +} + + +Change:: delete redirect file dom + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted + +Before running Timeout callback:: count: 1 +1: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Synchronizing program +[12:01:52 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-dom' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:05 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.dom.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/core.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.dom.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1877 +} + + +Change:: edit index + +Input:: +//// [/home/src/projects/project1/index.ts] +export const x = "type1";export const xyz = 10; + + +Before running Timeout callback:: count: 1 +2: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/index.ts 1:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/index.ts 1:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file +Synchronizing program +[12:02:11 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:21 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Completely +Program files:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/project1/index.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/project1/index.ts (computed .d.ts) + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.xyz = exports.x = void 0; +exports.x = "type1"; +exports.xyz = 10; + + +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; +export declare const xyz = 10; + + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.dom.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1930 +} + + +Change:: delete core + +Input:: +//// [/home/src/projects/project1/core.d.ts] deleted + +Before running Timeout callback:: count: 1 +4: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory +Reloading new file names and options +Synchronizing program +[12:02:26 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-dom' was not resolved. ======== +FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:30 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatches *deleted*:: +/home/src/projects/project1/core.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.dom.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1873 +} + + +Change:: write redirect file dom + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + + +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Output:: + +exitCode:: ExitStatus.undefined + + +Change:: change program options to update module resolution + +Input:: +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} + + +Before running Timeout callback:: count: 1 +5: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Reloading config file: /home/src/projects/project1/tsconfig.json +Synchronizing program +[12:02:40 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:53 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +PolledWatches:: +/home/src/projects/project1/typeroot2: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[4,3,2,1,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1897 +} + + +Change:: change program options to update module resolution and also update lib file + +Input:: +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted + +Before running Timeout callback:: count: 1 +7: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Reloading config file: /home/src/projects/project1/tsconfig.json +Synchronizing program +[12:03:01 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-dom' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:03:14 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.dom.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +PolledWatches *deleted*:: +/home/src/projects/project1/typeroot2: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.dom.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1873 +} + + +Change:: delete redirect file webworker + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted + +Before running Timeout callback:: count: 1 +8: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +Synchronizing program +[12:03:19 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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 according to earlier cached lookups. +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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. +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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-dom' was not resolved. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:03:32 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} +/home/src/lib/lib.webworker.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1849 +} + + +Change:: write redirect file webworker + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + + +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Output:: + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js new file mode 100644 index 0000000000000..b6e3cbf916200 --- /dev/null +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js @@ -0,0 +1,2053 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + + +/home/src/lib/tsc.js -w -p project1 --explainFiles --extendedDiagnostics +Output:: +[12:01:13 AM] Starting compilation in watch mode... + +Current directory: /home/src/projects CaseSensitiveFileNames: false +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Synchronizing program +CreatingProgramWith:: + roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file2.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.scripthost.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.es5.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Failed Lookup Locations +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-dom' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:01:28 AM] Found 0 errors. Watching for file changes. + +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory + + +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts during emit) +/home/src/projects/project1/file2.ts (computed .d.ts during emit) +/home/src/projects/project1/index.ts (computed .d.ts during emit) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +FsWatches:: +/home/src/projects/project1/tsconfig.json: *new* + {} +/home/src/projects/project1/core.d.ts: *new* + {} +/home/src/projects/project1/file.ts: *new* + {} +/home/src/projects/project1/file2.ts: *new* + {} +/home/src/lib/lib.webworker.d.ts: *new* + {} +/home/src/lib/lib.scripthost.d.ts: *new* + {} +/home/src/lib/lib.es5.d.ts: *new* + {} +/home/src/projects/project1/index.ts: *new* + {} +/home/src/projects/project1/utils.d.ts: *new* + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: *new* + {} +/home/src/lib/lib.dom.d.ts: *new* + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: *new* + {} +/home/src/projects/project1: *new* + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/file.d.ts] +export declare const file = 10; + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + +//// [/home/src/projects/project1/file2.d.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; + + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "../../lib/lib.scripthost.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../../lib/lib.webworker.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1805 +} + + +Change:: write redirect file dom + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + + +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Output:: + +exitCode:: ExitStatus.undefined + + +Change:: edit index + +Input:: +//// [/home/src/projects/project1/index.ts] +export const x = "type1";export const xyz = 10; + + +Before running Timeout callback:: count: 1 +1: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/index.ts 1:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/index.ts 1:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file +Synchronizing program +[12:01:37 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/core.d.ts + Matched by default include pattern '**/*' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:01:47 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Completely +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/project1/index.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/project1/index.ts (computed .d.ts) + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.xyz = exports.x = void 0; +exports.x = "type1"; +exports.xyz = 10; + + +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; +export declare const xyz = 10; + + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "../../lib/lib.scripthost.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 10 + ], + [ + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../../lib/lib.webworker.d.ts", + "./core.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1858 +} + + +Change:: delete core + +Input:: +//// [/home/src/projects/project1/core.d.ts] deleted + +Before running Timeout callback:: count: 1 +3: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory +Reloading new file names and options +Synchronizing program +[12:01:52 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:05 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/project1/core.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.webworker.d.ts", + "../../lib/lib.scripthost.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../../lib/lib.webworker.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1825 +} + + +Change:: delete redirect file dom + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted + +Before running Timeout callback:: count: 1 +4: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Synchronizing program +[12:02:10 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +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. +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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/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. +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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-dom' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:23 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "../../lib/lib.scripthost.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../../lib/lib.webworker.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1801 +} + + +Change:: change program options to update module resolution + +Input:: +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} + + +Before running Timeout callback:: count: 1 +5: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Reloading config file: /home/src/projects/project1/tsconfig.json +Synchronizing program +[12:02:31 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +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. +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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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 '/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. +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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-dom' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:32 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +PolledWatches:: +/home/src/projects/project1/typeroot2: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + + +Change:: change program options to update module resolution and also update lib file + +Input:: +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + + +Before running Timeout callback:: count: 1 +6: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Reloading config file: /home/src/projects/project1/tsconfig.json +Synchronizing program +[12:02:38 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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 '/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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:51 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +PolledWatches *deleted*:: +/home/src/projects/project1/typeroot2: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.webworker.d.ts", + "../../lib/lib.scripthost.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../../lib/lib.webworker.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1825 +} + + +Change:: write redirect file webworker + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + + +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Output:: + +exitCode:: ExitStatus.undefined + + +Change:: delete redirect file webworker + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted + +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Output:: + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js new file mode 100644 index 0000000000000..10dce6daebee9 --- /dev/null +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js @@ -0,0 +1,948 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + +//// [/home/src/projects/node_modules/@typescript/lib-es5/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-esnext/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts] +interface ScriptHostInterface { } + + +/home/src/lib/tsc.js -w project1/core.d.ts project1/utils.d.ts project1/file.ts project1/index.ts project1/file2.ts --lib es5,dom --traceResolution --explainFiles --extendedDiagnostics +Output:: +[12:01:33 AM] Starting compilation in watch mode... + +Current directory: /home/src/projects CaseSensitiveFileNames: false +Synchronizing program +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +FileWatcher:: Added:: WatchInfo: project1/core.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: project1/utils.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: project1/file.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: project1/index.ts 250 undefined Source file +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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts 250 undefined Source file +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Type roots +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/core.d.ts + Root file specified for compilation +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:01:40 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (used version) +/home/src/projects/project1/index.ts (used version) +/home/src/projects/project1/file2.ts (used version) +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) + +PolledWatches:: +/home/src/projects/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/core.d.ts: *new* + {} +/home/src/projects/project1/utils.d.ts: *new* + {} +/home/src/projects/project1/file.ts: *new* + {} +/home/src/projects/project1/index.ts: *new* + {} +/home/src/projects/project1/file2.ts: *new* + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: *new* + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: *new* + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: *new* + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + + +Change:: delete redirect file dom + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted + +Before running Timeout callback:: count: 1 +1: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Synchronizing program +[12:01:42 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.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/package.json' does not exist according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== 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/package.json' does not exist according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== 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/package.json' does not exist according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== 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/package.json' does not exist according to earlier cached lookups. +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. +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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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. +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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-dom' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +project1/core.d.ts + Root file specified for compilation +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:01:52 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: Not +Program files:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.dom.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) + +PolledWatches:: +/home/src/projects/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/core.d.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents + +Change:: edit index + +Input:: +//// [/home/src/projects/project1/index.ts] +export const x = "type1";export const xyz = 10; + + +Before running Timeout callback:: count: 1 +2: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with project1/index.ts 1:: WatchInfo: project1/index.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with project1/index.ts 1:: WatchInfo: project1/index.ts 250 undefined Source file +Synchronizing program +[12:01:55 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +project1/core.d.ts + Root file specified for compilation +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:01:59 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: Completely +Program files:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Semantic diagnostics in builder refreshed for:: +project1/index.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/project1/index.ts (computed .d.ts) + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.xyz = exports.x = void 0; +exports.x = "type1"; +exports.xyz = 10; + + + +Change:: delete core + +Input:: +//// [/home/src/projects/project1/core.d.ts] deleted + +Before running Timeout callback:: count: 1 +3: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with project1/core.d.ts 2:: WatchInfo: project1/core.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with project1/core.d.ts 2:: WatchInfo: project1/core.d.ts 250 undefined Source file +Synchronizing program +[12:02:01 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +FileWatcher:: Close:: WatchInfo: project1/core.d.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/package.json' does not exist according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +======== 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/package.json' does not exist according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== 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/package.json' does not exist according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== 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/package.json' does not exist according to earlier cached lookups. +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. +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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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. +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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-dom' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined Missing file +error TS6053: File 'project1/core.d.ts' not found. + The file is in the program because: + Root file specified for compilation + +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:02:02 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: Not +Program files:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +PolledWatches:: +/home/src/projects/node_modules/@types: + {"pollingInterval":500} +/home/src/projects/project1/core.d.ts: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatches *deleted*:: +/home/src/projects/project1/core.d.ts: + {} + +exitCode:: ExitStatus.undefined + + +Change:: write redirect file dom + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + + +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Output:: + +exitCode:: ExitStatus.undefined + + +Change:: delete redirect file webworker + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted + +Before running Timeout callback:: count: 1 +4: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +Synchronizing program +[12:02:07 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.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/package.json' does not exist according to earlier cached lookups. +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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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/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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file +======== 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/package.json' does not exist according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== 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/package.json' does not exist according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +======== 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/package.json' does not exist according to earlier cached lookups. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +error TS6053: File 'project1/core.d.ts' not found. + The file is in the program because: + Root file specified for compilation + +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:02:17 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: Not +Program files:: +/home/src/lib/lib.webworker.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +No cached semantic diagnostics in the builder:: + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) + +PolledWatches:: +/home/src/projects/node_modules/@types: + {"pollingInterval":500} +/home/src/projects/project1/core.d.ts: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/lib/lib.webworker.d.ts: *new* + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents + +Change:: write redirect file webworker + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + + +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Output:: + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js new file mode 100644 index 0000000000000..f728ec1532fc5 --- /dev/null +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js @@ -0,0 +1,823 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Input:: +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + + +/home/src/lib/tsc.js -w project1/core.d.ts project1/utils.d.ts project1/file.ts project1/index.ts project1/file2.ts --lib es5,dom --traceResolution --explainFiles --extendedDiagnostics +Output:: +[12:01:13 AM] Starting compilation in watch mode... + +Current directory: /home/src/projects CaseSensitiveFileNames: false +Synchronizing program +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +FileWatcher:: Added:: WatchInfo: project1/core.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: project1/utils.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: project1/file.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: project1/index.ts 250 undefined Source file +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file +======== 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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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. +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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.scripthost.d.ts 250 undefined Source file +======== 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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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. +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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.es5.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== 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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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. +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. +======== Module name '@typescript/lib-dom' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Type roots +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/core.d.ts + Root file specified for compilation +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:01:20 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.es5.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (used version) +/home/src/projects/project1/index.ts (used version) +/home/src/projects/project1/file2.ts (used version) + +PolledWatches:: +/home/src/projects/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/core.d.ts: *new* + {} +/home/src/projects/project1/utils.d.ts: *new* + {} +/home/src/projects/project1/file.ts: *new* + {} +/home/src/projects/project1/index.ts: *new* + {} +/home/src/projects/project1/file2.ts: *new* + {} +/home/src/lib/lib.webworker.d.ts: *new* + {} +/home/src/lib/lib.scripthost.d.ts: *new* + {} +/home/src/lib/lib.es5.d.ts: *new* + {} +/home/src/lib/lib.dom.d.ts: *new* + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.file = void 0; +exports.file = 10; + + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.x = void 0; +exports.x = "type1"; + + +//// [/home/src/projects/project1/file2.js] +/// +/// +/// + + + +Change:: write redirect file dom + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + + +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Output:: + +exitCode:: ExitStatus.undefined + + +Change:: edit index + +Input:: +//// [/home/src/projects/project1/index.ts] +export const x = "type1";export const xyz = 10; + + +Before running Timeout callback:: count: 1 +1: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with project1/index.ts 1:: WatchInfo: project1/index.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with project1/index.ts 1:: WatchInfo: project1/index.ts 250 undefined Source file +Synchronizing program +[12:01:27 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/core.d.ts + Root file specified for compilation +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:01:31 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: Completely +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Semantic diagnostics in builder refreshed for:: +project1/index.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/project1/index.ts (computed .d.ts) + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.xyz = exports.x = void 0; +exports.x = "type1"; +exports.xyz = 10; + + + +Change:: delete core + +Input:: +//// [/home/src/projects/project1/core.d.ts] deleted + +Before running Timeout callback:: count: 1 +2: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with project1/core.d.ts 2:: WatchInfo: project1/core.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with project1/core.d.ts 2:: WatchInfo: project1/core.d.ts 250 undefined Source file +Synchronizing program +[12:01:33 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +FileWatcher:: Close:: WatchInfo: project1/core.d.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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== 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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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. +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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== 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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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. +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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== 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. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined Missing file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +error TS6053: File 'project1/core.d.ts' not found. + The file is in the program because: + Root file specified for compilation + +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:01:43 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +No cached semantic diagnostics in the builder:: + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) + +PolledWatches:: +/home/src/projects/node_modules/@types: + {"pollingInterval":500} +/home/src/projects/project1/core.d.ts: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/project1/core.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents + +Change:: delete redirect file dom + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted + +Before running Timeout callback:: count: 1 +3: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Synchronizing program +[12:01:45 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== 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. +Scoped package detected, looking in 'typescript__lib-scripthost' +Directory '/home/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. +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. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== 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. +Scoped package detected, looking in 'typescript__lib-es5' +Directory '/home/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. +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. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +======== 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. +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. +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. +Scoped package detected, looking in 'typescript__lib-dom' +Directory '/home/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. +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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-dom' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-scripthost' was not resolved. ======== +======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. +======== Module name '@typescript/lib-es5' was not resolved. ======== +error TS6053: File 'project1/core.d.ts' not found. + The file is in the program because: + Root file specified for compilation + +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:01:55 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +No cached semantic diagnostics in the builder:: + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) + +PolledWatches:: +/home/src/projects/node_modules/@types: + {"pollingInterval":500} +/home/src/projects/project1/core.d.ts: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/lib/lib.dom.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents + +Change:: write redirect file webworker + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + + +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Output:: + +exitCode:: ExitStatus.undefined + + +Change:: delete redirect file webworker + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted + +Before running Timeout callback:: count: 0 +After running Timeout callback:: count: 0 +Output:: + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js new file mode 100644 index 0000000000000..721569497c886 --- /dev/null +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js @@ -0,0 +1,1320 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/lib/typesMap.json" doesn't exist +Before request +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + +//// [/home/src/projects/node_modules/@typescript/lib-es5/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-esnext/index.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + +//// [/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts] +interface ScriptHostInterface { } + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/home/src/projects/project1/index.ts" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] Search path: /home/src/projects/project1 +Info seq [hh:mm:ss:mss] For info: /home/src/projects/project1/index.ts :: Config file name: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { + "rootNames": [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" + ], + "options": { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Config: /home/src/projects/project1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Config: /home/src/projects/project1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file2.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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/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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/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:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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/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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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/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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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/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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts Text-1 "interface WebworkerInterface { }" + /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-es5/index.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts Text-1 "interface DOMInterface { }" + /home/src/projects/project1/core.d.ts Text-1 "export const core = 10;" + /home/src/projects/project1/file.ts Text-1 "export const file = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + ../node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + core.d.ts + Matched by default include pattern '**/*' + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Search path: /home/src/projects/project1 +Info seq [hh:mm:ss:mss] For info: /home/src/projects/project1/tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "responseRequired": false + } +After request + +FsWatches:: +/home/src/projects/project1/tsconfig.json: *new* + {} +/home/src/projects/project1/core.d.ts: *new* + {} +/home/src/projects/project1/file.ts: *new* + {} +/home/src/projects/project1/file2.ts: *new* + {} +/home/src/projects/project1/utils.d.ts: *new* + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: *new* + {} + +FsWatchesRecursive:: +/home/src/projects/project1: *new* + {} +/home/src/projects/node_modules: *new* + {} +/home/src/projects/project1/typeroot1: *new* + {} + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Before running Timeout callback:: count: 2 +1: /home/src/projects/project1/tsconfig.json +2: *ensureProjectForOpenFiles* +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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/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.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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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/package.json' does not exist according to earlier cached lookups. +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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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/package.json' does not exist according to earlier cached lookups. +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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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/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.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. +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" + /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts Text-1 "interface WebworkerInterface { }" + /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-es5/index.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/projects/project1/core.d.ts Text-1 "export const core = 10;" + /home/src/projects/project1/file.ts Text-1 "export const file = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + ../node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + core.d.ts + Matched by default include pattern '**/*' + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/core.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: *new* + {} + +FsWatchesRecursive:: +/home/src/projects/project1: + {} +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project1/file.ts 1:: WatchInfo: /home/src/projects/project1/file.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/file.ts 1:: WatchInfo: /home/src/projects/project1/file.ts 500 undefined WatchType: Closed Script info +Before running Timeout callback:: count: 2 +3: /home/src/projects/project1/tsconfig.json +4: *ensureProjectForOpenFiles* +//// [/home/src/projects/project1/file.ts] +export const file = 10;export const xyz = 10; + + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 3 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" + /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts Text-1 "interface WebworkerInterface { }" + /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-es5/index.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/projects/project1/core.d.ts Text-1 "export const core = 10;" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Config: /home/src/projects/project1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json, Cancelled earlier one +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Config: /home/src/projects/project1/tsconfig.json WatchType: Wild card directory +Before running Timeout callback:: count: 2 +7: /home/src/projects/project1/tsconfig.json +8: *ensureProjectForOpenFiles* +//// [/home/src/projects/project1/core.d.ts] deleted + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatches *deleted*:: +/home/src/projects/project1/core.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1: + {} +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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/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.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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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/package.json' does not exist according to earlier cached lookups. +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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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/package.json' does not exist according to earlier cached lookups. +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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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/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.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. +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" + /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts Text-1 "interface WebworkerInterface { }" + /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-es5/index.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + ../node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/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:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Before running Timeout callback:: count: 0 +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +9: /home/src/projects/project1/tsconfig.json +10: *ensureProjectForOpenFiles* +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} + + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Reloading configured project /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { + "rootNames": [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" + ], + "options": { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1", + "/home/src/projects/project1/typeroot2" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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/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.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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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/package.json' does not exist according to earlier cached lookups. +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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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/package.json' does not exist according to earlier cached lookups. +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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== +Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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/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.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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 5 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts Text-1 "interface WebworkerInterface { }" + /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-es5/index.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts Text-2 "interface DOMInterface { }" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + ../node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/projects/project1/typeroot2: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1: + {} +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json, Cancelled earlier one +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Before running Timeout callback:: count: 2 +13: /home/src/projects/project1/tsconfig.json +14: *ensureProjectForOpenFiles* +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Reloading configured project /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { + "rootNames": [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" + ], + "options": { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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/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.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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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/package.json' does not exist according to earlier cached lookups. +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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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/package.json' does not exist according to earlier cached lookups. +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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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/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.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. +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" + /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts Text-1 "interface WebworkerInterface { }" + /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-es5/index.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + ../node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +PolledWatches *deleted*:: +/home/src/projects/project1/typeroot2: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1: + {} +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Before running Timeout callback:: count: 2 +15: /home/src/projects/project1/tsconfig.json +16: *ensureProjectForOpenFiles* +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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/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.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. +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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/package.json' does not exist according to earlier cached lookups. +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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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/package.json' does not exist according to earlier cached lookups. +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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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/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.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. +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" + /home/src/lib/lib.webworker.d.ts Text-1 "interface WebWorkerInterface { }" + /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-es5/index.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + ../../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} +/home/src/lib/lib.webworker.d.ts: *new* + {} + +FsWatchesRecursive:: +/home/src/projects/project1: + {} +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/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:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Before running Timeout callback:: count: 0 +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebWorkerInterface { } + + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config.js b/tests/baselines/reference/tsserver/libraryResolution/with-config.js new file mode 100644 index 0000000000000..31162e35ce95b --- /dev/null +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config.js @@ -0,0 +1,1274 @@ +currentDirectory:: /home/src/projects useCaseSensitiveFileNames: false +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/lib/typesMap.json" doesn't exist +Before request +//// [/home/src/projects/project1/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project1/file.ts] +export const file = 10; + +//// [/home/src/projects/project1/core.d.ts] +export const core = 10; + +//// [/home/src/projects/project1/index.ts] +export const x = "type1"; + +//// [/home/src/projects/project1/file2.ts] +/// +/// +/// + + +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project1/typeroot1/sometype/index.d.ts] +export type TheNum = "type1"; + +//// [/home/src/projects/project2/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project2/index.ts] +export const y = 10 + +//// [/home/src/projects/project2/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project3/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project3/index.ts] +export const z = 10 + +//// [/home/src/projects/project3/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/project4/utils.d.ts] +export const y = 10; + +//// [/home/src/projects/project4/index.ts] +export const z = 10 + +//// [/home/src/projects/project4/tsconfig.json] +{"compilerOptions":{"composite":true,"lib":["esnext","dom","webworker"],"traceResolution":true}} + +//// [/home/src/lib/lib.es5.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.esnext.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; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/lib/lib.dom.d.ts] +interface DOMInterface { } + +//// [/home/src/lib/lib.webworker.d.ts] +interface WebWorkerInterface { } + +//// [/home/src/lib/lib.scripthost.d.ts] +interface ScriptHostInterface { } + +//// [/home/src/projects/node_modules/@typescript/unlreated/index.d.ts] +export const unrelated = 10; + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/home/src/projects/project1/index.ts" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] Search path: /home/src/projects/project1 +Info seq [hh:mm:ss:mss] For info: /home/src/projects/project1/index.ts :: Config file name: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Creating configuration project /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { + "rootNames": [ + "/home/src/projects/project1/core.d.ts", + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" + ], + "options": { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Config: /home/src/projects/project1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1 1 undefined Config: /home/src/projects/project1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/file2.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/utils.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1/sometype/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.scripthost.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" + /home/src/lib/lib.webworker.d.ts Text-1 "interface WebWorkerInterface { }" + /home/src/lib/lib.scripthost.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/project1/core.d.ts Text-1 "export const core = 10;" + /home/src/projects/project1/file.ts Text-1 "export const file = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + ../../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + ../../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + core.d.ts + Matched by default include pattern '**/*' + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Search path: /home/src/projects/project1 +Info seq [hh:mm:ss:mss] For info: /home/src/projects/project1/tsconfig.json :: No config files found. +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "responseRequired": false + } +After request + +FsWatches:: +/home/src/projects/project1/tsconfig.json: *new* + {} +/home/src/projects/project1/core.d.ts: *new* + {} +/home/src/projects/project1/file.ts: *new* + {} +/home/src/projects/project1/file2.ts: *new* + {} +/home/src/projects/project1/utils.d.ts: *new* + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: *new* + {} +/home/src/lib/lib.webworker.d.ts: *new* + {} +/home/src/lib/lib.scripthost.d.ts: *new* + {} +/home/src/lib/lib.es5.d.ts: *new* + {} +/home/src/lib/lib.dom.d.ts: *new* + {} + +FsWatchesRecursive:: +/home/src/projects/project1: *new* + {} +/home/src/projects/project1/typeroot1: *new* + {} + +Before running Timeout callback:: count: 0 +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project1/file.ts 1:: WatchInfo: /home/src/projects/project1/file.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/file.ts 1:: WatchInfo: /home/src/projects/project1/file.ts 500 undefined WatchType: Closed Script info +Before running Timeout callback:: count: 2 +1: /home/src/projects/project1/tsconfig.json +2: *ensureProjectForOpenFiles* +//// [/home/src/projects/project1/file.ts] +export const file = 10;export const xyz = 10; + + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" + /home/src/lib/lib.webworker.d.ts Text-1 "interface WebWorkerInterface { }" + /home/src/lib/lib.scripthost.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/project1/core.d.ts Text-1 "export const core = 10;" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Config: /home/src/projects/project1/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json, Cancelled earlier one +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Config: /home/src/projects/project1/tsconfig.json WatchType: Wild card directory +Before running Timeout callback:: count: 2 +5: /home/src/projects/project1/tsconfig.json +6: *ensureProjectForOpenFiles* +//// [/home/src/projects/project1/core.d.ts] deleted + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatches *deleted*:: +/home/src/projects/project1/core.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1: + {} +/home/src/projects/project1/typeroot1: + {} + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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] 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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/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:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/lib/lib.webworker.d.ts Text-1 "interface WebWorkerInterface { }" + /home/src/lib/lib.scripthost.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts Text-1 "interface DOMInterface { }" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + ../../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1: + {} +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/node_modules: *new* + {} + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/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: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Before running Timeout callback:: count: 2 +7: /home/src/projects/project1/tsconfig.json +8: *ensureProjectForOpenFiles* +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1: + {} +/home/src/projects/project1/typeroot1: + {} + +FsWatchesRecursive *deleted*:: +/home/src/projects/node_modules: + {} + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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] 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. +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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] 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. +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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" + /home/src/lib/lib.webworker.d.ts Text-1 "interface WebWorkerInterface { }" + /home/src/lib/lib.scripthost.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + ../../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + ../../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +9: /home/src/projects/project1/tsconfig.json +10: *ensureProjectForOpenFiles* +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} + + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Reloading configured project /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { + "rootNames": [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" + ], + "options": { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1", + "/home/src/projects/project1/typeroot2" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== +Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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] 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. +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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] 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. +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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 5 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" + /home/src/lib/lib.webworker.d.ts Text-1 "interface WebWorkerInterface { }" + /home/src/lib/lib.scripthost.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/projects/project1/typeroot2: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1: + {} +/home/src/projects/project1/typeroot1: + {} + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +11: /home/src/projects/project1/tsconfig.json +12: *ensureProjectForOpenFiles* +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Reloading configured project /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { + "rootNames": [ + "/home/src/projects/project1/file.ts", + "/home/src/projects/project1/file2.ts", + "/home/src/projects/project1/index.ts", + "/home/src/projects/project1/utils.d.ts", + "/home/src/projects/project1/typeroot1/sometype/index.d.ts" + ], + "options": { + "composite": true, + "typeRoots": [ + "/home/src/projects/project1/typeroot1" + ], + "lib": [ + "lib.es5.d.ts", + "lib.dom.d.ts" + ], + "traceResolution": true, + "configFilePath": "/home/src/projects/project1/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1'. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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] 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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/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:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/lib/lib.webworker.d.ts Text-1 "interface WebWorkerInterface { }" + /home/src/lib/lib.scripthost.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts Text-2 "interface DOMInterface { }" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + ../../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +After running Timeout callback:: count: 0 + +PolledWatches *deleted*:: +/home/src/projects/project1/typeroot2: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/project1: + {} +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/node_modules: *new* + {} + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker :: WatchInfo: /home/src/projects/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:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/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:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Before running Timeout callback:: count: 0 +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebWorkerInterface { } + + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/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:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Before running Timeout callback:: count: 0 +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted + +After running Timeout callback:: count: 0 From c5dc1a0de16d6d43956149a6285bc524382e5e3d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 23 Mar 2023 15:55:41 -0700 Subject: [PATCH 2/6] Maintain libPath resolution in program --- src/compiler/program.ts | 19 ++-- src/compiler/types.ts | 5 + .../reference/jsdocInTypeScript.trace.json | 11 +-- .../libTypeScriptOverrideSimple.trace.json | 3 - ...bTypeScriptOverrideSimpleConfig.trace.json | 3 - ...olutionWithExtensions_withPaths.trace.json | 9 -- .../with-config-with-redirection.js | 12 --- .../tsbuild/libraryResolution/with-config.js | 12 --- .../with-config-with-redirection.js | 12 --- .../libraryResolution/with-config.js | 12 --- .../with-config-with-redirection.js | 12 --- .../tsc/libraryResolution/with-config.js | 12 --- .../without-config-with-redirection.js | 3 - .../tsc/libraryResolution/without-config.js | 3 - .../with-config-with-redirection.js | 99 ------------------- .../tscWatch/libraryResolution/with-config.js | 78 --------------- .../without-config-with-redirection.js | 30 ------ .../libraryResolution/without-config.js | 27 ----- .../with-config-with-redirection.js | 18 ---- .../tsserver/libraryResolution/with-config.js | 15 --- .../typesVersions.ambientModules.trace.json | 48 --------- .../typesVersions.emptyTypes.trace.json | 48 --------- .../typesVersions.justIndex.trace.json | 48 --------- .../typesVersions.multiFile.trace.json | 48 --------- ...VersionsDeclarationEmit.ambient.trace.json | 48 --------- ...rsionsDeclarationEmit.multiFile.trace.json | 48 --------- ...it.multiFileBackReferenceToSelf.trace.json | 48 --------- ...ultiFileBackReferenceToUnmapped.trace.json | 48 --------- 28 files changed, 19 insertions(+), 760 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index f3bb82cb6d32e..5274ceb0901db 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1469,6 +1469,8 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg let automaticTypeDirectiveNames: string[] | undefined; let automaticTypeDirectiveResolutions: ModeAwareCache; + let resolvedLibReferences: Map | undefined; + // The below settings are to track if a .js file should be add to the program if loaded via searching under node_modules. // This works as imported modules are discovered recursively in a depth first manner, specifically: // - For each root file, findSourceFile is called. @@ -1813,6 +1815,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg sourceFileToPackageName, redirectTargetsMap, usesUriStyleNodeCoreModules, + resolvedLibReferences, isEmittedFile, getConfigFileParsingDiagnostics, getProjectReferences, @@ -2481,6 +2484,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg sourceFileToPackageName = oldProgram.sourceFileToPackageName; redirectTargetsMap = oldProgram.redirectTargetsMap; usesUriStyleNodeCoreModules = oldProgram.usesUriStyleNodeCoreModules; + resolvedLibReferences = oldProgram.resolvedLibReferences; return StructureIsReused.Completely; } @@ -2596,7 +2600,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg return equalityComparer(file.fileName, getDefaultLibraryFileName()); } else { - return some(options.lib, libFileName => equalityComparer(file.fileName, pathForLibFile(libFileName))); + return some(options.lib, libFileName => equalityComparer(file.fileName, resolvedLibReferences!.get(libFileName)!)); } } @@ -3313,7 +3317,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg const libName = toFileNameLowerCase(ref.fileName); const libFileName = libMap.get(libName); if (libFileName) { - return getSourceFile(pathForLibFile(libFileName)); + return getSourceFile(resolvedLibReferences?.get(libFileName)!); } } @@ -3810,6 +3814,8 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg } function pathForLibFile(libFileName: string): string { + const existing = resolvedLibReferences?.get(libFileName); + if (existing) return existing; // Support resolving to lib.dom.d.ts -> @typescript/lib-dom, and // lib.dom.iterable.d.ts -> @typescript/lib-dom/iterable // lib.es2015.symbol.wellknown.d.ts -> @typescript/lib-es2015/symbol-wellknown @@ -3823,10 +3829,11 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory; const resolveFrom = combinePaths(containingDirectory, `__lib_node_modules_lookup_${libFileName}__.ts`); const localOverrideModuleResult = resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ModuleResolutionKind.Node10, traceResolution: options.traceResolution }, host, moduleResolutionCache); - if (localOverrideModuleResult?.resolvedModule) { - return localOverrideModuleResult.resolvedModule.resolvedFileName; - } - return combinePaths(defaultLibraryPath, libFileName); + const result = localOverrideModuleResult?.resolvedModule ? + localOverrideModuleResult.resolvedModule.resolvedFileName : + combinePaths(defaultLibraryPath, libFileName); + (resolvedLibReferences ??= new Map()).set(libFileName, result); + return result; } function processLibReferenceDirectives(file: SourceFile) { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index f297ed469466e..ebfc3e5efd3e7 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4825,6 +4825,11 @@ export interface Program extends ScriptReferenceHost { * @internal */ readonly usesUriStyleNodeCoreModules: boolean; + /** + * Map from libFileName to actual resolved location of the lib + * @internal + */ + resolvedLibReferences: Map | undefined; /** * Is the file emitted file * diff --git a/tests/baselines/reference/jsdocInTypeScript.trace.json b/tests/baselines/reference/jsdocInTypeScript.trace.json index 1bc42de61a37c..61dfa59d735e7 100644 --- a/tests/baselines/reference/jsdocInTypeScript.trace.json +++ b/tests/baselines/reference/jsdocInTypeScript.trace.json @@ -98,9 +98,6 @@ "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-es2015/generator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/promise' from '__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -134,9 +131,6 @@ "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-es2015/reflect' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -147,8 +141,5 @@ "Loading module '@typescript/lib-es2015/symbol-wellknown' 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-es2015/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========" + "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json b/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json index 25d3245eff56e..dccd65a67e734 100644 --- a/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json +++ b/tests/baselines/reference/libTypeScriptOverrideSimple.trace.json @@ -53,9 +53,6 @@ "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.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", - "======== Resolving module '@typescript/lib-dom' from '__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-dom' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-dom' was successfully resolved to '/node_modules/@typescript/lib-dom/index.d.ts'. ========", "======== 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.", diff --git a/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json b/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json index edaf940979dad..29f58a2672345 100644 --- a/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json +++ b/tests/baselines/reference/libTypeScriptOverrideSimpleConfig.trace.json @@ -51,9 +51,6 @@ "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.", "======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", - "======== Resolving module '@typescript/lib-dom' from '/somepath/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-dom' was found in cache from location '/somepath'.", - "======== Module name '@typescript/lib-dom' was successfully resolved to '/somepath/node_modules/@typescript/lib-dom/index.d.ts'. ========", "======== Resolving module '@typescript/lib-webworker/importscripts' from '/somepath/__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.", diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json index e26357ad5c5fc..5b6cc5c41421b 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json @@ -104,9 +104,6 @@ "Scoped package detected, looking in 'typescript__lib-es2015/generator'", "Loading module '@typescript/lib-es2015/generator' from 'node_modules' folder, target file types: JavaScript.", "======== Module name '@typescript/lib-es2015/generator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/promise' from '/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -128,9 +125,6 @@ "Scoped package detected, looking in 'typescript__lib-es2015/reflect'", "Loading module '@typescript/lib-es2015/reflect' from 'node_modules' folder, target file types: JavaScript.", "======== Module name '@typescript/lib-es2015/reflect' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -138,9 +132,6 @@ "Scoped package detected, looking in 'typescript__lib-es2015/symbol-wellknown'", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: JavaScript.", "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== 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.", 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 b55a99a6329c3..842734a002151 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js @@ -210,9 +210,6 @@ File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exis File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -227,15 +224,6 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== node_modules/@typescript/lib-webworker/index.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' node_modules/@typescript/lib-scripthost/index.d.ts diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js index 4b20fbbef2600..feda485ed52d7 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js @@ -201,9 +201,6 @@ File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exis File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -228,15 +225,6 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions 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 94c79ac95c711..7231528b916ed 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js @@ -196,9 +196,6 @@ File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exis File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -213,15 +210,6 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== node_modules/@typescript/lib-webworker/index.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' node_modules/@typescript/lib-scripthost/index.d.ts diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js index f7ff429d8574c..ca32bd1b4eda2 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js @@ -187,9 +187,6 @@ File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exis File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -214,15 +211,6 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions 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 81ec67eef1a34..cd8d5d48cab23 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js @@ -200,9 +200,6 @@ File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exis File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -217,15 +214,6 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== node_modules/@typescript/lib-webworker/index.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' node_modules/@typescript/lib-scripthost/index.d.ts diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config.js b/tests/baselines/reference/tsc/libraryResolution/with-config.js index da04f8f710b29..96e2024923c7c 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config.js @@ -191,9 +191,6 @@ File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exis File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -218,15 +215,6 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions 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 4dcdc73d74443..fabb413b08864 100644 --- a/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js +++ b/tests/baselines/reference/tsc/libraryResolution/without-config-with-redirection.js @@ -187,9 +187,6 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== 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. diff --git a/tests/baselines/reference/tsc/libraryResolution/without-config.js b/tests/baselines/reference/tsc/libraryResolution/without-config.js index 62df6d65af726..6ac0052b5f69b 100644 --- a/tests/baselines/reference/tsc/libraryResolution/without-config.js +++ b/tests/baselines/reference/tsc/libraryResolution/without-config.js @@ -175,9 +175,6 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== 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. 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 f220443ec820b..e926ac0329bf0 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js @@ -203,9 +203,6 @@ Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Failed Lookup Locations -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -223,15 +220,6 @@ Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/ind FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== node_modules/@typescript/lib-webworker/index.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' node_modules/@typescript/lib-scripthost/index.d.ts @@ -559,9 +547,6 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - u Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -594,24 +579,6 @@ Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions node_modules/@typescript/lib-webworker/index.d.ts @@ -1126,9 +1093,6 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - u Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -1448,9 +1412,6 @@ File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exis File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -1469,24 +1430,6 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== node_modules/@typescript/lib-webworker/index.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' node_modules/@typescript/lib-scripthost/index.d.ts @@ -1786,9 +1729,6 @@ File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exis File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -1824,24 +1764,6 @@ FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions node_modules/@typescript/lib-webworker/index.d.ts @@ -2147,9 +2069,6 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - u Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -2181,24 +2100,6 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions ../lib/lib.webworker.d.ts diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js index b6e3cbf916200..2920b73b8f7af 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js @@ -194,9 +194,6 @@ Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Failed Lookup Locations -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -224,15 +221,6 @@ Directory '/node_modules' does not exist, skipping all lookups in it. FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Type roots -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -823,9 +811,6 @@ Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -842,24 +827,6 @@ Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/ind FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -1175,9 +1142,6 @@ Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -1208,24 +1172,6 @@ Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -1547,9 +1493,6 @@ File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exis File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -1761,9 +1704,6 @@ File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exis File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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. @@ -1781,24 +1721,6 @@ FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions 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 10dce6daebee9..3605692e5da49 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js @@ -186,9 +186,6 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - u Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== 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. @@ -365,9 +362,6 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== 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. @@ -397,15 +391,6 @@ Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions node_modules/@typescript/lib-webworker/index.d.ts @@ -627,9 +612,6 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== 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. @@ -820,9 +802,6 @@ File '/home/src/projects/node_modules/@typescript/lib-es5/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== 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. @@ -837,15 +816,6 @@ Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/ind ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: Root file specified for compilation diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js index f728ec1532fc5..649b5d9794f11 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js @@ -174,9 +174,6 @@ Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.es5.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== 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. @@ -479,9 +476,6 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== 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. @@ -496,15 +490,6 @@ Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/ind FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined Missing file -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was not resolved. ======== error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: Root file specified for compilation @@ -672,9 +657,6 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-es5' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was not resolved. ======== ======== 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. @@ -702,15 +684,6 @@ Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-scripthost' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. -======== Module name '@typescript/lib-es5' was not resolved. ======== error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: Root file specified for compilation 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 721569497c886..9c4b9a060757d 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js @@ -230,9 +230,6 @@ Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/ty Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. @@ -379,9 +376,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-e Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. @@ -628,9 +622,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-e Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. @@ -815,9 +806,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/pa Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. @@ -1004,9 +992,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/pa Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. @@ -1193,9 +1178,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-e Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config.js b/tests/baselines/reference/tsserver/libraryResolution/with-config.js index 31162e35ce95b..0a6d41c7d9029 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config.js @@ -222,9 +222,6 @@ Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/ty Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot1 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. @@ -511,9 +508,6 @@ Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping 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 '@typescript/lib-es5' was not resolved. ======== Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. @@ -728,9 +722,6 @@ Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping 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 '@typescript/lib-es5' was not resolved. ======== Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. @@ -930,9 +921,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/pa Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. @@ -1144,9 +1132,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/pa Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -Info seq [hh:mm:ss:mss] Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects/project1'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. diff --git a/tests/baselines/reference/typesVersions.ambientModules.trace.json b/tests/baselines/reference/typesVersions.ambientModules.trace.json index 6c0696dc063be..c3a144c27662f 100644 --- a/tests/baselines/reference/typesVersions.ambientModules.trace.json +++ b/tests/baselines/reference/typesVersions.ambientModules.trace.json @@ -401,9 +401,6 @@ "Directory 'tests/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-es2015/generator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/promise' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -461,9 +458,6 @@ "Directory 'tests/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-es2015/reflect' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -483,9 +477,6 @@ "Directory 'tests/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-es2015/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2016/array-include' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -543,12 +534,6 @@ "Directory 'tests/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-es2017/sharedmemory' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol-wellknown' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", "======== Resolving module '@typescript/lib-es2017/string' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -625,12 +610,6 @@ "Directory 'tests/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-es2018/asynciterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -650,9 +629,6 @@ "Directory 'tests/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-es2018/asyncgenerator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/asynciterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/asynciterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/promise' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -748,9 +724,6 @@ "Directory 'tests/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-es2019/object' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2019/string' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -846,9 +819,6 @@ "Directory 'tests/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-es2020/intl' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/intl' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/intl' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/date' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -868,9 +838,6 @@ "Directory 'tests/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-es2020/date' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/number' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -890,9 +857,6 @@ "Directory 'tests/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-es2020/number' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/promise' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -950,9 +914,6 @@ "Directory 'tests/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-es2020/string' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -972,15 +933,6 @@ "Directory 'tests/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-es2020/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2021/promise' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/typesVersions.emptyTypes.trace.json b/tests/baselines/reference/typesVersions.emptyTypes.trace.json index a196addf7bb13..aa43e1be18cf1 100644 --- a/tests/baselines/reference/typesVersions.emptyTypes.trace.json +++ b/tests/baselines/reference/typesVersions.emptyTypes.trace.json @@ -219,9 +219,6 @@ "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-es2015/generator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/promise' from '__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -255,9 +252,6 @@ "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-es2015/reflect' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -269,9 +263,6 @@ "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-es2015/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2016/array-include' from '__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -305,12 +296,6 @@ "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-es2017/sharedmemory' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol-wellknown' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", "======== Resolving module '@typescript/lib-es2017/string' from '__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -355,12 +340,6 @@ "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-es2018/asynciterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -372,9 +351,6 @@ "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-es2018/asyncgenerator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/asynciterable' from '__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/asynciterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/promise' from '__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -430,9 +406,6 @@ "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-es2019/object' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2019/string' from '__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -488,9 +461,6 @@ "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-es2020/intl' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/intl' from '__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/intl' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/date' from '__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -502,9 +472,6 @@ "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-es2020/date' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from '__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/number' from '__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -516,9 +483,6 @@ "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-es2020/number' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from '__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/promise' from '__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -552,9 +516,6 @@ "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-es2020/string' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -566,15 +527,6 @@ "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-es2020/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from '__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2021/promise' from '__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/typesVersions.justIndex.trace.json b/tests/baselines/reference/typesVersions.justIndex.trace.json index c6dd779982dc6..93b8be9074138 100644 --- a/tests/baselines/reference/typesVersions.justIndex.trace.json +++ b/tests/baselines/reference/typesVersions.justIndex.trace.json @@ -219,9 +219,6 @@ "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-es2015/generator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/promise' from '__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -255,9 +252,6 @@ "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-es2015/reflect' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -269,9 +263,6 @@ "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-es2015/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2016/array-include' from '__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -305,12 +296,6 @@ "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-es2017/sharedmemory' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from '__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol-wellknown' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", "======== Resolving module '@typescript/lib-es2017/string' from '__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -355,12 +340,6 @@ "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-es2018/asynciterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from '__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -372,9 +351,6 @@ "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-es2018/asyncgenerator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/asynciterable' from '__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/asynciterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/promise' from '__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -430,9 +406,6 @@ "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-es2019/object' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2019/string' from '__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -488,9 +461,6 @@ "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-es2020/intl' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/intl' from '__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/intl' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/date' from '__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -502,9 +472,6 @@ "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-es2020/date' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from '__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/number' from '__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -516,9 +483,6 @@ "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-es2020/number' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from '__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/promise' from '__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -552,9 +516,6 @@ "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-es2020/string' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from '__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -566,15 +527,6 @@ "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-es2020/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from '__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from '__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from '__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location '/.src'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2021/promise' from '__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/typesVersions.multiFile.trace.json b/tests/baselines/reference/typesVersions.multiFile.trace.json index 4ede443bce4ff..6b96d5b3e57bc 100644 --- a/tests/baselines/reference/typesVersions.multiFile.trace.json +++ b/tests/baselines/reference/typesVersions.multiFile.trace.json @@ -373,9 +373,6 @@ "Directory 'tests/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-es2015/generator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/promise' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -433,9 +430,6 @@ "Directory 'tests/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-es2015/reflect' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -455,9 +449,6 @@ "Directory 'tests/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-es2015/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2016/array-include' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -515,12 +506,6 @@ "Directory 'tests/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-es2017/sharedmemory' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol-wellknown' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", "======== Resolving module '@typescript/lib-es2017/string' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -597,12 +582,6 @@ "Directory 'tests/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-es2018/asynciterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -622,9 +601,6 @@ "Directory 'tests/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-es2018/asyncgenerator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/asynciterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/asynciterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/promise' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -720,9 +696,6 @@ "Directory 'tests/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-es2019/object' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2019/string' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -818,9 +791,6 @@ "Directory 'tests/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-es2020/intl' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/intl' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/intl' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/date' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -840,9 +810,6 @@ "Directory 'tests/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-es2020/date' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/number' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -862,9 +829,6 @@ "Directory 'tests/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-es2020/number' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/promise' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -922,9 +886,6 @@ "Directory 'tests/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-es2020/string' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -944,15 +905,6 @@ "Directory 'tests/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-es2020/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/moduleResolution'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2021/promise' from 'tests/cases/conformance/moduleResolution/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json index 6c7280eb34078..976ba6200a7ca 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.ambient.trace.json @@ -401,9 +401,6 @@ "Directory 'tests/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-es2015/generator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -461,9 +458,6 @@ "Directory 'tests/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-es2015/reflect' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -483,9 +477,6 @@ "Directory 'tests/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-es2015/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2016/array-include' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -543,12 +534,6 @@ "Directory 'tests/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-es2017/sharedmemory' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol-wellknown' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", "======== Resolving module '@typescript/lib-es2017/string' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -625,12 +610,6 @@ "Directory 'tests/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-es2018/asynciterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -650,9 +629,6 @@ "Directory 'tests/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-es2018/asyncgenerator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/asynciterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/asynciterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -748,9 +724,6 @@ "Directory 'tests/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-es2019/object' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2019/string' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -846,9 +819,6 @@ "Directory 'tests/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-es2020/intl' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/date' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -868,9 +838,6 @@ "Directory 'tests/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-es2020/date' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/number' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -890,9 +857,6 @@ "Directory 'tests/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-es2020/number' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -950,9 +914,6 @@ "Directory 'tests/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-es2020/string' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -972,15 +933,6 @@ "Directory 'tests/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-es2020/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2021/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json index 646f8b100c314..3e3ad31ab3752 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFile.trace.json @@ -373,9 +373,6 @@ "Directory 'tests/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-es2015/generator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -433,9 +430,6 @@ "Directory 'tests/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-es2015/reflect' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -455,9 +449,6 @@ "Directory 'tests/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-es2015/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2016/array-include' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -515,12 +506,6 @@ "Directory 'tests/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-es2017/sharedmemory' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol-wellknown' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", "======== Resolving module '@typescript/lib-es2017/string' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -597,12 +582,6 @@ "Directory 'tests/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-es2018/asynciterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -622,9 +601,6 @@ "Directory 'tests/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-es2018/asyncgenerator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/asynciterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/asynciterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -720,9 +696,6 @@ "Directory 'tests/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-es2019/object' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2019/string' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -818,9 +791,6 @@ "Directory 'tests/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-es2020/intl' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/date' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -840,9 +810,6 @@ "Directory 'tests/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-es2020/date' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/number' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -862,9 +829,6 @@ "Directory 'tests/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-es2020/number' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -922,9 +886,6 @@ "Directory 'tests/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-es2020/string' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -944,15 +905,6 @@ "Directory 'tests/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-es2020/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2021/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json index 7a252cc6513b9..046d7022c0bf8 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToSelf.trace.json @@ -396,9 +396,6 @@ "Directory 'tests/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-es2015/generator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -456,9 +453,6 @@ "Directory 'tests/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-es2015/reflect' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -478,9 +472,6 @@ "Directory 'tests/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-es2015/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2016/array-include' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -538,12 +529,6 @@ "Directory 'tests/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-es2017/sharedmemory' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol-wellknown' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", "======== Resolving module '@typescript/lib-es2017/string' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -620,12 +605,6 @@ "Directory 'tests/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-es2018/asynciterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -645,9 +624,6 @@ "Directory 'tests/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-es2018/asyncgenerator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/asynciterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/asynciterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -743,9 +719,6 @@ "Directory 'tests/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-es2019/object' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2019/string' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -841,9 +814,6 @@ "Directory 'tests/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-es2020/intl' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/date' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -863,9 +833,6 @@ "Directory 'tests/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-es2020/date' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/number' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -885,9 +852,6 @@ "Directory 'tests/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-es2020/number' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -945,9 +909,6 @@ "Directory 'tests/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-es2020/string' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -967,15 +928,6 @@ "Directory 'tests/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-es2020/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2021/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", diff --git a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json index 449a7329db504..b22c27079386a 100644 --- a/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json +++ b/tests/baselines/reference/typesVersionsDeclarationEmit.multiFileBackReferenceToUnmapped.trace.json @@ -379,9 +379,6 @@ "Directory 'tests/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-es2015/generator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -439,9 +436,6 @@ "Directory 'tests/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-es2015/reflect' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2015/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -461,9 +455,6 @@ "Directory 'tests/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-es2015/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", "======== Resolving module '@typescript/lib-es2016/array-include' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2016.array.include.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2016/array-include' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -521,12 +512,6 @@ "Directory 'tests/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-es2017/sharedmemory' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.wellknown.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol-wellknown' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol-wellknown' was not resolved. ========", "======== Resolving module '@typescript/lib-es2017/string' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2017.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2017/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -603,12 +588,6 @@ "Directory 'tests/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-es2018/asynciterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/asyncgenerator' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.asyncgenerator.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/asyncgenerator' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -628,9 +607,6 @@ "Directory 'tests/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-es2018/asyncgenerator' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/asynciterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.asynciterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/asynciterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2018/asynciterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2018/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2018/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -726,9 +702,6 @@ "Directory 'tests/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-es2019/object' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2019/string' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2019.string.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2019/string' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -824,9 +797,6 @@ "Directory 'tests/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-es2020/intl' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2018/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2018.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2018/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2018/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/date' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.date.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/date' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -846,9 +816,6 @@ "Directory 'tests/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-es2020/date' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/number' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.number.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/number' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -868,9 +835,6 @@ "Directory 'tests/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-es2020/number' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -928,9 +892,6 @@ "Directory 'tests/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-es2020/string' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", "======== Resolving module '@typescript/lib-es2020/symbol-wellknown' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.symbol.wellknown.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2020/symbol-wellknown' from 'node_modules' folder, target file types: TypeScript, Declaration.", @@ -950,15 +911,6 @@ "Directory 'tests/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-es2020/symbol-wellknown' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/iterable' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.iterable.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/iterable' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/iterable' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2015/symbol' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2015.symbol.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2015/symbol' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2015/symbol' was not resolved. ========", - "======== Resolving module '@typescript/lib-es2020/intl' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2020.intl.d.ts__.ts'. ========", - "Resolution for module '@typescript/lib-es2020/intl' was found in cache from location 'tests/cases/conformance/declarationEmit'.", - "======== Module name '@typescript/lib-es2020/intl' was not resolved. ========", "======== Resolving module '@typescript/lib-es2021/promise' from 'tests/cases/conformance/declarationEmit/__lib_node_modules_lookup_lib.es2021.promise.d.ts__.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module '@typescript/lib-es2021/promise' from 'node_modules' folder, target file types: TypeScript, Declaration.", From fc8c4da615d5e1da72829bc239fd5ef271fa5ad6 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 14 Apr 2023 12:04:54 -0700 Subject: [PATCH 3/6] Add resolveLibrary method on hosts so that library resolution can be reused Fixes #52759, #52707 --- src/compiler/moduleNameResolver.ts | 14 +- src/compiler/program.ts | 130 +- src/compiler/resolutionCache.ts | 119 +- src/compiler/tsbuildPublic.ts | 18 +- src/compiler/types.ts | 18 +- src/compiler/watchPublic.ts | 25 +- src/server/project.ts | 13 +- src/services/services.ts | 5 +- src/services/types.ts | 9 + .../unittests/reuseProgramStructure.ts | 1 + .../reference/api/tsserverlibrary.d.ts | 12 +- tests/baselines/reference/api/typescript.d.ts | 12 +- .../with-config-with-redirection.js | 27 +- .../tsbuild/libraryResolution/with-config.js | 57 +- .../with-config-with-redirection.js | 27 +- .../libraryResolution/with-config.js | 57 +- .../with-config-with-redirection.js | 795 ++++---- .../tscWatch/libraryResolution/with-config.js | 1661 +++++++++++------ .../without-config-with-redirection.js | 438 +++-- .../libraryResolution/without-config.js | 597 ++++-- ...re-open-detects-correct-default-project.js | 22 +- .../with-config-with-redirection.js | 578 +++--- .../tsserver/libraryResolution/with-config.js | 819 ++++---- 23 files changed, 3266 insertions(+), 2188 deletions(-) diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index d890310f0e979..ec5cfb640b12d 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -1249,13 +1249,14 @@ function createModuleOrTypeReferenceResolutionCache( export function createModuleResolutionCache( currentDirectory: string, getCanonicalFileName: (s: string) => string, - options?: CompilerOptions + options?: CompilerOptions, + packageJsonInfoCache?: PackageJsonInfoCache, ): ModuleResolutionCache { const result = createModuleOrTypeReferenceResolutionCache( currentDirectory, getCanonicalFileName, options, - /*packageJsonInfoCache*/ undefined, + packageJsonInfoCache, getOriginalOrResolvedModuleFileName, ) as ModuleResolutionCache; result.getOrCreateCacheForModuleName = (nonRelativeName, mode, redirectedReference) => result.getOrCreateCacheForNonRelativeName(nonRelativeName, mode, redirectedReference); @@ -1277,6 +1278,15 @@ export function createTypeReferenceDirectiveResolutionCache( ); } +/** @internal */ +export function getOptionsForLibraryResolution(options: CompilerOptions) { + return { moduleResolution: ModuleResolutionKind.Node10, traceResolution: options.traceResolution }; +} + +export function resolveLibrary(libraryName: string, resolveFrom: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations { + return resolveModuleName(libraryName, resolveFrom, getOptionsForLibraryResolution(compilerOptions), host, cache); +} + export function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined { const containingDirectory = getDirectoryPath(containingFile); return cache.getFromDirectoryCache(moduleName, mode, containingDirectory, /*redirectedReference*/ undefined); diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 5274ceb0901db..dfb6ed2902029 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -156,6 +156,7 @@ import { HasChangedAutomaticTypeDirectiveNames, hasChangesInResolutions, hasExtension, + HasInvalidatedLibResolutions, HasInvalidatedResolutions, hasJSDocNodes, hasJSFileExtension, @@ -211,6 +212,7 @@ import { JsxEmit, length, libMap, + LibResolution, libs, mapDefined, mapDefinedIterator, @@ -276,6 +278,7 @@ import { ResolvedModuleWithFailedLookupLocations, ResolvedProjectReference, ResolvedTypeReferenceDirectiveWithFailedLookupLocations, + resolveLibrary, resolveModuleName, resolveTypeReferenceDirective, returnFalse, @@ -1097,6 +1100,32 @@ function forEachProjectReference( /** @internal */ export const inferredTypesContainingFile = "__inferred type names__.ts"; +/** @internal */ +export function getInferredLibraryNameResolveFrom(options: CompilerOptions, currentDirectory: string, libFileName: string) { + const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory; + return combinePaths(containingDirectory, `__lib_node_modules_lookup_${libFileName}__.ts`); +} + +function getLibraryNameFromLibFileName(libFileName: string) { + // Support resolving to lib.dom.d.ts -> @typescript/lib-dom, and + // lib.dom.iterable.d.ts -> @typescript/lib-dom/iterable + // lib.es2015.symbol.wellknown.d.ts -> @typescript/lib-es2015/symbol-wellknown + const components = libFileName.split("."); + let path = components[1]; + let i = 2; + while (components[i] && components[i] !== "d") { + path += (i === 2 ? "/" : "-") + components[i]; + i++; + } + return "@typescript/lib-" + path; +} + +function getLibFileNameFromLibReference(libReference: FileReference) { + const libName = toFileNameLowerCase(libReference.fileName); + const libFileName = libMap.get(libName); + return { libName, libFileName }; +} + interface DiagnosticCache { perFile?: Map; allDiagnostics?: readonly T[]; @@ -1176,6 +1205,7 @@ export function isProgramUptoDate( getSourceVersion: (path: Path, fileName: string) => string | undefined, fileExists: (fileName: string) => boolean, hasInvalidatedResolutions: HasInvalidatedResolutions, + hasInvalidatedLibResolutions: HasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames: HasChangedAutomaticTypeDirectiveNames | undefined, getParsedCommandLine: (fileName: string) => ParsedCommandLine | undefined, projectReferences: readonly ProjectReference[] | undefined @@ -1201,6 +1231,8 @@ export function isProgramUptoDate( // If the compilation settings do no match, then the program is not up-to-date if (!compareDataObjects(currentOptions, newOptions)) return false; + if (some(newOptions.lib, hasInvalidatedLibResolutions)) return false; + // If everything matches but the text of config file is changed, // error locations can change for program options, so update the program if (currentOptions.configFile && newOptions.configFile) return currentOptions.configFile.text === newOptions.configFile.text; @@ -1209,7 +1241,11 @@ export function isProgramUptoDate( function sourceFileNotUptoDate(sourceFile: SourceFile) { return !sourceFileVersionUptoDate(sourceFile) || - hasInvalidatedResolutions(sourceFile.path); + hasInvalidatedResolutions(sourceFile.path) || + some(sourceFile.libReferenceDirectives, libRef => { + const { libFileName } = getLibFileNameFromLibReference(libRef); + return !!libFileName && hasInvalidatedLibResolutions(libFileName); + }); } function sourceFileVersionUptoDate(sourceFile: SourceFile) { @@ -1469,7 +1505,8 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg let automaticTypeDirectiveNames: string[] | undefined; let automaticTypeDirectiveResolutions: ModeAwareCache; - let resolvedLibReferences: Map | undefined; + let resolvedLibReferences: Map | undefined; + let resolvedLibProcessing: Map | undefined; // The below settings are to track if a .js file should be add to the program if loaded via searching under node_modules. // This works as imported modules are discovered recursively in a depth first manner, specifically: @@ -1594,6 +1631,17 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg ); } + const hasInvalidatedLibResolutions = host.hasInvalidatedLibResolutions || returnFalse; + let actualResolveLibrary: (libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string) => ResolvedModuleWithFailedLookupLocations; + if (host.resolveLibrary) { + actualResolveLibrary = host.resolveLibrary.bind(host); + } + else { + const libraryResolutionCache = createModuleResolutionCache(currentDirectory, getCanonicalFileName, options, moduleResolutionCache?.getPackageJsonInfoCache()); + actualResolveLibrary = (libraryName, resolveFrom, options) => + resolveLibrary(libraryName, resolveFrom, options, host, libraryResolutionCache); + } + // Map from a stringified PackageId to the source file with that id. // Only one source file may have a given packageId. Others become redirects (see createRedirectSourceFile). // `packageIdToSourceFile` is only used while building the program, while `sourceFileToPackageName` and `isSourceFileTargetOfRedirect` are kept around. @@ -1774,6 +1822,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg // unconditionally set oldProgram to undefined to prevent it from being captured in closure oldProgram = undefined; + resolvedLibProcessing = undefined; const program: Program = { getRootFileNames: () => rootNames, @@ -2444,6 +2493,11 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg return StructureIsReused.SafeModules; } + if (oldProgram.resolvedLibReferences && + forEachEntry(oldProgram.resolvedLibReferences, (resolution, libFileName) => pathForLibFileWorker(libFileName).actual !== resolution.actual)) { + return StructureIsReused.SafeModules; + } + if (host.hasChangedAutomaticTypeDirectiveNames) { if (host.hasChangedAutomaticTypeDirectiveNames()) return StructureIsReused.SafeModules; } @@ -2600,7 +2654,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg return equalityComparer(file.fileName, getDefaultLibraryFileName()); } else { - return some(options.lib, libFileName => equalityComparer(file.fileName, resolvedLibReferences!.get(libFileName)!)); + return some(options.lib, libFileName => equalityComparer(file.fileName, resolvedLibReferences!.get(libFileName)!.actual)); } } @@ -3314,11 +3368,9 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg } function getLibFileFromReference(ref: FileReference) { - const libName = toFileNameLowerCase(ref.fileName); - const libFileName = libMap.get(libName); - if (libFileName) { - return getSourceFile(resolvedLibReferences?.get(libFileName)!); - } + const { libFileName } = getLibFileNameFromLibReference(ref); + const actualFileName = libFileName && resolvedLibReferences?.get(libFileName)?.actual; + return actualFileName !== undefined ? getSourceFile(actualFileName) : undefined; } /** This should have similar behavior to 'processSourceFile' without diagnostics or mutation. */ @@ -3815,31 +3867,55 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg function pathForLibFile(libFileName: string): string { const existing = resolvedLibReferences?.get(libFileName); - if (existing) return existing; - // Support resolving to lib.dom.d.ts -> @typescript/lib-dom, and - // lib.dom.iterable.d.ts -> @typescript/lib-dom/iterable - // lib.es2015.symbol.wellknown.d.ts -> @typescript/lib-es2015/symbol-wellknown - const components = libFileName.split("."); - let path = components[1]; - let i = 2; - while (components[i] && components[i] !== "d") { - path += (i === 2 ? "/" : "-") + components[i]; - i++; - } - const containingDirectory = options.configFilePath ? getDirectoryPath(options.configFilePath) : currentDirectory; - const resolveFrom = combinePaths(containingDirectory, `__lib_node_modules_lookup_${libFileName}__.ts`); - const localOverrideModuleResult = resolveModuleName("@typescript/lib-" + path, resolveFrom, { moduleResolution: ModuleResolutionKind.Node10, traceResolution: options.traceResolution }, host, moduleResolutionCache); - const result = localOverrideModuleResult?.resolvedModule ? - localOverrideModuleResult.resolvedModule.resolvedFileName : - combinePaths(defaultLibraryPath, libFileName); + if (existing) return existing.actual; + const result = pathForLibFileWorker(libFileName); (resolvedLibReferences ??= new Map()).set(libFileName, result); + return result.actual; + } + + function pathForLibFileWorker(libFileName: string): LibResolution { + const existing = resolvedLibProcessing?.get(libFileName); + if (existing) return existing; + + if (structureIsReused !== StructureIsReused.Not && oldProgram && !hasInvalidatedLibResolutions(libFileName)) { + const oldResolution = oldProgram.resolvedLibReferences?.get(libFileName); + if (oldResolution) { + if (oldResolution.resolution && isTraceEnabled(options, host)) { + const libraryName = getLibraryNameFromLibFileName(libFileName); + const resolveFrom = getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName); + trace(host, + oldResolution.resolution.resolvedModule ? + oldResolution.resolution.resolvedModule.packageId ? + Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : + Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : + Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved, + libraryName, + getNormalizedAbsolutePath(resolveFrom, currentDirectory), + oldResolution.resolution.resolvedModule?.resolvedFileName, + oldResolution.resolution.resolvedModule?.packageId && packageIdToString(oldResolution.resolution.resolvedModule.packageId) + ); + } + (resolvedLibProcessing ??= new Map()).set(libFileName, oldResolution); + return oldResolution; + } + } + + const libraryName = getLibraryNameFromLibFileName(libFileName); + const resolveFrom = getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName); + const resolution = actualResolveLibrary(libraryName, resolveFrom, options, libFileName); + const result: LibResolution = { + resolution, + actual: resolution.resolvedModule ? + resolution.resolvedModule.resolvedFileName : + combinePaths(defaultLibraryPath, libFileName) + }; + (resolvedLibProcessing ??= new Map()).set(libFileName, result); return result; } function processLibReferenceDirectives(file: SourceFile) { forEach(file.libReferenceDirectives, (libReference, index) => { - const libName = toFileNameLowerCase(libReference.fileName); - const libFileName = libMap.get(libName); + const { libName, libFileName } = getLibFileNameFromLibReference(libReference); if (libFileName) { // we ignore any 'no-default-lib' reference set on this file. processRootFile(pathForLibFile(libFileName), /*isDefaultLib*/ true, /*ignoreNoDefaultLib*/ true, { kind: FileIncludeKind.LibReferenceDirective, file: file.path, index, }); diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index a8f2618400c6b..31c0818e1280b 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -26,9 +26,12 @@ import { GetCanonicalFileName, getDirectoryPath, getEffectiveTypeRoots, + getInferredLibraryNameResolveFrom, getNormalizedAbsolutePath, + getOptionsForLibraryResolution, getPathComponents, getPathFromPathComponents, + HasInvalidatedLibResolutions, HasInvalidatedResolutions, hasTrailingDirectorySeparator, ignoredPaths, @@ -63,6 +66,7 @@ import { ResolvedModuleWithFailedLookupLocations, ResolvedProjectReference, ResolvedTypeReferenceDirectiveWithFailedLookupLocations, + resolveLibrary as ts_resolveLibrary, resolveModuleName as ts_resolveModuleName, returnTrue, some, @@ -75,6 +79,11 @@ import { WatchDirectoryFlags, } from "./_namespaces/ts"; +/** @internal */ +export interface HasInvalidatedFromResolutionCache { + hasInvalidatedResolutions: HasInvalidatedResolutions; + hasInvalidatedLibResolutions: HasInvalidatedLibResolutions; +} /** * This is the cache of module/typedirectives resolution that can be retained across program * @@ -100,7 +109,12 @@ export interface ResolutionCache { containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined ): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; - + resolveLibrary( + libraryName: string, + resolveFrom: string, + options: CompilerOptions, + libFileName: string, + ): ResolvedModuleWithFailedLookupLocations; resolveSingleModuleNameWithoutWatching( moduleName: string, containingFile: string, @@ -111,7 +125,10 @@ export interface ResolutionCache { removeResolutionsOfFile(filePath: Path): void; removeResolutionsFromProjectReferenceRedirects(filePath: Path): void; setFilesWithInvalidatedNonRelativeUnresolvedImports(filesWithUnresolvedImports: Map): void; - createHasInvalidatedResolutions(customHasInvalidatedResolutions: HasInvalidatedResolutions): HasInvalidatedResolutions; + createHasInvalidatedResolutions( + customHasInvalidatedResolutions: HasInvalidatedResolutions, + customHasInvalidatedLibResolutions: HasInvalidatedLibResolutions, + ): HasInvalidatedFromResolutionCache; hasChangedAutomaticTypeDirectiveNames(): boolean; isFileWithInvalidatedNonRelativeUnresolvedImports(path: Path): boolean; @@ -413,7 +430,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD let failedLookupChecks: Set | undefined; let startsWithPathChecks: Set | undefined; let isInDirectoryChecks: Set | undefined; - let allResolutionsAreInvalidated = false; + let allModuleAndTypeResolutionsAreInvalidated = false; const getCurrentDirectory = memoize(() => resolutionHost.getCurrentDirectory!()); // TODO: GH#18217 const cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost(); @@ -436,6 +453,14 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD moduleResolutionCache.getPackageJsonInfoCache(), ); + const resolvedLibraries = new Map(); + const libraryResolutionCache = createModuleResolutionCache( + getCurrentDirectory(), + resolutionHost.getCanonicalFileName, + getOptionsForLibraryResolution(resolutionHost.getCompilationSettings()), + moduleResolutionCache.getPackageJsonInfoCache(), + ); + const directoryWatchesOfFailedLookups = new Map(); const fileWatchesOfAffectingLocations = new Map(); const rootDir = getRootDirectoryOfResolutionCache(rootDirForResolution, getCurrentDirectory); @@ -455,6 +480,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD finishCachingPerDirectoryResolution, resolveModuleNameLiterals, resolveTypeReferenceDirectiveReferences, + resolveLibrary, resolveSingleModuleNameWithoutWatching, removeResolutionsFromProjectReferenceRedirects, removeResolutionsOfFile, @@ -493,17 +519,19 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD isInDirectoryChecks = undefined; affectingPathChecks = undefined; affectingPathChecksForFile = undefined; - allResolutionsAreInvalidated = false; + allModuleAndTypeResolutionsAreInvalidated = false; moduleResolutionCache.clear(); typeReferenceDirectiveResolutionCache.clear(); moduleResolutionCache.update(resolutionHost.getCompilationSettings()); typeReferenceDirectiveResolutionCache.update(resolutionHost.getCompilationSettings()); + libraryResolutionCache.clear(); impliedFormatPackageJsons.clear(); + resolvedLibraries.clear(); hasChangedAutomaticTypeDirectiveNames = false; } function onChangesAffectModuleResolution() { - allResolutionsAreInvalidated = true; + allModuleAndTypeResolutionsAreInvalidated = true; moduleResolutionCache.clearAllExceptPackageJsonInfoCache(); typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache(); moduleResolutionCache.update(resolutionHost.getCompilationSettings()); @@ -530,33 +558,55 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD return !!value && !!value.length; } - function createHasInvalidatedResolutions(customHasInvalidatedResolutions: HasInvalidatedResolutions): HasInvalidatedResolutions { + function createHasInvalidatedResolutions( + customHasInvalidatedResolutions: HasInvalidatedResolutions, + customHasInvalidatedLibResolutions: HasInvalidatedLibResolutions, + ): HasInvalidatedFromResolutionCache { // Ensure pending resolutions are applied invalidateResolutionsOfFailedLookupLocations(); const collected = filesWithInvalidatedResolutions; filesWithInvalidatedResolutions = undefined; - return path => customHasInvalidatedResolutions(path) || - allResolutionsAreInvalidated || - !!collected?.has(path) || - isFileWithInvalidatedNonRelativeUnresolvedImports(path); + return { + hasInvalidatedResolutions: path => customHasInvalidatedResolutions(path) || + allModuleAndTypeResolutionsAreInvalidated || + !!collected?.has(path) || + isFileWithInvalidatedNonRelativeUnresolvedImports(path), + hasInvalidatedLibResolutions: libFileName => customHasInvalidatedLibResolutions(libFileName) || + !!resolvedLibraries?.get(libFileName)?.isInvalidated, + }; } function startCachingPerDirectoryResolution() { moduleResolutionCache.clearAllExceptPackageJsonInfoCache(); typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache(); + libraryResolutionCache.clearAllExceptPackageJsonInfoCache(); // perDirectoryResolvedModuleNames and perDirectoryResolvedTypeReferenceDirectives could be non empty if there was exception during program update // (between startCachingPerDirectoryResolution and finishCachingPerDirectoryResolution) nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions); nonRelativeExternalModuleResolutions.clear(); } + function cleanupLibResolutionWatching(newProgram: Program | undefined) { + resolvedLibraries.forEach((resolution, libFileName) => { + if (!newProgram?.resolvedLibReferences?.has(libFileName)) { + stopWatchFailedLookupLocationOfResolution( + resolution, + resolutionHost.toPath(getInferredLibraryNameResolveFrom(newProgram!.getCompilerOptions(), getCurrentDirectory(), libFileName)), + getResolvedModule, + ); + resolvedLibraries.delete(libFileName); + } + }); + } + function finishCachingPerDirectoryResolution(newProgram: Program | undefined, oldProgram: Program | undefined) { filesWithInvalidatedNonRelativeUnresolvedImports = undefined; - allResolutionsAreInvalidated = false; + allModuleAndTypeResolutionsAreInvalidated = false; nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions); nonRelativeExternalModuleResolutions.clear(); // Update file watches if (newProgram !== oldProgram) { + cleanupLibResolutionWatching(newProgram); newProgram?.getSourceFiles().forEach(newFile => { const expected = isExternalOrCommonJsModule(newFile) ? newFile.packageJsonLocations?.length ?? 0 : 0; const existing = impliedFormatPackageJsons.get(newFile.path) ?? emptyArray; @@ -685,7 +735,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD let resolution = resolutionsInFile.get(name, mode); // Resolution is valid if it is present and not invalidated if (!seenNamesInFile.has(name, mode) && - (allResolutionsAreInvalidated || unmatchedRedirects || !resolution || resolution.isInvalidated || + (allModuleAndTypeResolutionsAreInvalidated || unmatchedRedirects || !resolution || resolution.isInvalidated || // If the name is unresolved import that was invalidated, recalculate (hasInvalidatedNonRelativeUnresolvedImport && !isExternalModuleNameRelative(name) && shouldRetryResolution(resolution)))) { const existingResolution = resolution; @@ -825,6 +875,44 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD }); } + function resolveLibrary( + libraryName: string, + resolveFrom: string, + options: CompilerOptions, + libFileName: string, + ) { + const host = resolutionHost.getCompilerHost?.() || resolutionHost; + let resolution = resolvedLibraries?.get(libFileName); + if (!resolution || resolution.isInvalidated) { + const existingResolution = resolution; + resolution = ts_resolveLibrary(libraryName, resolveFrom, options, host, libraryResolutionCache); + const path = resolutionHost.toPath(resolveFrom); + watchFailedLookupLocationsOfExternalModuleResolutions(libraryName, resolution, path, getResolvedModule, /*deferWatchingNonRelativeResolution*/ false); + resolvedLibraries.set(libFileName, resolution); + if (existingResolution) { + stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolvedModule); + } + } + else { + if (isTraceEnabled(options, host)) { + const resolved = getResolvedModule(resolution); + trace( + host, + resolved?.resolvedFileName ? + resolved.packageId ? + Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 : + Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 : + Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved, + libraryName, + resolveFrom, + resolved?.resolvedFileName, + resolved?.packageId && packageIdToString(resolved.packageId) + ); + } + } + return resolution; + } + function resolveSingleModuleNameWithoutWatching(moduleName: string, containingFile: string) { const path = resolutionHost.toPath(containingFile); const resolutionsInFile = resolvedModuleNames.get(path); @@ -1098,7 +1186,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD removeResolutionsOfFileFromCache(resolvedTypeReferenceDirectives, filePath, getResolvedTypeReferenceDirective); } - function invalidateResolutions(resolutions: Set | undefined, canInvalidate: (resolution: ResolutionWithFailedLookupLocations) => boolean | undefined) { + function invalidateResolutions(resolutions: Set | Map | undefined, canInvalidate: (resolution: ResolutionWithFailedLookupLocations) => boolean | undefined) { if (!resolutions) return false; let invalidated = false; resolutions.forEach(resolution => { @@ -1185,9 +1273,12 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD } function invalidateResolutionsOfFailedLookupLocations() { - if (allResolutionsAreInvalidated) { + if (allModuleAndTypeResolutionsAreInvalidated) { affectingPathChecksForFile = undefined; invalidatePackageJsonMap(); + if (failedLookupChecks || startsWithPathChecks || isInDirectoryChecks || affectingPathChecks) { + invalidateResolutions(resolvedLibraries, canInvalidateFailedLookupResolution); + } failedLookupChecks = undefined; startsWithPathChecks = undefined; isInDirectoryChecks = undefined; diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index 95668468d36f0..3bc998eb7dc26 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -99,6 +99,7 @@ import { ReadBuildProgramHost, resolveConfigFileProjectName, ResolvedConfigFileName, + resolveLibrary, resolvePath, resolveProjectReferencePath, returnUndefined, @@ -394,6 +395,7 @@ interface SolutionBuilderState extends WatchFactory(watch: boolean, ho compilerHost.getParsedCommandLine = fileName => parseConfigFile(state, fileName as ResolvedConfigFileName, toResolvedConfigFilePath(state, fileName as ResolvedConfigFileName)); compilerHost.resolveModuleNameLiterals = maybeBind(host, host.resolveModuleNameLiterals); compilerHost.resolveTypeReferenceDirectiveReferences = maybeBind(host, host.resolveTypeReferenceDirectiveReferences); + compilerHost.resolveLibrary = maybeBind(host, host.resolveLibrary); compilerHost.resolveModuleNames = maybeBind(host, host.resolveModuleNames); compilerHost.resolveTypeReferenceDirectives = maybeBind(host, host.resolveTypeReferenceDirectives); compilerHost.getModuleResolutionCache = maybeBind(host, host.getModuleResolutionCache); @@ -465,6 +468,17 @@ function createSolutionBuilderState(watch: boolean, ho createTypeReferenceResolutionLoader, ); } + let libraryResolutionCache: ModuleResolutionCache | undefined; + if (!compilerHost.resolveLibrary) { + libraryResolutionCache = createModuleResolutionCache(compilerHost.getCurrentDirectory(), compilerHost.getCanonicalFileName, /*options*/ undefined, moduleResolutionCache?.getPackageJsonInfoCache()); + compilerHost.resolveLibrary = (libraryName, resolveFrom, options) => resolveLibrary( + libraryName, + resolveFrom, + options, + host, + libraryResolutionCache, + ); + } compilerHost.getBuildInfo = (fileName, configFilePath) => getBuildInfo(state, fileName, toResolvedConfigFilePath(state, configFilePath as ResolvedConfigFileName), /*modifiedTime*/ undefined); const { watchFile, watchDirectory, writeLog } = createWatchFactory(hostWithWatch, options); @@ -496,6 +510,7 @@ function createSolutionBuilderState(watch: boolean, ho compilerHost, moduleResolutionCache, typeReferenceDirectiveResolutionCache, + libraryResolutionCache, // Mutable state buildOrder: undefined, @@ -747,7 +762,7 @@ function enableCache(state: SolutionBuilderState) { function disableCache(state: SolutionBuilderState) { if (!state.cache) return; - const { cache, host, compilerHost, extendedConfigCache, moduleResolutionCache, typeReferenceDirectiveResolutionCache } = state; + const { cache, host, compilerHost, extendedConfigCache, moduleResolutionCache, typeReferenceDirectiveResolutionCache, libraryResolutionCache } = state; host.readFile = cache.originalReadFile; host.fileExists = cache.originalFileExists; @@ -759,6 +774,7 @@ function disableCache(state: SolutionBuilderState) extendedConfigCache.clear(); moduleResolutionCache?.clear(); typeReferenceDirectiveResolutionCache?.clear(); + libraryResolutionCache?.clear(); state.cache = undefined; } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index ebfc3e5efd3e7..38baa167b7c4a 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -4725,6 +4725,12 @@ export const enum EmitOnly{ Js, Dts, } + +/** @internal */ +export interface LibResolution { + resolution: T; + actual: string; +} export interface Program extends ScriptReferenceHost { getCurrentDirectory(): string; /** @@ -4829,7 +4835,7 @@ export interface Program extends ScriptReferenceHost { * Map from libFileName to actual resolved location of the lib * @internal */ - resolvedLibReferences: Map | undefined; + resolvedLibReferences: Map | undefined; /** * Is the file emitted file * @@ -7746,6 +7752,8 @@ export interface ResolvedTypeReferenceDirectiveWithFailedLookupLocations { /** @internal */ export type HasInvalidatedResolutions = (sourceFile: Path) => boolean; /** @internal */ +export type HasInvalidatedLibResolutions = (libFileName: string) => boolean; +/** @internal */ export type HasChangedAutomaticTypeDirectiveNames = () => boolean; export interface CompilerHost extends ModuleResolutionHost { @@ -7796,6 +7804,14 @@ export interface CompilerHost extends ModuleResolutionHost { containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined ): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + resolveLibrary?( + libraryName: string, + resolveFrom: string, + options: CompilerOptions, + libFileName: string, + ): ResolvedModuleWithFailedLookupLocations; + /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + hasInvalidatedLibResolutions?(libFileName: string): boolean; getEnvironmentVariable?(name: string): string | undefined; /** @internal */ onReleaseOldSourceFile?(oldSourceFile: SourceFile, oldOptions: CompilerOptions, hasSourceFileByPath: boolean): void; /** @internal */ onReleaseParsedCommandLine?(configFileName: string, oldResolvedRef: ResolvedProjectReference | undefined, optionOptions: CompilerOptions): void; diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index f72c400592e85..6348ee8a2513d 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -48,6 +48,7 @@ import { getParsedCommandLineOfConfigFile, getSourceFileVersionAsHashFromText, getTsBuildInfoEmitOutputFilePath, + HasInvalidatedLibResolutions, HasInvalidatedResolutions, isArray, isIgnoredFileFromWildCardWatching, @@ -229,6 +230,15 @@ export interface ProgramHost { containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined ): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + resolveLibrary?( + libraryName: string, + resolveFrom: string, + options: CompilerOptions, + libFileName: string, + ): ResolvedModuleWithFailedLookupLocations; + /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + hasInvalidatedLibResolutions?(libFileName: string): boolean; + /** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */ hasInvalidatedResolutions?(filePath: Path): boolean; /** @@ -503,6 +513,9 @@ export function createWatchProgram(host: WatchCompiler if (!compilerHost.resolveTypeReferenceDirectiveReferences && !compilerHost.resolveTypeReferenceDirectives) { compilerHost.resolveTypeReferenceDirectiveReferences = resolutionCache.resolveTypeReferenceDirectiveReferences.bind(resolutionCache); } + compilerHost.resolveLibrary = !host.resolveLibrary ? + resolutionCache.resolveLibrary.bind(resolutionCache) : + host.resolveLibrary.bind(host); compilerHost.getModuleResolutionCache = host.resolveModuleNameLiterals || host.resolveModuleNames ? maybeBind(host, host.getModuleResolutionCache) : (() => resolutionCache.getModuleResolutionCache()); @@ -512,6 +525,9 @@ export function createWatchProgram(host: WatchCompiler const customHasInvalidatedResolutions = userProvidedResolution ? maybeBind(host, host.hasInvalidatedResolutions) || returnTrue : returnFalse; + const customHasInvalidLibResolutions = host.resolveLibrary ? + maybeBind(host, host.hasInvalidatedLibResolutions) || returnTrue : + returnFalse; builderProgram = readBuilderProgram(compilerOptions, compilerHost) as any as T; synchronizeProgram(); @@ -589,12 +605,12 @@ export function createWatchProgram(host: WatchCompiler } } - const hasInvalidatedResolutions = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions); + const { hasInvalidatedResolutions, hasInvalidatedLibResolutions } = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions, customHasInvalidLibResolutions); const { originalReadFile, originalFileExists, originalDirectoryExists, originalCreateDirectory, originalWriteFile, readFileWithCache } = changeCompilerHostLikeToUseCache(compilerHost, toPath); - if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, path => getSourceVersion(path, readFileWithCache), fileName => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { + if (isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, path => getSourceVersion(path, readFileWithCache), fileName => compilerHost.fileExists(fileName), hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { if (hasChangedConfigFileParsingErrors) { if (reportFileChangeDetectedOnCreateProgram) { reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation); @@ -607,7 +623,7 @@ export function createWatchProgram(host: WatchCompiler if (reportFileChangeDetectedOnCreateProgram) { reportWatchDiagnostic(Diagnostics.File_change_detected_Starting_incremental_compilation); } - createNewProgram(hasInvalidatedResolutions); + createNewProgram(hasInvalidatedResolutions, hasInvalidatedLibResolutions); } reportFileChangeDetectedOnCreateProgram = false; @@ -624,7 +640,7 @@ export function createWatchProgram(host: WatchCompiler return builderProgram; } - function createNewProgram(hasInvalidatedResolutions: HasInvalidatedResolutions) { + function createNewProgram(hasInvalidatedResolutions: HasInvalidatedResolutions, hasInvalidatedLibResolutions: HasInvalidatedLibResolutions) { // Compile the program writeLog("CreatingProgramWith::"); writeLog(` roots: ${JSON.stringify(rootFileNames)}`); @@ -636,6 +652,7 @@ export function createWatchProgram(host: WatchCompiler hasChangedConfigFileParsingErrors = false; resolutionCache.startCachingPerDirectoryResolution(); compilerHost.hasInvalidatedResolutions = hasInvalidatedResolutions; + compilerHost.hasInvalidatedLibResolutions = hasInvalidatedLibResolutions; compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames; const oldProgram = getCurrentProgram(); builderProgram = createProgram(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences); diff --git a/src/server/project.ts b/src/server/project.ts index 9efc1e6f42df2..f0fdc305b0253 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -58,6 +58,7 @@ import { getNormalizedAbsolutePath, getOrUpdate, getStringComparer, + HasInvalidatedLibResolutions, HasInvalidatedResolutions, HostCancellationToken, inferredTypesContainingFile, @@ -326,6 +327,9 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo /** @internal */ hasInvalidatedResolutions: HasInvalidatedResolutions | undefined; + /** @internal */ + hasInvalidatedLibResolutions: HasInvalidatedLibResolutions | undefined; + /** @internal */ resolutionCache: ResolutionCache; @@ -684,6 +688,11 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo ); } + /** @internal */ + resolveLibrary(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations { + return this.resolutionCache.resolveLibrary(libraryName, resolveFrom, options, libFileName); + } + directoryExists(path: string): boolean { return this.directoryStructureHost.directoryExists!(path); // TODO: GH#18217 } @@ -1339,7 +1348,9 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo Debug.assert(!this.isClosed(), "Called update graph worker of closed project"); this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`); const start = timestamp(); - this.hasInvalidatedResolutions = this.resolutionCache.createHasInvalidatedResolutions(returnFalse); + const { hasInvalidatedResolutions, hasInvalidatedLibResolutions } = this.resolutionCache.createHasInvalidatedResolutions(returnFalse, returnFalse); + this.hasInvalidatedResolutions = hasInvalidatedResolutions; + this.hasInvalidatedLibResolutions = hasInvalidatedLibResolutions; this.resolutionCache.startCachingPerDirectoryResolution(); this.program = this.languageService.getProgram(); // TODO: GH#18217 this.dirty = false; diff --git a/src/services/services.ts b/src/services/services.ts index acd845c7979c6..a4cd94d66f98a 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1634,6 +1634,7 @@ export function createLanguageService( // Get a fresh cache of the host information const newSettings = host.getCompilationSettings() || getDefaultCompilerOptions(); const hasInvalidatedResolutions: HasInvalidatedResolutions = host.hasInvalidatedResolutions || returnFalse; + const hasInvalidatedLibResolutions = maybeBind(host, host.hasInvalidatedLibResolutions) || returnFalse; const hasChangedAutomaticTypeDirectiveNames = maybeBind(host, host.hasChangedAutomaticTypeDirectiveNames); const projectReferences = host.getProjectReferences?.(); let parsedCommandLines: Map | undefined; @@ -1666,6 +1667,7 @@ export function createLanguageService( onReleaseOldSourceFile, onReleaseParsedCommandLine, hasInvalidatedResolutions, + hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, trace: maybeBind(host, host.trace), resolveModuleNames: maybeBind(host, host.resolveModuleNames), @@ -1674,6 +1676,7 @@ export function createLanguageService( resolveTypeReferenceDirectives: maybeBind(host, host.resolveTypeReferenceDirectives), resolveModuleNameLiterals: maybeBind(host, host.resolveModuleNameLiterals), resolveTypeReferenceDirectiveReferences: maybeBind(host, host.resolveTypeReferenceDirectiveReferences), + resolveLibrary: maybeBind(host, host.resolveLibrary), useSourceOfProjectReferenceRedirect: maybeBind(host, host.useSourceOfProjectReferenceRedirect), getParsedCommandLine, }; @@ -1705,7 +1708,7 @@ export function createLanguageService( const documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings); // If the program is already up-to-date, we can reuse it - if (isProgramUptoDate(program, rootFileNames, newSettings, (_path, fileName) => host.getScriptVersion(fileName), fileName => compilerHost!.fileExists(fileName), hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { + if (isProgramUptoDate(program, rootFileNames, newSettings, (_path, fileName) => host.getScriptVersion(fileName), fileName => compilerHost!.fileExists(fileName), hasInvalidatedResolutions, hasInvalidatedLibResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) { return; } diff --git a/src/services/types.ts b/src/services/types.ts index 80d9400535b58..3c3e92f64ecb7 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -378,6 +378,15 @@ export interface LanguageServiceHost extends GetEffectiveTypeRootsHost, MinimalR containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined ): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + resolveLibrary?( + libraryName: string, + resolveFrom: string, + options: CompilerOptions, + libFileName: string, + ): ResolvedModuleWithFailedLookupLocations; + /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + hasInvalidatedLibResolutions?(libFileName: string): boolean; + /** @internal */ hasInvalidatedResolutions?: HasInvalidatedResolutions; /** @internal */ hasChangedAutomaticTypeDirectiveNames?: HasChangedAutomaticTypeDirectiveNames; /** @internal */ getGlobalTypingsCacheLocation?(): string | undefined; diff --git a/src/testRunner/unittests/reuseProgramStructure.ts b/src/testRunner/unittests/reuseProgramStructure.ts index 8c03d4b0b447d..f5df90959ec39 100644 --- a/src/testRunner/unittests/reuseProgramStructure.ts +++ b/src/testRunner/unittests/reuseProgramStructure.ts @@ -549,6 +549,7 @@ describe("unittests:: Reuse program structure:: isProgramUptoDate", () => { program, newRootFileNames, newOptions, path => program.getSourceFileByPath(path)!.version, /*fileExists*/ ts.returnFalse, /*hasInvalidatedResolutions*/ ts.returnFalse, + /*hasInvalidatedLibResolutions*/ ts.returnFalse, /*hasChangedAutomaticTypeDirectiveNames*/ undefined, /*getParsedCommandLine*/ ts.returnUndefined, /*projectReferences*/ undefined diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 4f0a7d8abdd46..b72fe8134ee3b 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -7481,6 +7481,9 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; + /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + hasInvalidatedLibResolutions?(libFileName: string): boolean; getEnvironmentVariable?(name: string): string | undefined; /** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */ hasInvalidatedResolutions?(filePath: Path): boolean; @@ -9247,8 +9250,9 @@ declare namespace ts { * this list is only the set of defaults that are implicitly included. */ function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[]; - function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache; + function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): ModuleResolutionCache; function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache; + function resolveLibrary(libraryName: string, resolveFrom: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations; function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined; function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations; function bundlerModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; @@ -9729,6 +9733,9 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; + /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + hasInvalidatedLibResolutions?(libFileName: string): boolean; /** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */ hasInvalidatedResolutions?(filePath: Path): boolean; /** @@ -9976,6 +9983,9 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; + /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + hasInvalidatedLibResolutions?(libFileName: string): boolean; getDirectories?(directoryName: string): string[]; /** * Gets a set of custom transformers to use during emit. diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 5b2e1a9668e34..f8199f62dcd39 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -3456,6 +3456,9 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; + /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + hasInvalidatedLibResolutions?(libFileName: string): boolean; getEnvironmentVariable?(name: string): string | undefined; /** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */ hasInvalidatedResolutions?(filePath: Path): boolean; @@ -5222,8 +5225,9 @@ declare namespace ts { * this list is only the set of defaults that are implicitly included. */ function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[]; - function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache; + function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): ModuleResolutionCache; function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache; + function resolveLibrary(libraryName: string, resolveFrom: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations; function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined; function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations; function bundlerModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; @@ -5704,6 +5708,9 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; + /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + hasInvalidatedLibResolutions?(libFileName: string): boolean; /** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */ hasInvalidatedResolutions?(filePath: Path): boolean; /** @@ -6032,6 +6039,9 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; + /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + hasInvalidatedLibResolutions?(libFileName: string): boolean; getDirectories?(directoryName: string): string[]; /** * Gets a set of custom transformers to use during emit. 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 842734a002151..dfcf7a8530a96 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js @@ -255,28 +255,14 @@ Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/home/src/projects/project2/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== node_modules/@typescript/lib-es5/index.d.ts Library 'lib.es5.d.ts' specified in compilerOptions @@ -342,14 +328,7 @@ Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' 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-webworker' -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.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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== node_modules/@typescript/lib-esnext/index.d.ts Library 'lib.esnext.d.ts' specified in compilerOptions diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js index feda485ed52d7..cb3cedb3beb6e 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js @@ -256,48 +256,14 @@ Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/home/src/projects/project2/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. -Scoped package detected, looking in 'typescript__lib-es5' -Directory '/home/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 '/home/src/projects/project2/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. +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was not resolved. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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. -Scoped package detected, looking in 'typescript__lib-dom' -Directory '/home/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 '/home/src/projects/project2/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. +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was not resolved. ======== ../lib/lib.es5.d.ts Library 'lib.es5.d.ts' specified in compilerOptions @@ -373,24 +339,7 @@ Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' 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-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. -Scoped package detected, looking in 'typescript__lib-webworker' -Directory '/home/node_modules' does not exist, skipping all lookups in it. -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. -Directory '/home/src/projects/project4/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. +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-webworker' was not resolved. ======== ../lib/lib.esnext.d.ts Library 'lib.esnext.d.ts' specified in compilerOptions 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 7231528b916ed..ee731b6a9cb88 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js @@ -241,28 +241,14 @@ Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/home/src/projects/project2/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== node_modules/@typescript/lib-es5/index.d.ts Library 'lib.es5.d.ts' specified in compilerOptions @@ -328,14 +314,7 @@ Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' 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-webworker' -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.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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== node_modules/@typescript/lib-esnext/index.d.ts Library 'lib.esnext.d.ts' specified in compilerOptions diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js index ca32bd1b4eda2..847667a689a20 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js @@ -242,48 +242,14 @@ Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration. Directory '/home/src/projects/project2/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. -Scoped package detected, looking in 'typescript__lib-es5' -Directory '/home/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 '/home/src/projects/project2/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. +Resolution for module '@typescript/lib-es5' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-es5' was not resolved. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project2/__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 '/home/src/projects/project2/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. -Scoped package detected, looking in 'typescript__lib-dom' -Directory '/home/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 '/home/src/projects/project2/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. +Resolution for module '@typescript/lib-dom' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-dom' was not resolved. ======== ../lib/lib.es5.d.ts Library 'lib.es5.d.ts' specified in compilerOptions @@ -359,24 +325,7 @@ Explicitly specified module resolution kind: 'Node10'. Loading module '@typescript/lib-webworker' 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-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. -Scoped package detected, looking in 'typescript__lib-webworker' -Directory '/home/node_modules' does not exist, skipping all lookups in it. -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. -Directory '/home/src/projects/project4/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. +Resolution for module '@typescript/lib-webworker' was found in cache from location '/home/src/projects'. ======== Module name '@typescript/lib-webworker' was not resolved. ======== ../lib/lib.esnext.d.ts Library 'lib.esnext.d.ts' specified in compilerOptions 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 e926ac0329bf0..a9ab07f8e8f30 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js @@ -160,6 +160,10 @@ File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -287,6 +291,10 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts (used version) +PolledWatches:: +/home/src/projects/project1/node_modules: *new* + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: *new* {} @@ -312,6 +320,8 @@ FsWatches:: {} FsWatchesRecursive:: +/home/src/projects/node_modules: *new* + {} /home/src/projects/project1/typeroot1: *new* {} /home/src/projects/project1: *new* @@ -490,13 +500,17 @@ Change:: delete redirect file dom Input:: //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted -Before running Timeout callback:: count: 1 +Before running Timeout callback:: count: 2 1: timerToUpdateProgram +2: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Synchronizing program [12:01:52 AM] File change detected. Starting incremental compilation... @@ -504,55 +518,16 @@ CreatingProgramWith:: roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. -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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. @@ -643,6 +618,10 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: {} @@ -672,6 +651,8 @@ FsWatches *deleted*:: {} FsWatchesRecursive:: +/home/src/projects/node_modules: + {} /home/src/projects/project1/typeroot1: {} /home/src/projects/project1: @@ -822,7 +803,7 @@ export const x = "type1";export const xyz = 10; Before running Timeout callback:: count: 1 -2: timerToUpdateProgram +3: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with /home/src/projects/project1/index.ts 1:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file @@ -834,6 +815,10 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions node_modules/@typescript/lib-webworker/index.d.ts @@ -1034,7 +1019,7 @@ Input:: //// [/home/src/projects/project1/core.d.ts] deleted Before running Timeout callback:: count: 1 -4: timerToUpdateProgram +5: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file @@ -1050,80 +1035,11 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. -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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -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. -Scoped package detected, looking in 'typescript__lib-dom' -Directory '/home/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 '/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. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -======== Module name '@typescript/lib-dom' was not resolved. ======== +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions @@ -1167,6 +1083,10 @@ Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: {} @@ -1194,6 +1114,8 @@ FsWatches *deleted*:: {} FsWatchesRecursive:: +/home/src/projects/node_modules: + {} /home/src/projects/project1/typeroot1: {} /home/src/projects/project1: @@ -1333,91 +1255,33 @@ Input:: interface DOMInterface { } -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Output:: - -exitCode:: ExitStatus.undefined - - -Change:: change program options to update module resolution - -Input:: -//// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} - - Before running Timeout callback:: count: 1 -5: timerToUpdateProgram +6: timerToInvalidateFailedLookupResolutions +After running Timeout callback:: count: 1 +7: timerToUpdateProgram +Before running Timeout callback:: count: 1 +7: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: -FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file -Reloading config file: /home/src/projects/project1/tsconfig.json Synchronizing program -[12:02:40 AM] File change detected. Starting incremental compilation... +[12:02:37 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] - options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. -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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== -Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. -File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. +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. @@ -1426,10 +1290,9 @@ File '/home/src/projects/node_modules/@typescript/lib-dom/index.tsx' does not ex File '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file -DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots node_modules/@typescript/lib-webworker/index.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' node_modules/@typescript/lib-scripthost/index.d.ts @@ -1450,13 +1313,13 @@ project1/utils.d.ts project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' -[12:02:53 AM] Found 0 errors. Watching for file changes. +[12:02:50 AM] Found 0 errors. Watching for file changes. Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} -Program structureReused: Not +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: SafeModules Program files:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts @@ -1490,7 +1353,7 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) PolledWatches:: -/home/src/projects/project1/typeroot2: *new* +/home/src/projects/project1/node_modules: {"pollingInterval":500} FsWatches:: @@ -1520,6 +1383,8 @@ FsWatches *deleted*:: {} FsWatchesRecursive:: +/home/src/projects/node_modules: + {} /home/src/projects/project1/typeroot1: {} /home/src/projects/project1: @@ -1655,73 +1520,153 @@ exitCode:: ExitStatus.undefined } -Change:: change program options to update module resolution and also update lib file +Change:: change program options to update module resolution Input:: //// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} -//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted Before running Timeout callback:: count: 1 -7: timerToUpdateProgram +8: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file -FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file -Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file Reloading config file: /home/src/projects/project1/tsconfig.json Synchronizing program -[12:03:01 AM] File change detected. Starting incremental compilation... +[12:02:57 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] - options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. -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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:58 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} +/home/src/projects/project1/typeroot2: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + + +Change:: change program options to update module resolution and also update lib file + +Input:: +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted + +Before running Timeout callback:: count: 2 +10: timerToUpdateProgram +11: timerToInvalidateFailedLookupResolutions +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Reloading config file: /home/src/projects/project1/tsconfig.json +Synchronizing program +[12:03:03 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Resolving with primary search path '/home/src/projects/project1/typeroot1'. File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -1734,7 +1679,7 @@ 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/package.json' does not exist according to earlier cached lookups. +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. @@ -1784,7 +1729,7 @@ project1/utils.d.ts project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' -[12:03:14 AM] Found 0 errors. Watching for file changes. +[12:03:16 AM] Found 0 errors. Watching for file changes. @@ -1823,6 +1768,10 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + PolledWatches *deleted*:: /home/src/projects/project1/typeroot2: {"pollingInterval":500} @@ -1854,6 +1803,8 @@ FsWatches *deleted*:: {} FsWatchesRecursive:: +/home/src/projects/node_modules: + {} /home/src/projects/project1/typeroot1: {} /home/src/projects/project1: @@ -1994,15 +1945,19 @@ Change:: delete redirect file webworker Input:: //// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted -Before running Timeout callback:: count: 1 -8: timerToUpdateProgram +Before running Timeout callback:: count: 2 +12: timerToUpdateProgram +13: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Synchronizing program -[12:03:19 AM] File change detected. Starting incremental compilation... +[12:03:22 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] @@ -2013,7 +1968,7 @@ 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/package.json' does not exist according to earlier cached lookups. +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. @@ -2040,66 +1995,10 @@ Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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 according to earlier cached lookups. -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. -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. -Scoped package detected, looking in 'typescript__lib-dom' -Directory '/home/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 '/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. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -======== Module name '@typescript/lib-dom' was not resolved. ======== +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions ../lib/lib.webworker.d.ts @@ -2120,7 +2019,7 @@ project1/utils.d.ts project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' -[12:03:32 AM] Found 0 errors. Watching for file changes. +[12:03:35 AM] Found 0 errors. Watching for file changes. @@ -2159,6 +2058,10 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: {} @@ -2186,6 +2089,8 @@ FsWatches *deleted*:: {} FsWatchesRecursive:: +/home/src/projects/node_modules: + {} /home/src/projects/project1/typeroot1: {} /home/src/projects/project1: @@ -2328,11 +2233,267 @@ Input:: interface WebworkerInterface { } -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 1 +14: timerToInvalidateFailedLookupResolutions +After running Timeout callback:: count: 1 +15: timerToUpdateProgram +Before running Timeout callback:: count: 1 +15: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling update +Synchronizing program +[12:03:41 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:03:54 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.dom.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/lib/lib.webworker.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} exitCode:: ExitStatus.undefined +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.dom.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-scripthost/index.d.ts","../node_modules/@typescript/lib-es5/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,4,3,2,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.dom.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-scripthost/index.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-es5/index.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../node_modules/@typescript/lib-es5/index.d.ts", + "../node_modules/@typescript/lib-scripthost/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1873 +} + diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js index 2920b73b8f7af..f1faf8c992d2f 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js @@ -131,6 +131,10 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -288,6 +292,10 @@ Shape signatures in builder refreshed for:: /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) +PolledWatches:: +/home/src/projects/project1/node_modules: *new* + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: *new* {} @@ -313,6 +321,8 @@ FsWatches:: {} FsWatchesRecursive:: +/home/src/projects/node_modules: *new* + {} /home/src/projects/project1/typeroot1: *new* {} /home/src/projects/project1: *new* @@ -493,44 +503,56 @@ Input:: interface DOMInterface { } -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Output:: - -exitCode:: ExitStatus.undefined - - -Change:: edit index - -Input:: -//// [/home/src/projects/project1/index.ts] -export const x = "type1";export const xyz = 10; - - Before running Timeout callback:: count: 1 -1: timerToUpdateProgram +2: timerToInvalidateFailedLookupResolutions +After running Timeout callback:: count: 1 +3: timerToUpdateProgram +Before running Timeout callback:: count: 1 +3: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: -FileWatcher:: Triggered with /home/src/projects/project1/index.ts 1:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/index.ts 1:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file Synchronizing program -[12:01:37 AM] File change detected. Starting incremental compilation... +[12:01:35 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions -../lib/lib.dom.d.ts - Library 'lib.dom.d.ts' specified in compilerOptions ../lib/lib.webworker.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' ../lib/lib.scripthost.d.ts Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions project1/core.d.ts Matched by default include pattern '**/*' project1/file.ts @@ -544,18 +566,18 @@ project1/utils.d.ts project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' -[12:01:47 AM] Found 0 errors. Watching for file changes. +[12:01:48 AM] Found 0 errors. Watching for file changes. Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} -Program structureReused: Completely +Program structureReused: SafeModules Program files:: /home/src/lib/lib.es5.d.ts -/home/src/lib/lib.dom.d.ts /home/src/lib/lib.webworker.d.ts /home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts /home/src/projects/project1/core.d.ts /home/src/projects/project1/file.ts /home/src/projects/project1/file2.ts @@ -564,37 +586,84 @@ Program files:: /home/src/projects/project1/typeroot1/sometype/index.d.ts Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/core.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts /home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) /home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -exitCode:: ExitStatus.undefined +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} -//// [/home/src/projects/project1/index.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.xyz = exports.x = void 0; -exports.x = "type1"; -exports.xyz = 10; +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/core.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} +FsWatches *deleted*:: +/home/src/lib/lib.dom.d.ts: + {} -//// [/home/src/projects/project1/index.d.ts] -export declare const x = "type1"; -export declare const xyz = 10; +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} +exitCode:: ExitStatus.undefined +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-11532698187-export const x = \"type1\";","signature":"-5899226897-export declare const x = \"type1\";\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../lib/lib.es5.d.ts", - "../../lib/lib.dom.d.ts", "../../lib/lib.webworker.d.ts", "../../lib/lib.scripthost.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", "./core.d.ts", "./file.ts", "./file2.ts", @@ -612,15 +681,6 @@ export declare const xyz = 10; "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "../../lib/lib.dom.d.ts": { - "original": { - "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true - }, - "version": "-8673759361-interface DOMInterface { }", - "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true - }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", @@ -639,6 +699,15 @@ export declare const xyz = 10; "signature": "-5403980302-interface ScriptHostInterface { }", "affectsGlobalScope": true }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, "./core.d.ts": { "version": "-15683237936-export const core = 10;", "signature": "-15683237936-export const core = 10;" @@ -661,11 +730,11 @@ export declare const xyz = 10; }, "./index.ts": { "original": { - "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" }, - "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", - "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + "version": "-11532698187-export const x = \"type1\";", + "signature": "-5899226897-export declare const x = \"type1\";\n" }, "./utils.d.ts": { "version": "-13729955264-export const y = 10;", @@ -698,10 +767,10 @@ export declare const xyz = 10; "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.dom.d.ts", "../../lib/lib.es5.d.ts", "../../lib/lib.scripthost.d.ts", "../../lib/lib.webworker.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", "./core.d.ts", "./file.ts", "./file2.ts", @@ -712,121 +781,34 @@ export declare const xyz = 10; "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1858 + "size": 1829 } -Change:: delete core +Change:: edit index Input:: -//// [/home/src/projects/project1/core.d.ts] deleted +//// [/home/src/projects/project1/index.ts] +export const x = "type1";export const xyz = 10; + Before running Timeout callback:: count: 1 -3: timerToUpdateProgram +4: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: -FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file -Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file -DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory +FileWatcher:: Triggered with /home/src/projects/project1/index.ts 1:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file Scheduling update -Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory -Reloading new file names and options +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/index.ts 1:: WatchInfo: /home/src/projects/project1/index.ts 250 undefined Source file Synchronizing program -[12:01:52 AM] File change detected. Starting incremental compilation... +[12:01:54 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: - roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + roots: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. -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. -Scoped package detected, looking in 'typescript__lib-webworker' -Directory '/home/node_modules' does not exist, skipping all lookups in it. -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. -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. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. -Scoped package detected, looking in 'typescript__lib-scripthost' -Directory '/home/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 '/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. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. -Scoped package detected, looking in 'typescript__lib-es5' -Directory '/home/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 '/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. -======== Module name '@typescript/lib-es5' was not resolved. ======== -Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. -======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== -FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file -FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file -FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -836,6 +818,8 @@ FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undef Library referenced via 'scripthost' from file 'project1/file2.ts' node_modules/@typescript/lib-dom/index.d.ts Library 'lib.dom.d.ts' specified in compilerOptions +project1/core.d.ts + Matched by default include pattern '**/*' project1/file.ts Matched by default include pattern '**/*' project1/file2.ts @@ -847,18 +831,19 @@ project1/utils.d.ts project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' -[12:02:05 AM] Found 0 errors. Watching for file changes. +[12:02:04 AM] Found 0 errors. Watching for file changes. -Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program root files: ["/home/src/projects/project1/core.d.ts","/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} -Program structureReused: Not +Program structureReused: Completely Program files:: /home/src/lib/lib.es5.d.ts /home/src/lib/lib.webworker.d.ts /home/src/lib/lib.scripthost.d.ts /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/core.d.ts /home/src/projects/project1/file.ts /home/src/projects/project1/file2.ts /home/src/projects/project1/index.ts @@ -866,67 +851,28 @@ Program files:: /home/src/projects/project1/typeroot1/sometype/index.d.ts Semantic diagnostics in builder refreshed for:: -/home/src/lib/lib.es5.d.ts -/home/src/lib/lib.webworker.d.ts -/home/src/lib/lib.scripthost.d.ts -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts -/home/src/projects/project1/file.ts -/home/src/projects/project1/file2.ts /home/src/projects/project1/index.ts -/home/src/projects/project1/utils.d.ts -/home/src/projects/project1/typeroot1/sometype/index.d.ts Shape signatures in builder refreshed for:: -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) -/home/src/lib/lib.webworker.d.ts (used version) -/home/src/lib/lib.scripthost.d.ts (used version) -/home/src/projects/project1/file.ts (computed .d.ts) -/home/src/projects/project1/file2.ts (computed .d.ts) /home/src/projects/project1/index.ts (computed .d.ts) -/home/src/projects/project1/utils.d.ts (used version) -/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -FsWatches:: -/home/src/projects/project1/tsconfig.json: - {} -/home/src/projects/project1/file.ts: - {} -/home/src/projects/project1/file2.ts: - {} -/home/src/lib/lib.webworker.d.ts: - {} -/home/src/lib/lib.scripthost.d.ts: - {} -/home/src/lib/lib.es5.d.ts: - {} -/home/src/projects/project1/index.ts: - {} -/home/src/projects/project1/utils.d.ts: - {} -/home/src/projects/project1/typeroot1/sometype/index.d.ts: - {} -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* - {} +exitCode:: ExitStatus.undefined -FsWatches *deleted*:: -/home/src/projects/project1/core.d.ts: - {} -/home/src/lib/lib.dom.d.ts: - {} +//// [/home/src/projects/project1/index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.xyz = exports.x = void 0; +exports.x = "type1"; +exports.xyz = 10; -FsWatchesRecursive:: -/home/src/projects/project1/typeroot1: - {} -/home/src/projects/project1: - {} -exitCode:: ExitStatus.undefined +//// [/home/src/projects/project1/index.d.ts] +export declare const x = "type1"; +export declare const xyz = 10; + -//// [/home/src/projects/project1/file.js] file written with same contents -//// [/home/src/projects/project1/file2.js] file written with same contents -//// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./core.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},"-15683237936-export const core = 10;",{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,10]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,8,10,9],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { @@ -936,6 +882,7 @@ exitCode:: ExitStatus.undefined "../../lib/lib.webworker.d.ts", "../../lib/lib.scripthost.d.ts", "../node_modules/@typescript/lib-dom/index.d.ts", + "./core.d.ts", "./file.ts", "./file2.ts", "./index.ts", @@ -979,6 +926,10 @@ exitCode:: ExitStatus.undefined "signature": "-8673759361-interface DOMInterface { }", "affectsGlobalScope": true }, + "./core.d.ts": { + "version": "-15683237936-export const core = 10;", + "signature": "-15683237936-export const core = 10;" + }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", @@ -1016,9 +967,10 @@ exitCode:: ExitStatus.undefined [ [ 5, - 9 + 10 ], [ + "./core.d.ts", "./file.ts", "./file2.ts", "./index.ts", @@ -1037,6 +989,7 @@ exitCode:: ExitStatus.undefined "../../lib/lib.scripthost.d.ts", "../../lib/lib.webworker.d.ts", "../node_modules/@typescript/lib-dom/index.d.ts", + "./core.d.ts", "./file.ts", "./file2.ts", "./index.ts", @@ -1046,141 +999,47 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1825 + "size": 1882 } -Change:: delete redirect file dom +Change:: delete core Input:: -//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted +//// [/home/src/projects/project1/core.d.ts] deleted Before running Timeout callback:: count: 1 -4: timerToUpdateProgram +6: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: -FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/core.d.ts 2:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory +Scheduling update +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Wild card directory +Reloading new file names and options Synchronizing program [12:02:10 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} -FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. -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. -Scoped package detected, looking in 'typescript__lib-webworker' -Directory '/home/node_modules' does not exist, skipping all lookups in it. -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. -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. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. -Scoped package detected, looking in 'typescript__lib-scripthost' -Directory '/home/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 '/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. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. -Scoped package detected, looking in 'typescript__lib-es5' -Directory '/home/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 '/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. -======== Module name '@typescript/lib-es5' was not resolved. ======== +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. -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. -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. -Scoped package detected, looking in 'typescript__lib-dom' -Directory '/home/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 '/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. -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. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -======== Module name '@typescript/lib-dom' was not resolved. ======== -FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +FileWatcher:: Close:: WatchInfo: /home/src/projects/project1/core.d.ts 250 undefined Source file ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions -../lib/lib.dom.d.ts - Library 'lib.dom.d.ts' specified in compilerOptions ../lib/lib.webworker.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' ../lib/lib.scripthost.d.ts Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions project1/file.ts Matched by default include pattern '**/*' project1/file2.ts @@ -1192,7 +1051,7 @@ project1/utils.d.ts project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' -[12:02:23 AM] Found 0 errors. Watching for file changes. +[12:02:14 AM] Found 0 errors. Watching for file changes. @@ -1201,9 +1060,9 @@ Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typ Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts -/home/src/lib/lib.dom.d.ts /home/src/lib/lib.webworker.d.ts /home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts /home/src/projects/project1/file.ts /home/src/projects/project1/file2.ts /home/src/projects/project1/index.ts @@ -1211,25 +1070,12 @@ Program files:: /home/src/projects/project1/typeroot1/sometype/index.d.ts Semantic diagnostics in builder refreshed for:: -/home/src/lib/lib.es5.d.ts -/home/src/lib/lib.dom.d.ts -/home/src/lib/lib.webworker.d.ts -/home/src/lib/lib.scripthost.d.ts -/home/src/projects/project1/file.ts -/home/src/projects/project1/file2.ts -/home/src/projects/project1/index.ts -/home/src/projects/project1/utils.d.ts -/home/src/projects/project1/typeroot1/sometype/index.d.ts -Shape signatures in builder refreshed for:: -/home/src/lib/lib.dom.d.ts (used version) -/home/src/lib/lib.webworker.d.ts (used version) -/home/src/lib/lib.scripthost.d.ts (used version) -/home/src/projects/project1/file.ts (computed .d.ts) -/home/src/projects/project1/file2.ts (computed .d.ts) -/home/src/projects/project1/index.ts (computed .d.ts) -/home/src/projects/project1/utils.d.ts (used version) -/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) +No shapes updated in the builder:: + +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} FsWatches:: /home/src/projects/project1/tsconfig.json: @@ -1250,14 +1096,16 @@ FsWatches:: {} /home/src/projects/project1/typeroot1/sometype/index.d.ts: {} -/home/src/lib/lib.dom.d.ts: *new* +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: {} FsWatches *deleted*:: -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: +/home/src/projects/project1/core.d.ts: {} FsWatchesRecursive:: +/home/src/projects/node_modules: + {} /home/src/projects/project1/typeroot1: {} /home/src/projects/project1: @@ -1265,20 +1113,17 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/home/src/projects/project1/file.js] file written with same contents -//// [/home/src/projects/project1/file2.js] file written with same contents -//// [/home/src/projects/project1/index.js] file written with same contents //// [/home/src/projects/project1/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} //// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../lib/lib.es5.d.ts", - "../../lib/lib.dom.d.ts", "../../lib/lib.webworker.d.ts", "../../lib/lib.scripthost.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", "./file.ts", "./file2.ts", "./index.ts", @@ -1295,15 +1140,6 @@ exitCode:: ExitStatus.undefined "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", "affectsGlobalScope": true }, - "../../lib/lib.dom.d.ts": { - "original": { - "version": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true - }, - "version": "-8673759361-interface DOMInterface { }", - "signature": "-8673759361-interface DOMInterface { }", - "affectsGlobalScope": true - }, "../../lib/lib.webworker.d.ts": { "original": { "version": "-3990185033-interface WebWorkerInterface { }", @@ -1322,6 +1158,15 @@ exitCode:: ExitStatus.undefined "signature": "-5403980302-interface ScriptHostInterface { }", "affectsGlobalScope": true }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, "./file.ts": { "original": { "version": "-16628394009-export const file = 10;", @@ -1376,10 +1221,10 @@ exitCode:: ExitStatus.undefined "referencedMap": {}, "exportedModulesMap": {}, "semanticDiagnosticsPerFile": [ - "../../lib/lib.dom.d.ts", "../../lib/lib.es5.d.ts", "../../lib/lib.scripthost.d.ts", "../../lib/lib.webworker.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", "./file.ts", "./file2.ts", "./index.ts", @@ -1389,115 +1234,43 @@ exitCode:: ExitStatus.undefined "latestChangedDtsFile": "./index.d.ts" }, "version": "FakeTSVersion", - "size": 1801 + "size": 1825 } -Change:: change program options to update module resolution +Change:: delete redirect file dom Input:: -//// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted - -Before running Timeout callback:: count: 1 -5: timerToUpdateProgram +Before running Timeout callback:: count: 2 +7: timerToUpdateProgram +8: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: -FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file -Reloading config file: /home/src/projects/project1/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Synchronizing program -[12:02:31 AM] File change detected. Starting incremental compilation... +[12:02:19 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] - options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} -======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. -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. -Scoped package detected, looking in 'typescript__lib-webworker' -Directory '/home/node_modules' does not exist, skipping all lookups in it. -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. -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. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. -Scoped package detected, looking in 'typescript__lib-scripthost' -Directory '/home/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 '/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. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. -Scoped package detected, looking in 'typescript__lib-es5' -Directory '/home/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 '/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. -======== Module name '@typescript/lib-es5' was not resolved. ======== -======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== -Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. -File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. @@ -1514,6 +1287,7 @@ 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/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. @@ -1522,8 +1296,7 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-dom' was not resolved. ======== -DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -1549,7 +1322,7 @@ project1/typeroot1/sometype/index.d.ts Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] -Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} Program structureReused: Not Program files:: /home/src/lib/lib.es5.d.ts @@ -1563,11 +1336,705 @@ Program files:: /home/src/projects/project1/typeroot1/sometype/index.d.ts Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts -No shapes updated in the builder:: +Shape signatures in builder refreshed for:: +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.dom.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[2,1,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.dom.d.ts", + "../../lib/lib.webworker.d.ts", + "../../lib/lib.scripthost.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.dom.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.dom.d.ts", + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../../lib/lib.webworker.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1801 +} + + +Change:: change program options to update module resolution + +Input:: +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} + + +Before running Timeout callback:: count: 1 +9: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Reloading config file: /home/src/projects/project1/tsconfig.json +Synchronizing program +[12:02:39 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:40 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1","/home/src/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} +/home/src/projects/project1/typeroot2: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + + +Change:: change program options to update module resolution and also update lib file + +Input:: +//// [/home/src/projects/project1/tsconfig.json] +{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} + +//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] +interface DOMInterface { } + + +Before running Timeout callback:: count: 2 +10: timerToUpdateProgram +11: timerToInvalidateFailedLookupResolutions +After running Timeout callback:: count: 0 +Output:: +FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Reloading config file: /home/src/projects/project1/tsconfig.json +Synchronizing program +[12:02:46 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== +Resolving with primary search path '/home/src/projects/project1/typeroot1'. +File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. +File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. +File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. +Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== +======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:02:59 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) + +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/home/src/projects/project1/typeroot2: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/tsconfig.json: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/typeroot1/sometype/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} +/home/src/projects/project1/typeroot1: + {} +/home/src/projects/project1: + {} + +exitCode:: ExitStatus.undefined + +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.webworker.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-3990185033-interface WebWorkerInterface { }","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,3,2,4,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.webworker.d.ts", + "../../lib/lib.scripthost.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.webworker.d.ts": { + "original": { + "version": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-3990185033-interface WebWorkerInterface { }", + "signature": "-3990185033-interface WebWorkerInterface { }", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../../lib/lib.webworker.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1825 +} + + +Change:: write redirect file webworker + +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] +interface WebworkerInterface { } + + +Before running Timeout callback:: count: 1 +13: timerToInvalidateFailedLookupResolutions +After running Timeout callback:: count: 1 +14: timerToUpdateProgram +Before running Timeout callback:: count: 1 +14: timerToUpdateProgram +After running Timeout callback:: count: 0 +Output:: +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling update +Synchronizing program +[12:03:08 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] + options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. +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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/file.ts + Matched by default include pattern '**/*' +project1/file2.ts + Matched by default include pattern '**/*' +project1/index.ts + Matched by default include pattern '**/*' +project1/utils.d.ts + Matched by default include pattern '**/*' +project1/typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' +[12:03:21 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] +Program options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +Program structureReused: SafeModules +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +/home/src/projects/project1/file.ts +/home/src/projects/project1/file2.ts +/home/src/projects/project1/index.ts +/home/src/projects/project1/utils.d.ts +/home/src/projects/project1/typeroot1/sometype/index.d.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) PolledWatches:: -/home/src/projects/project1/typeroot2: *new* +/home/src/projects/project1/node_modules: {"pollingInterval":500} FsWatches:: @@ -1577,8 +2044,6 @@ FsWatches:: {} /home/src/projects/project1/file2.ts: {} -/home/src/lib/lib.webworker.d.ts: - {} /home/src/lib/lib.scripthost.d.ts: {} /home/src/lib/lib.es5.d.ts: @@ -1589,10 +2054,18 @@ FsWatches:: {} /home/src/projects/project1/typeroot1/sometype/index.d.ts: {} -/home/src/lib/lib.dom.d.ts: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/lib/lib.webworker.d.ts: {} FsWatchesRecursive:: +/home/src/projects/node_modules: + {} /home/src/projects/project1/typeroot1: {} /home/src/projects/project1: @@ -1600,39 +2073,169 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.es5.d.ts","../../lib/lib.scripthost.d.ts","../node_modules/@typescript/lib-webworker/index.d.ts","../node_modules/@typescript/lib-dom/index.d.ts","./file.ts","./file2.ts","./index.ts","./utils.d.ts","./typeroot1/sometype/index.d.ts"],"fileInfos":[{"version":"3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"-5403980302-interface ScriptHostInterface { }","affectsGlobalScope":true},{"version":"-7827135529-interface WebworkerInterface { }","affectsGlobalScope":true},{"version":"-8673759361-interface DOMInterface { }","affectsGlobalScope":true},{"version":"-16628394009-export const file = 10;","signature":"-9025507999-export declare const file = 10;\n"},{"version":"-11916614574-/// \n/// \n/// \n","signature":"-14493813102-/// \n/// \n/// \n"},{"version":"-6136895998-export const x = \"type1\";export const xyz = 10;","signature":"-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n"},"-13729955264-export const y = 10;","-12476477079-export type TheNum = \"type1\";"],"root":[[5,9]],"options":{"composite":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,4,3,5,6,7,9,8],"latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} -Change:: change program options to update module resolution and also update lib file +//// [/home/src/projects/project1/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ], + "fileInfos": { + "../../lib/lib.es5.d.ts": { + "original": { + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "version": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "../../lib/lib.scripthost.d.ts": { + "original": { + "version": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "version": "-5403980302-interface ScriptHostInterface { }", + "signature": "-5403980302-interface ScriptHostInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-webworker/index.d.ts": { + "original": { + "version": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "version": "-7827135529-interface WebworkerInterface { }", + "signature": "-7827135529-interface WebworkerInterface { }", + "affectsGlobalScope": true + }, + "../node_modules/@typescript/lib-dom/index.d.ts": { + "original": { + "version": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "version": "-8673759361-interface DOMInterface { }", + "signature": "-8673759361-interface DOMInterface { }", + "affectsGlobalScope": true + }, + "./file.ts": { + "original": { + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "version": "-16628394009-export const file = 10;", + "signature": "-9025507999-export declare const file = 10;\n" + }, + "./file2.ts": { + "original": { + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "version": "-11916614574-/// \n/// \n/// \n", + "signature": "-14493813102-/// \n/// \n/// \n" + }, + "./index.ts": { + "original": { + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "version": "-6136895998-export const x = \"type1\";export const xyz = 10;", + "signature": "-9988949802-export declare const x = \"type1\";\nexport declare const xyz = 10;\n" + }, + "./utils.d.ts": { + "version": "-13729955264-export const y = 10;", + "signature": "-13729955264-export const y = 10;" + }, + "./typeroot1/sometype/index.d.ts": { + "version": "-12476477079-export type TheNum = \"type1\";", + "signature": "-12476477079-export type TheNum = \"type1\";" + } + }, + "root": [ + [ + [ + 5, + 9 + ], + [ + "./file.ts", + "./file2.ts", + "./index.ts", + "./utils.d.ts", + "./typeroot1/sometype/index.d.ts" + ] + ] + ], + "options": { + "composite": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.es5.d.ts", + "../../lib/lib.scripthost.d.ts", + "../node_modules/@typescript/lib-dom/index.d.ts", + "../node_modules/@typescript/lib-webworker/index.d.ts", + "./file.ts", + "./file2.ts", + "./index.ts", + "./typeroot1/sometype/index.d.ts", + "./utils.d.ts" + ], + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 1849 +} -Input:: -//// [/home/src/projects/project1/tsconfig.json] -{"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} -//// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] -interface DOMInterface { } +Change:: delete redirect file webworker +Input:: +//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted -Before running Timeout callback:: count: 1 -6: timerToUpdateProgram +Before running Timeout callback:: count: 2 +15: timerToUpdateProgram +16: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: -FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Config file -Reloading config file: /home/src/projects/project1/tsconfig.json +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Synchronizing program -[12:02:38 AM] File change detected. Starting incremental compilation... +[12:03:26 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["/home/src/projects/project1/file.ts","/home/src/projects/project1/file2.ts","/home/src/projects/project1/index.ts","/home/src/projects/project1/utils.d.ts","/home/src/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/projects/project1/tsconfig.json"} +FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__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. 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. 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. @@ -1643,84 +2246,20 @@ 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/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. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__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 '/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. -Scoped package detected, looking in 'typescript__lib-scripthost' -Directory '/home/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 '/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. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__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 '/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. -Scoped package detected, looking in 'typescript__lib-es5' -Directory '/home/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 '/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. -======== Module name '@typescript/lib-es5' was not resolved. ======== -======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/projects/project1/typeroot1'. -File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__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 '/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. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. -======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== -FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file -FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file -DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots -Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Type roots +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -1741,7 +2280,7 @@ project1/utils.d.ts project1/typeroot1/sometype/index.d.ts Matched by default include pattern '**/*' Entry point for implicit type library 'sometype' -[12:02:51 AM] Found 0 errors. Watching for file changes. +[12:03:39 AM] Found 0 errors. Watching for file changes. @@ -1771,17 +2310,17 @@ Semantic diagnostics in builder refreshed for:: /home/src/projects/project1/typeroot1/sometype/index.d.ts Shape signatures in builder refreshed for:: -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/lib/lib.webworker.d.ts (used version) /home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) /home/src/projects/project1/file.ts (computed .d.ts) /home/src/projects/project1/file2.ts (computed .d.ts) /home/src/projects/project1/index.ts (computed .d.ts) /home/src/projects/project1/utils.d.ts (used version) /home/src/projects/project1/typeroot1/sometype/index.d.ts (used version) -PolledWatches *deleted*:: -/home/src/projects/project1/typeroot2: +PolledWatches:: +/home/src/projects/project1/node_modules: {"pollingInterval":500} FsWatches:: @@ -1791,8 +2330,6 @@ FsWatches:: {} /home/src/projects/project1/file2.ts: {} -/home/src/lib/lib.webworker.d.ts: - {} /home/src/lib/lib.scripthost.d.ts: {} /home/src/lib/lib.es5.d.ts: @@ -1803,14 +2340,18 @@ FsWatches:: {} /home/src/projects/project1/typeroot1/sometype/index.d.ts: {} -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: + {} +/home/src/lib/lib.webworker.d.ts: *new* {} FsWatches *deleted*:: -/home/src/lib/lib.dom.d.ts: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: {} FsWatchesRecursive:: +/home/src/projects/node_modules: + {} /home/src/projects/project1/typeroot1: {} /home/src/projects/project1: @@ -1945,31 +2486,3 @@ exitCode:: ExitStatus.undefined "size": 1825 } - -Change:: write redirect file webworker - -Input:: -//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] -interface WebworkerInterface { } - - -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Output:: - -exitCode:: ExitStatus.undefined - - -Change:: delete redirect file webworker - -Input:: -//// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted - -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Output:: - -exitCode:: ExitStatus.undefined - 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 3605692e5da49..ebadf6eed224b 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config-with-redirection.js @@ -159,6 +159,8 @@ File '/home/src/projects/node_modules/@typescript/lib-webworker/index.tsx' does File '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -284,6 +286,10 @@ FsWatches:: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* {} +FsWatchesRecursive:: +/home/src/projects/node_modules: *new* + {} + exitCode:: ExitStatus.undefined //// [/home/src/projects/project1/file.js] @@ -312,13 +318,17 @@ Change:: delete redirect file dom Input:: //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted -Before running Timeout callback:: count: 1 +Before running Timeout callback:: count: 2 1: timerToUpdateProgram +2: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Synchronizing program [12:01:42 AM] File change detected. Starting incremental compilation... @@ -326,46 +336,13 @@ CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.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/package.json' does not exist according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== 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/package.json' does not exist according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== 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/package.json' does not exist according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== 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/package.json' does not exist according to earlier cached lookups. +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. @@ -477,6 +454,10 @@ FsWatches *deleted*:: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: {} +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} + exitCode:: ExitStatus.undefined //// [/home/src/projects/project1/file.js] file written with same contents @@ -491,7 +472,7 @@ export const x = "type1";export const xyz = 10; Before running Timeout callback:: count: 1 -2: timerToUpdateProgram +3: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with project1/index.ts 1:: WatchInfo: project1/index.ts 250 undefined Source file @@ -503,6 +484,10 @@ Synchronizing program CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. ../lib/lib.dom.d.ts Library 'lib.dom.d.ts' specified in compilerOptions node_modules/@typescript/lib-webworker/index.d.ts @@ -563,7 +548,7 @@ Input:: //// [/home/src/projects/project1/core.d.ts] deleted Before running Timeout callback:: count: 1 -3: timerToUpdateProgram +4: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with project1/core.d.ts 2:: WatchInfo: project1/core.d.ts 250 undefined Source file @@ -576,70 +561,10 @@ CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} FileWatcher:: Close:: WatchInfo: project1/core.d.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/package.json' does not exist according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. -======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -======== 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/package.json' does not exist according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== 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/package.json' does not exist according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== 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/package.json' does not exist according to earlier cached lookups. -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. -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. -Scoped package detected, looking in 'typescript__lib-dom' -Directory '/home/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. -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. -Directory '/home/node_modules' does not exist, skipping all lookups in it. -Directory '/node_modules' does not exist, skipping all lookups in it. -======== Module name '@typescript/lib-dom' was not resolved. ======== +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined Missing file error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: @@ -711,6 +636,10 @@ FsWatches *deleted*:: /home/src/projects/project1/core.d.ts: {} +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} + exitCode:: ExitStatus.undefined @@ -721,29 +650,146 @@ Input:: interface DOMInterface { } -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 1 +5: timerToInvalidateFailedLookupResolutions +After running Timeout callback:: count: 1 +6: timerToUpdateProgram +Before running Timeout callback:: count: 1 +6: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling update +Synchronizing program +[12:02:06 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +error TS6053: File 'project1/core.d.ts' not found. + The file is in the program because: + Root file specified for compilation + +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:02:16 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: SafeModules +Program files:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +No cached semantic diagnostics in the builder:: + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) + +PolledWatches:: +/home/src/projects/node_modules/@types: + {"pollingInterval":500} +/home/src/projects/project1/core.d.ts: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} exitCode:: ExitStatus.undefined +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents Change:: delete redirect file webworker Input:: //// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted -Before running Timeout callback:: count: 1 -4: timerToUpdateProgram +Before running Timeout callback:: count: 2 +7: timerToUpdateProgram +8: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Synchronizing program -[12:02:07 AM] File change detected. Starting incremental compilation... +[12:02:18 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] @@ -752,7 +798,7 @@ FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib ======== 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/package.json' does not exist according to earlier cached lookups. +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. @@ -778,44 +824,9 @@ Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file -======== 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/package.json' does not exist according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -======== 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/package.json' does not exist according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== -======== 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/package.json' does not exist according to earlier cached lookups. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. -======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== -FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file -FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: Root file specified for compilation @@ -837,7 +848,7 @@ project1/index.ts Root file specified for compilation project1/file2.ts Root file specified for compilation -[12:02:17 AM] Found 1 error. Watching for file changes. +[12:02:28 AM] Found 1 error. Watching for file changes. @@ -884,15 +895,17 @@ FsWatches:: {} /home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: {} -/home/src/lib/lib.webworker.d.ts: *new* +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: {} -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* +/home/src/lib/lib.webworker.d.ts: *new* {} FsWatches *deleted*:: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: {} -/home/src/lib/lib.dom.d.ts: + +FsWatchesRecursive:: +/home/src/projects/node_modules: {} exitCode:: ExitStatus.undefined @@ -908,11 +921,124 @@ Input:: interface WebworkerInterface { } -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 1 +9: timerToInvalidateFailedLookupResolutions +After running Timeout callback:: count: 1 +10: timerToUpdateProgram +Before running Timeout callback:: count: 1 +10: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling update +Synchronizing program +[12:02:32 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file +error TS6053: File 'project1/core.d.ts' not found. + The file is in the program because: + Root file specified for compilation + +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:02:42 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: SafeModules +Program files:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +No cached semantic diagnostics in the builder:: + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts (used version) +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) + +PolledWatches:: +/home/src/projects/node_modules/@types: + {"pollingInterval":500} +/home/src/projects/project1/core.d.ts: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/lib/lib.webworker.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} exitCode:: ExitStatus.undefined +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents diff --git a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js index 649b5d9794f11..eccfe8f671717 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/without-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/without-config.js @@ -129,6 +129,8 @@ Directory '/home/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Module name '@typescript/lib-webworker' was not resolved. ======== +DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Explicitly specified module resolution kind: 'Node10'. @@ -281,6 +283,10 @@ FsWatches:: /home/src/lib/lib.dom.d.ts: *new* {} +FsWatchesRecursive:: +/home/src/projects/node_modules: *new* + {} + exitCode:: ExitStatus.undefined //// [/home/src/projects/project1/file.js] @@ -311,14 +317,139 @@ Input:: interface DOMInterface { } -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 1 +2: timerToInvalidateFailedLookupResolutions +After running Timeout callback:: count: 1 +3: timerToUpdateProgram +Before running Timeout callback:: count: 1 +3: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling update +Synchronizing program +[12:01:25 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +project1/core.d.ts + Root file specified for compilation +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:01:35 AM] Found 0 errors. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: SafeModules +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Semantic diagnostics in builder refreshed for:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts +project1/core.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/core.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) + +PolledWatches:: +/home/src/projects/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/core.d.ts: + {} +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.webworker.d.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/lib/lib.dom.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} exitCode:: ExitStatus.undefined +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents Change:: edit index @@ -328,27 +459,31 @@ export const x = "type1";export const xyz = 10; Before running Timeout callback:: count: 1 -1: timerToUpdateProgram +4: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with project1/index.ts 1:: WatchInfo: project1/index.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with project1/index.ts 1:: WatchInfo: project1/index.ts 250 undefined Source file Synchronizing program -[12:01:27 AM] File change detected. Starting incremental compilation... +[12:01:38 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ../lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions -../lib/lib.dom.d.ts - Library 'lib.dom.d.ts' specified in compilerOptions ../lib/lib.webworker.d.ts Library referenced via 'webworker' from file 'project1/file2.ts' ../lib/lib.scripthost.d.ts Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions project1/core.d.ts Root file specified for compilation project1/utils.d.ts @@ -359,7 +494,7 @@ project1/index.ts Root file specified for compilation project1/file2.ts Root file specified for compilation -[12:01:31 AM] Found 0 errors. Watching for file changes. +[12:01:42 AM] Found 0 errors. Watching for file changes. @@ -368,9 +503,9 @@ Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResol Program structureReused: Completely Program files:: /home/src/lib/lib.es5.d.ts -/home/src/lib/lib.dom.d.ts /home/src/lib/lib.webworker.d.ts /home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts project1/core.d.ts project1/utils.d.ts project1/file.ts @@ -400,95 +535,23 @@ Input:: //// [/home/src/projects/project1/core.d.ts] deleted Before running Timeout callback:: count: 1 -2: timerToUpdateProgram +5: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with project1/core.d.ts 2:: WatchInfo: project1/core.d.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with project1/core.d.ts 2:: WatchInfo: project1/core.d.ts 250 undefined Source file Synchronizing program -[12:01:33 AM] File change detected. Starting incremental compilation... +[12:01:45 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} FileWatcher:: Close:: WatchInfo: project1/core.d.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. -Scoped package detected, looking in 'typescript__lib-webworker' -Directory '/home/node_modules' does not exist, skipping all lookups in it. -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. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== 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. -Scoped package detected, looking in 'typescript__lib-scripthost' -Directory '/home/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. -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. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== 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. -Scoped package detected, looking in 'typescript__lib-es5' -Directory '/home/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. -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. -======== Module name '@typescript/lib-es5' was not resolved. ======== -======== 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. -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. -Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. -======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== -FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file -FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.dom.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. FileWatcher:: Added:: WatchInfo: /home/src/projects/project1/core.d.ts 500 undefined Missing file error TS6053: File 'project1/core.d.ts' not found. The file is in the program because: @@ -511,7 +574,7 @@ project1/index.ts Root file specified for compilation project1/file2.ts Root file specified for compilation -[12:01:43 AM] Found 1 error. Watching for file changes. +[12:01:46 AM] Found 1 error. Watching for file changes. @@ -528,16 +591,9 @@ project1/file.ts project1/index.ts project1/file2.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: -Shape signatures in builder refreshed for:: -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts (used version) -/home/src/lib/lib.webworker.d.ts (used version) -/home/src/lib/lib.scripthost.d.ts (used version) -/home/src/projects/project1/utils.d.ts (used version) -/home/src/projects/project1/file.ts (computed .d.ts) -/home/src/projects/project1/index.ts (computed .d.ts) -/home/src/projects/project1/file2.ts (computed .d.ts) +No shapes updated in the builder:: PolledWatches:: /home/src/projects/node_modules/@types: @@ -560,106 +616,50 @@ FsWatches:: {} /home/src/lib/lib.es5.d.ts: {} -/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: *new* +/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: {} FsWatches *deleted*:: /home/src/projects/project1/core.d.ts: {} -/home/src/lib/lib.dom.d.ts: + +FsWatchesRecursive:: +/home/src/projects/node_modules: {} exitCode:: ExitStatus.undefined -//// [/home/src/projects/project1/file.js] file written with same contents -//// [/home/src/projects/project1/index.js] file written with same contents -//// [/home/src/projects/project1/file2.js] file written with same contents Change:: delete redirect file dom Input:: //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted -Before running Timeout callback:: count: 1 -3: timerToUpdateProgram +Before running Timeout callback:: count: 2 +6: timerToUpdateProgram +7: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations Synchronizing program -[12:01:45 AM] File change detected. Starting incremental compilation... +[12:01:48 AM] File change detected. Starting incremental compilation... CreatingProgramWith:: roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-dom/index.d.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. -Scoped package detected, looking in 'typescript__lib-webworker' -Directory '/home/node_modules' does not exist, skipping all lookups in it. -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. -======== Module name '@typescript/lib-webworker' was not resolved. ======== -======== 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. -Scoped package detected, looking in 'typescript__lib-scripthost' -Directory '/home/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. -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. -======== Module name '@typescript/lib-scripthost' was not resolved. ======== -======== 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. -Scoped package detected, looking in 'typescript__lib-es5' -Directory '/home/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. -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. -======== Module name '@typescript/lib-es5' was not resolved. ======== +Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. ======== 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/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. @@ -675,6 +675,7 @@ 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/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. @@ -705,7 +706,7 @@ project1/index.ts Root file specified for compilation project1/file2.ts Root file specified for compilation -[12:01:55 AM] Found 1 error. Watching for file changes. +[12:01:58 AM] Found 1 error. Watching for file changes. @@ -761,6 +762,10 @@ FsWatches *deleted*:: /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts: {} +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} + exitCode:: ExitStatus.undefined //// [/home/src/projects/project1/file.js] file written with same contents @@ -774,23 +779,269 @@ Input:: interface WebworkerInterface { } -Before running Timeout callback:: count: 0 -After running Timeout callback:: count: 0 -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 1 +9: timerToInvalidateFailedLookupResolutions +After running Timeout callback:: count: 1 +10: timerToUpdateProgram +Before running Timeout callback:: count: 1 +10: timerToUpdateProgram After running Timeout callback:: count: 0 Output:: +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup, Cancelled earlier one +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling update +Synchronizing program +[12:02:03 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +======== 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/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. +Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +FileWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +FileWatcher:: Close:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file +error TS6053: File 'project1/core.d.ts' not found. + The file is in the program because: + Root file specified for compilation + +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:02:13 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: SafeModules +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.scripthost.d.ts +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +No cached semantic diagnostics in the builder:: + +Shape signatures in builder refreshed for:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) + +PolledWatches:: +/home/src/projects/node_modules/@types: + {"pollingInterval":500} +/home/src/projects/project1/core.d.ts: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/lib/lib.webworker.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} exitCode:: ExitStatus.undefined +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents Change:: delete redirect file webworker Input:: //// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 2 +11: timerToUpdateProgram +12: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: +FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +Scheduling update +Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 2:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file +DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Scheduling invalidateFailedLookup +Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations +Synchronizing program +[12:02:16 AM] File change detected. Starting incremental compilation... + +CreatingProgramWith:: + roots: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] + options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +FileWatcher:: Close:: WatchInfo: /home/src/projects/node_modules/@typescript/lib-webworker/index.d.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/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. +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. +Scoped package detected, looking in 'typescript__lib-webworker' +Directory '/home/node_modules' does not exist, skipping all lookups in it. +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/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. +Directory '/home/node_modules' does not exist, skipping all lookups in it. +Directory '/node_modules' does not exist, skipping all lookups in it. +======== Module name '@typescript/lib-webworker' was not resolved. ======== +FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 250 undefined Source file +Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +error TS6053: File 'project1/core.d.ts' not found. + The file is in the program because: + Root file specified for compilation + +../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'project1/file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions +../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions +../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'project1/file2.ts' +../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'project1/file2.ts' +project1/utils.d.ts + Root file specified for compilation +project1/file.ts + Root file specified for compilation +project1/index.ts + Root file specified for compilation +project1/file2.ts + Root file specified for compilation +[12:02:26 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["project1/core.d.ts","project1/utils.d.ts","project1/file.ts","project1/index.ts","project1/file2.ts"] +Program options: {"watch":true,"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"explainFiles":true,"extendedDiagnostics":true} +Program structureReused: Not +Program files:: +/home/src/lib/lib.es5.d.ts +/home/src/lib/lib.dom.d.ts +/home/src/lib/lib.webworker.d.ts +/home/src/lib/lib.scripthost.d.ts +project1/utils.d.ts +project1/file.ts +project1/index.ts +project1/file2.ts + +No cached semantic diagnostics in the builder:: + +Shape signatures in builder refreshed for:: +/home/src/lib/lib.webworker.d.ts (used version) +/home/src/lib/lib.dom.d.ts (used version) +/home/src/lib/lib.scripthost.d.ts (used version) +/home/src/projects/project1/utils.d.ts (used version) +/home/src/projects/project1/file.ts (computed .d.ts) +/home/src/projects/project1/index.ts (computed .d.ts) +/home/src/projects/project1/file2.ts (computed .d.ts) + +PolledWatches:: +/home/src/projects/node_modules/@types: + {"pollingInterval":500} +/home/src/projects/project1/core.d.ts: + {"pollingInterval":500} + +FsWatches:: +/home/src/projects/project1/utils.d.ts: + {} +/home/src/projects/project1/file.ts: + {} +/home/src/projects/project1/index.ts: + {} +/home/src/projects/project1/file2.ts: + {} +/home/src/lib/lib.scripthost.d.ts: + {} +/home/src/lib/lib.es5.d.ts: + {} +/home/src/lib/lib.dom.d.ts: + {} +/home/src/lib/lib.webworker.d.ts: *new* + {} + +FsWatches *deleted*:: +/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts: + {} + +FsWatchesRecursive:: +/home/src/projects/node_modules: + {} exitCode:: ExitStatus.undefined +//// [/home/src/projects/project1/file.js] file written with same contents +//// [/home/src/projects/project1/index.js] file written with same contents +//// [/home/src/projects/project1/file2.js] file written with same contents diff --git a/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js b/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js index 5d32c6370cc9c..4328ed2202b48 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js +++ b/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js @@ -67,9 +67,13 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/foo/tsconfig. } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/foo/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/index.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2017.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/node_modules 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/node_modules 1 undefined Project: /user/username/projects/myproject/foo/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/foo/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/foo/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.es2017.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Type roots @@ -112,6 +116,10 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules: *new* + {"pollingInterval":500} +/user/username/projects/node_modules: *new* + {"pollingInterval":500} /user/username/projects/myproject/foo/node_modules/@types: *new* {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: *new* @@ -162,6 +170,12 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/bar/tsconfig. } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/bar/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/node_modules 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/node_modules 1 undefined Project: /user/username/projects/myproject/bar/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/bar/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/bar/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.dom.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/node_modules/@types 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/node_modules/@types 1 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Type roots @@ -211,12 +225,18 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: +/user/username/projects/myproject/node_modules: + {"pollingInterval":500} +/user/username/projects/node_modules: + {"pollingInterval":500} /user/username/projects/myproject/foo/node_modules/@types: {"pollingInterval":500} /user/username/projects/myproject/node_modules/@types: {"pollingInterval":500} /user/username/projects/node_modules/@types: {"pollingInterval":500} +/user/username/projects/myproject/bar/node_modules: *new* + {"pollingInterval":500} /user/username/projects/myproject/bar/node_modules/@types: *new* {"pollingInterval":500} 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 9c4b9a060757d..c4d4fff795d24 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js @@ -191,6 +191,10 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/node_modules/@typescript/lib-w 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. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/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:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== @@ -300,6 +304,10 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/home/src/projects/project1/node_modules: *new* + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: *new* {} @@ -322,66 +330,32 @@ FsWatchesRecursive:: /home/src/projects/project1/typeroot1: *new* {} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Before running Timeout callback:: count: 2 -1: /home/src/projects/project1/tsconfig.json -2: *ensureProjectForOpenFiles* +Before running Timeout callback:: count: 3 +1: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +2: /home/src/projects/project1/tsconfig.json +3: *ensureProjectForOpenFiles* //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -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/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.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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -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/package.json' does not exist according to earlier cached lookups. -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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -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/package.json' does not exist according to earlier cached lookups. -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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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/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/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. @@ -466,6 +440,10 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts Project Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: {} @@ -495,14 +473,18 @@ Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/file.ts 1:: WatchInfo: /home/src/projects/project1/file.ts 500 undefined WatchType: Closed Script info Before running Timeout callback:: count: 2 -3: /home/src/projects/project1/tsconfig.json -4: *ensureProjectForOpenFiles* +4: /home/src/projects/project1/tsconfig.json +5: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/file.ts] export const file = 10;export const xyz = 10; Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 3 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (10) @@ -547,10 +529,14 @@ Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json, C Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Config: /home/src/projects/project1/tsconfig.json WatchType: Wild card directory Before running Timeout callback:: count: 2 -7: /home/src/projects/project1/tsconfig.json -8: *ensureProjectForOpenFiles* +8: /home/src/projects/project1/tsconfig.json +9: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/core.d.ts] deleted +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: {} @@ -579,80 +565,11 @@ FsWatchesRecursive:: Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -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/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.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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -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/package.json' does not exist according to earlier cached lookups. -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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -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/package.json' does not exist according to earlier cached lookups. -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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== -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/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.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. -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) @@ -708,17 +625,101 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts Project Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/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:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 1 +10: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] interface DOMInterface { } -After running Timeout callback:: count: 0 +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +After running Timeout callback:: count: 2 +11: /home/src/projects/project1/tsconfig.json +12: *ensureProjectForOpenFiles* -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 2 +11: /home/src/projects/project1/tsconfig.json +12: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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/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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 5 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts Text-1 "interface WebworkerInterface { }" + /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-es5/index.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts Text-2 "interface DOMInterface { }" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + ../node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file @@ -726,8 +727,8 @@ Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file Before running Timeout callback:: count: 2 -9: /home/src/projects/project1/tsconfig.json -10: *ensureProjectForOpenFiles* +13: /home/src/projects/project1/tsconfig.json +14: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/tsconfig.json] {"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} @@ -757,48 +758,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -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/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.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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -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/package.json' does not exist according to earlier cached lookups. -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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -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/package.json' does not exist according to earlier cached lookups. -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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -806,23 +768,10 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/pa Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== -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/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.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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 5 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts Text-1 "interface WebworkerInterface { }" @@ -834,28 +783,6 @@ Info seq [hh:mm:ss:mss] Files (9) /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" - - - ../node_modules/@typescript/lib-webworker/index.d.ts - Library referenced via 'webworker' from file 'file2.ts' - ../node_modules/@typescript/lib-scripthost/index.d.ts - Library referenced via 'scripthost' from file 'file2.ts' - ../node_modules/@typescript/lib-es5/index.d.ts - Library referenced via 'es5' from file 'file2.ts' - Library 'lib.es5.d.ts' specified in compilerOptions - ../node_modules/@typescript/lib-dom/index.d.ts - Library 'lib.dom.d.ts' specified in compilerOptions - file.ts - Matched by default include pattern '**/*' - file2.ts - Matched by default include pattern '**/*' - index.ts - Matched by default include pattern '**/*' - utils.d.ts - Matched by default include pattern '**/*' - typeroot1/sometype/index.d.ts - Matched by default include pattern '**/*' - Entry point for implicit type library 'sometype' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -878,6 +805,8 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} /home/src/projects/project1/typeroot2: *new* {"pollingInterval":500} @@ -907,18 +836,23 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Before running Timeout callback:: count: 2 -13: /home/src/projects/project1/tsconfig.json -14: *ensureProjectForOpenFiles* +Before running Timeout callback:: count: 3 +17: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +18: /home/src/projects/project1/tsconfig.json +19: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/tsconfig.json] {"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { @@ -943,48 +877,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -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/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.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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -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/package.json' does not exist according to earlier cached lookups. -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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -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/package.json' does not exist according to earlier cached lookups. -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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1'. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -997,7 +892,7 @@ 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/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/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. @@ -1025,7 +920,7 @@ Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" @@ -1080,6 +975,10 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts Project Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + PolledWatches *deleted*:: /home/src/projects/project1/typeroot2: {"pollingInterval":500} @@ -1106,15 +1005,20 @@ FsWatchesRecursive:: /home/src/projects/project1/typeroot1: {} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Before running Timeout callback:: count: 2 -15: /home/src/projects/project1/tsconfig.json -16: *ensureProjectForOpenFiles* +Before running Timeout callback:: count: 3 +20: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +21: /home/src/projects/project1/tsconfig.json +22: *ensureProjectForOpenFiles* //// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== @@ -1122,7 +1026,7 @@ 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/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/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. @@ -1149,67 +1053,11 @@ Info seq [hh:mm:ss:mss] Directory '/home/node_modules' does not exist, skipping 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 '@typescript/lib-webworker' was not resolved. ======== Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -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/package.json' does not exist according to earlier cached lookups. -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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -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/package.json' does not exist according to earlier cached lookups. -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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== -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/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.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. -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 8 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" @@ -1264,6 +1112,10 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts Project Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: {} @@ -1288,15 +1140,99 @@ FsWatchesRecursive:: /home/src/projects/project1/typeroot1: {} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/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:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 1 +23: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] interface WebWorkerInterface { } -After running Timeout callback:: count: 0 +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +After running Timeout callback:: count: 2 +24: /home/src/projects/project1/tsconfig.json +25: *ensureProjectForOpenFiles* -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 2 +24: /home/src/projects/project1/tsconfig.json +25: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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/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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-es5/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 9 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" + /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts Text-2 "interface WebWorkerInterface { }" + /home/src/projects/node_modules/@typescript/lib-scripthost/index.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-es5/index.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.dom.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + ../node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../node_modules/@typescript/lib-scripthost/index.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-es5/index.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config.js b/tests/baselines/reference/tsserver/libraryResolution/with-config.js index 0a6d41c7d9029..8654c63b8b869 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config.js @@ -162,6 +162,10 @@ Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skip 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. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/lib/lib.webworker.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== Info seq [hh:mm:ss:mss] Explicitly specified module resolution kind: 'Node10'. @@ -303,6 +307,10 @@ Info seq [hh:mm:ss:mss] response: } After request +PolledWatches:: +/home/src/projects/project1/node_modules: *new* + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: *new* {} @@ -328,18 +336,112 @@ FsWatches:: FsWatchesRecursive:: /home/src/projects/project1: *new* {} +/home/src/projects/node_modules: *new* + {} /home/src/projects/project1/typeroot1: *new* {} -Before running Timeout callback:: count: 0 +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Before running Timeout callback:: count: 1 +2: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] interface DOMInterface { } -After running Timeout callback:: count: 0 +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +After running Timeout callback:: count: 2 +3: /home/src/projects/project1/tsconfig.json +4: *ensureProjectForOpenFiles* + +Before running Timeout callback:: count: 2 +3: /home/src/projects/project1/tsconfig.json +4: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== +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/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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/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:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) + /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/lib/lib.webworker.d.ts Text-1 "interface WebWorkerInterface { }" + /home/src/lib/lib.scripthost.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts Text-1 "interface DOMInterface { }" + /home/src/projects/project1/core.d.ts Text-1 "export const core = 10;" + /home/src/projects/project1/file.ts Text-1 "export const file = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + ../../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + core.d.ts + Matched by default include pattern '**/*' + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) -Before running Timeout callback:: count: 0 +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (10) +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project1/file.ts 1:: WatchInfo: /home/src/projects/project1/file.ts 500 undefined WatchType: Closed Script info @@ -347,21 +449,25 @@ Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/file.ts 1:: WatchInfo: /home/src/projects/project1/file.ts 500 undefined WatchType: Closed Script info Before running Timeout callback:: count: 2 -1: /home/src/projects/project1/tsconfig.json -2: *ensureProjectForOpenFiles* +5: /home/src/projects/project1/tsconfig.json +6: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/file.ts] export const file = 10;export const xyz = 10; Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 3 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (10) /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - /home/src/lib/lib.dom.d.ts Text-1 "interface DOMInterface { }" /home/src/lib/lib.webworker.d.ts Text-1 "interface WebWorkerInterface { }" /home/src/lib/lib.scripthost.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts Text-1 "interface DOMInterface { }" /home/src/projects/project1/core.d.ts Text-1 "export const core = 10;" /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" @@ -399,10 +505,14 @@ Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json, C Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project1/core.d.ts :: WatchInfo: /home/src/projects/project1 1 undefined Config: /home/src/projects/project1/tsconfig.json WatchType: Wild card directory Before running Timeout callback:: count: 2 -5: /home/src/projects/project1/tsconfig.json -6: *ensureProjectForOpenFiles* +9: /home/src/projects/project1/tsconfig.json +10: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/core.d.ts] deleted +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} + FsWatches:: /home/src/projects/project1/tsconfig.json: {} @@ -430,100 +540,19 @@ FsWatches *deleted*:: FsWatchesRecursive:: /home/src/projects/project1: {} +/home/src/projects/node_modules: + {} /home/src/projects/project1/typeroot1: {} Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was not resolved. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== -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] 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. -Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. ======== -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/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:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 3 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" @@ -578,155 +607,34 @@ Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts Project Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 -FsWatches:: -/home/src/projects/project1/tsconfig.json: - {} -/home/src/projects/project1/file.ts: - {} -/home/src/projects/project1/file2.ts: - {} -/home/src/projects/project1/utils.d.ts: - {} -/home/src/projects/project1/typeroot1/sometype/index.d.ts: - {} -/home/src/lib/lib.webworker.d.ts: - {} -/home/src/lib/lib.scripthost.d.ts: - {} -/home/src/lib/lib.es5.d.ts: - {} -/home/src/lib/lib.dom.d.ts: - {} - -FsWatchesRecursive:: -/home/src/projects/project1: - {} -/home/src/projects/project1/typeroot1: - {} -/home/src/projects/node_modules: *new* - {} - +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/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: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Before running Timeout callback:: count: 2 -7: /home/src/projects/project1/tsconfig.json -8: *ensureProjectForOpenFiles* +Before running Timeout callback:: count: 3 +11: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +12: /home/src/projects/project1/tsconfig.json +13: *ensureProjectForOpenFiles* //// [/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts] deleted -FsWatches:: -/home/src/projects/project1/tsconfig.json: - {} -/home/src/projects/project1/file.ts: - {} -/home/src/projects/project1/file2.ts: - {} -/home/src/projects/project1/utils.d.ts: - {} -/home/src/projects/project1/typeroot1/sometype/index.d.ts: - {} -/home/src/lib/lib.webworker.d.ts: - {} -/home/src/lib/lib.scripthost.d.ts: - {} -/home/src/lib/lib.es5.d.ts: - {} -/home/src/lib/lib.dom.d.ts: - {} - -FsWatchesRecursive:: -/home/src/projects/project1: - {} -/home/src/projects/project1/typeroot1: - {} - -FsWatchesRecursive *deleted*:: -/home/src/projects/node_modules: - {} - +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== 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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was not resolved. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== -Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== -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] 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/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. @@ -743,6 +651,7 @@ 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/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. @@ -751,7 +660,7 @@ Info seq [hh:mm:ss:mss] Directory '/home/src/node_modules' does not exist, skip 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. Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 4 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 5 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" @@ -811,8 +720,8 @@ Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file Before running Timeout callback:: count: 2 -9: /home/src/projects/project1/tsconfig.json -10: *ensureProjectForOpenFiles* +14: /home/src/projects/project1/tsconfig.json +15: *ensureProjectForOpenFiles* //// [/home/src/projects/project1/tsconfig.json] {"compilerOptions":{"composite":true,"typeRoots":["./typeroot1","./typeroot2"],"lib":["es5","dom"],"traceResolution":true}} @@ -842,78 +751,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was not resolved. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1,/home/src/projects/project1/typeroot2'. ======== Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1, /home/src/projects/project1/typeroot2'. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -921,38 +761,10 @@ Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/pa Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ======== -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] 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. -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-dom' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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] 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. -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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-dom' was not resolved. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 5 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" @@ -986,6 +798,8 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} /home/src/projects/project1/typeroot2: *new* {"pollingInterval":500} @@ -1012,6 +826,8 @@ FsWatches:: FsWatchesRecursive:: /home/src/projects/project1: {} +/home/src/projects/node_modules: + {} /home/src/projects/project1/typeroot1: {} @@ -1019,9 +835,13 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/projects/project Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/projects/project1/tsconfig.json 1:: WatchInfo: /home/src/projects/project1/tsconfig.json 2000 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Config file -Before running Timeout callback:: count: 2 -11: /home/src/projects/project1/tsconfig.json -12: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Before running Timeout callback:: count: 3 +16: /home/src/projects/project1/tsconfig.json +17: *ensureProjectForOpenFiles* +18: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/project1/tsconfig.json] {"compilerOptions":{"composite":true,"typeRoots":["./typeroot1"],"lib":["es5","dom"],"traceResolution":true}} @@ -1030,6 +850,7 @@ interface DOMInterface { } Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Info seq [hh:mm:ss:mss] Reloading configured project /home/src/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { "rootNames": [ @@ -1053,78 +874,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project1/tsconfig.json : { } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-scripthost' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-scripthost' was not resolved. ======== -Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ======== -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. -Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-es5' -Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. -Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-es5' was not resolved. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/projects/project1/__inferred type names__.ts', root directory '/home/src/projects/project1/typeroot1'. ======== Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/projects/project1/typeroot1'. Info seq [hh:mm:ss:mss] File '/home/src/projects/project1/typeroot1/sometype.d.ts' does not exist. @@ -1137,6 +889,7 @@ 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/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. @@ -1149,7 +902,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/project Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/project1/typeroot2 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 7 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" @@ -1185,24 +938,12 @@ Info seq [hh:mm:ss:mss] Files (9) Entry point for implicit type library 'sometype' Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (9) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (9) +After running Timeout callback:: count: 1 +19: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json -After running Timeout callback:: count: 0 +PolledWatches:: +/home/src/projects/project1/node_modules: + {"pollingInterval":500} PolledWatches *deleted*:: /home/src/projects/project1/typeroot2: @@ -1231,29 +972,233 @@ FsWatches:: FsWatchesRecursive:: /home/src/projects/project1: {} -/home/src/projects/project1/typeroot1: +/home/src/projects/node_modules: {} -/home/src/projects/node_modules: *new* +/home/src/projects/project1/typeroot1: {} +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker :: WatchInfo: /home/src/projects/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:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/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:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 2 +19: *ensureProjectForOpenFiles* +21: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation //// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] interface WebWorkerInterface { } -After running Timeout callback:: count: 0 +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) -Before running Timeout callback:: count: 0 +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +After running Timeout callback:: count: 2 +22: /home/src/projects/project1/tsconfig.json +23: *ensureProjectForOpenFiles* + +Before running Timeout callback:: count: 2 +22: /home/src/projects/project1/tsconfig.json +23: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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/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. +Info seq [hh:mm:ss:mss] Resolving real path for '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts', result '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts'. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 8 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/lib/lib.scripthost.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts Text-1 "interface WebWorkerInterface { }" + /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts Text-2 "interface DOMInterface { }" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + ../../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-webworker/index.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined Project: /home/src/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Scheduled: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts :: WatchInfo: /home/src/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Before running Timeout callback:: count: 0 +Before running Timeout callback:: count: 3 +24: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +25: /home/src/projects/project1/tsconfig.json +26: *ensureProjectForOpenFiles* //// [/home/src/projects/node_modules/@typescript/lib-webworker/index.d.ts] deleted +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-webworker' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ======== +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/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. +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. +Info seq [hh:mm:ss:mss] Scoped package detected, looking in 'typescript__lib-webworker' +Info seq [hh:mm:ss:mss] Directory '/home/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] Directory '/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] 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. +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. +Info seq [hh:mm:ss:mss] ======== Module name '@typescript/lib-webworker' was not resolved. ======== +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-es5' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved. +Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/projects/project1/typeroot1/sometype/index.d.ts'. +Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/projects/node_modules/@typescript/lib-dom/index.d.ts'. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project1/tsconfig.json Version: 9 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/lib/lib.es5.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; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/lib/lib.webworker.d.ts Text-1 "interface WebWorkerInterface { }" + /home/src/lib/lib.scripthost.d.ts Text-1 "interface ScriptHostInterface { }" + /home/src/projects/node_modules/@typescript/lib-dom/index.d.ts Text-2 "interface DOMInterface { }" + /home/src/projects/project1/file.ts Text-2 "export const file = 10;export const xyz = 10;" + /home/src/projects/project1/file2.ts Text-1 "/// \n/// \n/// \n" + /home/src/projects/project1/index.ts SVC-1-0 "export const x = \"type1\";" + /home/src/projects/project1/utils.d.ts Text-1 "export const y = 10;" + /home/src/projects/project1/typeroot1/sometype/index.d.ts Text-1 "export type TheNum = \"type1\";" + + + ../../lib/lib.es5.d.ts + Library referenced via 'es5' from file 'file2.ts' + Library 'lib.es5.d.ts' specified in compilerOptions + ../../lib/lib.webworker.d.ts + Library referenced via 'webworker' from file 'file2.ts' + ../../lib/lib.scripthost.d.ts + Library referenced via 'scripthost' from file 'file2.ts' + ../node_modules/@typescript/lib-dom/index.d.ts + Library 'lib.dom.d.ts' specified in compilerOptions + file.ts + Matched by default include pattern '**/*' + file2.ts + Matched by default include pattern '**/*' + index.ts + Matched by default include pattern '**/*' + utils.d.ts + Matched by default include pattern '**/*' + typeroot1/sometype/index.d.ts + Matched by default include pattern '**/*' + Entry point for implicit type library 'sometype' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/home/src/projects/project1/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (9) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project1/index.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project1/tsconfig.json After running Timeout callback:: count: 0 From ca93608017a200f598f10d6e756c28c74753746e Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 20 Apr 2023 10:08:16 -0700 Subject: [PATCH 4/6] Update to program check --- src/compiler/program.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index dfb6ed2902029..53b6e68d31782 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1231,7 +1231,8 @@ export function isProgramUptoDate( // If the compilation settings do no match, then the program is not up-to-date if (!compareDataObjects(currentOptions, newOptions)) return false; - if (some(newOptions.lib, hasInvalidatedLibResolutions)) return false; + // If library resolution is invalidated, then the program is not up-to-date + if (program.resolvedLibReferences && forEachEntry(program.resolvedLibReferences, (_value, libFileName) => hasInvalidatedLibResolutions(libFileName))) return false; // If everything matches but the text of config file is changed, // error locations can change for program options, so update the program @@ -1241,11 +1242,7 @@ export function isProgramUptoDate( function sourceFileNotUptoDate(sourceFile: SourceFile) { return !sourceFileVersionUptoDate(sourceFile) || - hasInvalidatedResolutions(sourceFile.path) || - some(sourceFile.libReferenceDirectives, libRef => { - const { libFileName } = getLibFileNameFromLibReference(libRef); - return !!libFileName && hasInvalidatedLibResolutions(libFileName); - }); + hasInvalidatedResolutions(sourceFile.path); } function sourceFileVersionUptoDate(sourceFile: SourceFile) { From 538f38d680af8b01794952bf39b3d6982204cd95 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 20 Apr 2023 10:13:15 -0700 Subject: [PATCH 5/6] Make APIs internal for now --- src/compiler/moduleNameResolver.ts | 1 + src/compiler/types.ts | 6 +++++- src/compiler/watchPublic.ts | 6 +++++- src/services/types.ts | 6 +++++- tests/baselines/reference/api/tsserverlibrary.d.ts | 10 ---------- tests/baselines/reference/api/typescript.d.ts | 10 ---------- 6 files changed, 16 insertions(+), 23 deletions(-) diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index ec5cfb640b12d..c860198172c30 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -1283,6 +1283,7 @@ export function getOptionsForLibraryResolution(options: CompilerOptions) { return { moduleResolution: ModuleResolutionKind.Node10, traceResolution: options.traceResolution }; } +/** @internal */ export function resolveLibrary(libraryName: string, resolveFrom: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations { return resolveModuleName(libraryName, resolveFrom, getOptionsForLibraryResolution(compilerOptions), host, cache); } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 38baa167b7c4a..18f985f8b69a1 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -7804,13 +7804,17 @@ export interface CompilerHost extends ModuleResolutionHost { containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined ): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + /** @internal */ resolveLibrary?( libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string, ): ResolvedModuleWithFailedLookupLocations; - /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + /** + * If provided along with custom resolveLibrary, used to determine if we should redo library resolutions + * @internal + */ hasInvalidatedLibResolutions?(libFileName: string): boolean; getEnvironmentVariable?(name: string): string | undefined; /** @internal */ onReleaseOldSourceFile?(oldSourceFile: SourceFile, oldOptions: CompilerOptions, hasSourceFileByPath: boolean): void; diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index 6348ee8a2513d..1dd9ff02a2a9b 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -230,13 +230,17 @@ export interface ProgramHost { containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined ): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + /** @internal */ resolveLibrary?( libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string, ): ResolvedModuleWithFailedLookupLocations; - /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + /** + * If provided along with custom resolveLibrary, used to determine if we should redo library resolutions + * @internal + */ hasInvalidatedLibResolutions?(libFileName: string): boolean; /** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */ diff --git a/src/services/types.ts b/src/services/types.ts index 3c3e92f64ecb7..a4d7b91474234 100644 --- a/src/services/types.ts +++ b/src/services/types.ts @@ -378,13 +378,17 @@ export interface LanguageServiceHost extends GetEffectiveTypeRootsHost, MinimalR containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined ): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; + /** @internal */ resolveLibrary?( libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string, ): ResolvedModuleWithFailedLookupLocations; - /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ + /** + * If provided along with custom resolveLibrary, used to determine if we should redo library resolutions + * @internal + */ hasInvalidatedLibResolutions?(libFileName: string): boolean; /** @internal */ hasInvalidatedResolutions?: HasInvalidatedResolutions; diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index b72fe8134ee3b..cf6c3c7018d81 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -7481,9 +7481,6 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; - resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; - /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ - hasInvalidatedLibResolutions?(libFileName: string): boolean; getEnvironmentVariable?(name: string): string | undefined; /** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */ hasInvalidatedResolutions?(filePath: Path): boolean; @@ -9252,7 +9249,6 @@ declare namespace ts { function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[]; function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): ModuleResolutionCache; function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache; - function resolveLibrary(libraryName: string, resolveFrom: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations; function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined; function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations; function bundlerModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; @@ -9733,9 +9729,6 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; - resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; - /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ - hasInvalidatedLibResolutions?(libFileName: string): boolean; /** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */ hasInvalidatedResolutions?(filePath: Path): boolean; /** @@ -9983,9 +9976,6 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; - resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; - /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ - hasInvalidatedLibResolutions?(libFileName: string): boolean; getDirectories?(directoryName: string): string[]; /** * Gets a set of custom transformers to use during emit. diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index f8199f62dcd39..9615f8bbc1f90 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -3456,9 +3456,6 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; - resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; - /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ - hasInvalidatedLibResolutions?(libFileName: string): boolean; getEnvironmentVariable?(name: string): string | undefined; /** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */ hasInvalidatedResolutions?(filePath: Path): boolean; @@ -5227,7 +5224,6 @@ declare namespace ts { function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[]; function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): ModuleResolutionCache; function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache; - function resolveLibrary(libraryName: string, resolveFrom: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations; function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined; function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations; function bundlerModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; @@ -5708,9 +5704,6 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; - resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; - /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ - hasInvalidatedLibResolutions?(libFileName: string): boolean; /** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */ hasInvalidatedResolutions?(filePath: Path): boolean; /** @@ -6039,9 +6032,6 @@ declare namespace ts { resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode): (ResolvedTypeReferenceDirective | undefined)[]; resolveModuleNameLiterals?(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences?(typeDirectiveReferences: readonly T[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile | undefined, reusedNames: readonly T[] | undefined): readonly ResolvedTypeReferenceDirectiveWithFailedLookupLocations[]; - resolveLibrary?(libraryName: string, resolveFrom: string, options: CompilerOptions, libFileName: string): ResolvedModuleWithFailedLookupLocations; - /** If provided along with custom resolveLibrary, used to determine if we should redo library resolutions */ - hasInvalidatedLibResolutions?(libFileName: string): boolean; getDirectories?(directoryName: string): string[]; /** * Gets a set of custom transformers to use during emit. From ca822bd0f91cf2ede7dc1261c5b6acc625e844ff Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 20 Apr 2023 12:19:30 -0700 Subject: [PATCH 6/6] Add tracing and extendedDiagnostics for resolveLibrary --- src/compiler/program.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 53b6e68d31782..cb47acffd4b57 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -3899,7 +3899,12 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg const libraryName = getLibraryNameFromLibFileName(libFileName); const resolveFrom = getInferredLibraryNameResolveFrom(options, currentDirectory, libFileName); + tracing?.push(tracing.Phase.Program, "resolveLibrary", { resolveFrom }); + performance.mark("beforeResolveLibrary"); const resolution = actualResolveLibrary(libraryName, resolveFrom, options, libFileName); + performance.mark("afterResolveLibrary"); + performance.measure("ResolveLibrary", "beforeResolveLibrary", "afterResolveLibrary"); + tracing?.pop(); const result: LibResolution = { resolution, actual: resolution.resolvedModule ?