diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 390c843b0c968..3d8d6c7dcd266 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -1113,6 +1113,7 @@ import { TypeReferenceNode, TypeReferenceSerializationKind, TypeReferenceType, + typesIncludesWildcard, TypeVariable, unescapeLeadingUnderscores, UnionOrIntersectionType, @@ -27628,27 +27629,27 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { case "console": return Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom; case "$": - return compilerOptions.types - ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig - : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery; + return typesIncludesWildcard(compilerOptions.types) + ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery + : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig; case "describe": case "suite": case "it": case "test": - return compilerOptions.types - ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig - : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha; + return typesIncludesWildcard(compilerOptions.types) + ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha + : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig; case "process": case "require": case "Buffer": case "module": - return compilerOptions.types - ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig - : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode; + return typesIncludesWildcard(compilerOptions.types) + ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode + : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig; case "Bun": - return compilerOptions.types - ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig - : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun; + return typesIncludesWildcard(compilerOptions.types) + ? Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun + : Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig; case "Map": case "Set": case "Promise": diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index d665072ae51b5..9dcf70a4caff8 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -26,6 +26,7 @@ import { emptyArray, endsWith, ensureTrailingDirectorySeparator, + equateValues, every, Extension, extensionIsTS, @@ -33,6 +34,7 @@ import { fileExtensionIsOneOf, filter, firstDefined, + flatten, forEach, forEachAncestorDirectory, formatMessage, @@ -799,6 +801,14 @@ export function resolvePackageNameToPackageJson( }); } +/** + * Returns true if the types compiler option includes the "*" wildcard. + * @internal + */ +export function typesIncludesWildcard(types: readonly string[] | undefined): boolean { + return types?.includes("*") ?? false; +} + /** * Given a set of options, returns the set of type directive names * that should be included for this program automatically. @@ -808,13 +818,17 @@ export function resolvePackageNameToPackageJson( * this list is only the set of defaults that are implicitly included. */ export function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[] { - // Use explicit type list from tsconfig.json - if (options.types) { + // Default to [] if nothing specified + if (options.types === undefined) { + return emptyArray; + } + + if (!typesIncludesWildcard(options.types)) { + // No wildcard, no need to iterate anything return options.types; } - // Walk the primary type lookup locations - const result: string[] = []; + const wildcardMatches: string[] = []; if (host.directoryExists && host.getDirectories) { const typeRoots = getEffectiveTypeRoots(options, host); if (typeRoots) { @@ -829,11 +843,8 @@ export function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: M const isNotNeededPackage = host.fileExists(packageJsonPath) && (readJson(packageJsonPath, host) as PackageJson).typings === null; if (!isNotNeededPackage) { const baseFileName = getBaseFileName(normalized); - - // At this stage, skip results with leading dot. if (baseFileName.charCodeAt(0) !== CharacterCodes.dot) { - // Return just the type directive names - result.push(baseFileName); + wildcardMatches.push(baseFileName); } } } @@ -841,7 +852,10 @@ export function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: M } } } - return result; + + // Order potentially matters in program construction, so substitute + // in the wildcard in the position it was specified in the types array + return deduplicate(flatten(options.types.map(t => t === "*" ? wildcardMatches : t)), equateValues); } export interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache, NonRelativeNameResolutionCache, PackageJsonInfoCache { diff --git a/src/compiler/programDiagnostics.ts b/src/compiler/programDiagnostics.ts index ee4d1161eaa19..816fb177c3483 100644 --- a/src/compiler/programDiagnostics.ts +++ b/src/compiler/programDiagnostics.ts @@ -52,6 +52,7 @@ import { removeSuffix, SourceFile, TsConfigSourceFile, + typesIncludesWildcard, } from "./_namespaces/ts.js"; interface FileReasonToChainCache { @@ -400,7 +401,7 @@ export function createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax: ) : undefined; case FileIncludeKind.AutomaticTypeDirectiveFile: - if (!options.types) return undefined; + if (typesIncludesWildcard(options.types)) return undefined; configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "types", reason.typeReference); message = Diagnostics.File_is_entry_point_of_type_library_specified_here; break; diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index 6f1fc390723ad..32739fb2a739d 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -73,6 +73,7 @@ import { startsWith, StringLiteralLike, trace, + typesIncludesWildcard, updateResolutionField, WatchDirectoryFlags, } from "./_namespaces/ts.js"; @@ -1667,7 +1668,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD */ function updateTypeRootsWatch() { const options = resolutionHost.getCompilationSettings(); - if (options.types) { + if (options.types && !typesIncludesWildcard(options.types)) { // No need to do any watch since resolution cache is going to handle the failed lookups // for the types added by this closeTypeRootsWatch(); diff --git a/src/compiler/watch.ts b/src/compiler/watch.ts index 4a49afdc36492..53b4c6ee56c00 100644 --- a/src/compiler/watch.ts +++ b/src/compiler/watch.ts @@ -97,6 +97,7 @@ import { sourceMapCommentRegExpDontCareLineStart, sys, System, + typesIncludesWildcard, WatchCompilerHost, WatchCompilerHostOfConfigFile, WatchCompilerHostOfFilesAndCompilerOptions, @@ -529,13 +530,13 @@ export function fileIncludeReasonToDiagnostics(program: Program, reason: FileInc options.outFile ? "--outFile" : "--out", ); case FileIncludeKind.AutomaticTypeDirectiveFile: { - const messageAndArgs: DiagnosticAndArguments = options.types ? + const messageAndArgs: DiagnosticAndArguments = typesIncludesWildcard(options.types) ? reason.packageId ? - [Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1, reason.typeReference, packageIdToString(reason.packageId)] : - [Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions, reason.typeReference] : + [Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1, reason.typeReference, packageIdToString(reason.packageId)] : + [Diagnostics.Entry_point_for_implicit_type_library_0, reason.typeReference] : reason.packageId ? - [Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1, reason.typeReference, packageIdToString(reason.packageId)] : - [Diagnostics.Entry_point_for_implicit_type_library_0, reason.typeReference]; + [Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1, reason.typeReference, packageIdToString(reason.packageId)] : + [Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions, reason.typeReference]; return chainDiagnosticMessages(/*details*/ undefined, ...messageAndArgs); } diff --git a/src/jsTyping/jsTyping.ts b/src/jsTyping/jsTyping.ts index 4554eb4c731eb..7f83a77beec75 100644 --- a/src/jsTyping/jsTyping.ts +++ b/src/jsTyping/jsTyping.ts @@ -28,6 +28,7 @@ import { some, toFileNameLowerCase, TypeAcquisition, + typesIncludesWildcard, Version, versionMajorMinor, } from "./_namespaces/ts.js"; @@ -133,7 +134,7 @@ export function discoverTypings( const exclude = typeAcquisition.exclude || []; // Directories to search for package.json, bower.json and other typing information - if (!compilerOptions.types) { + if (typesIncludesWildcard(compilerOptions.types)) { const possibleSearchDirs = new Set(fileNames.map(getDirectoryPath)); possibleSearchDirs.add(projectRootPath); possibleSearchDirs.forEach(searchDir => { diff --git a/src/testRunner/unittests/tsbuild/moduleResolution.ts b/src/testRunner/unittests/tsbuild/moduleResolution.ts index 0d5d1f5310121..3fb96b6715bb0 100644 --- a/src/testRunner/unittests/tsbuild/moduleResolution.ts +++ b/src/testRunner/unittests/tsbuild/moduleResolution.ts @@ -78,13 +78,13 @@ describe("unittests:: tsbuild:: moduleResolution:: handles the modules and optio TestServerHost.createWatchedSystem({ "/home/src/workspaces/project/packages/pkg1_index.ts": `export const theNum: TheNum = "type1";`, "/home/src/workspaces/project/packages/pkg1.tsconfig.json": jsonToReadableText({ - compilerOptions: { composite: true, typeRoots: ["./typeroot1"] }, + compilerOptions: { composite: true, typeRoots: ["./typeroot1"], types: ["sometype"] }, files: ["./pkg1_index.ts"], }), "/home/src/workspaces/project/packages/typeroot1/sometype/index.d.ts": dedent`declare type TheNum = "type1";`, "/home/src/workspaces/project/packages/pkg2_index.ts": `export const theNum: TheNum2 = "type2";`, "/home/src/workspaces/project/packages/pkg2.tsconfig.json": jsonToReadableText({ - compilerOptions: { composite: true, typeRoots: ["./typeroot2"] }, + compilerOptions: { composite: true, typeRoots: ["./typeroot2"], types: ["sometype"] }, files: ["./pkg2_index.ts"], }), "/home/src/workspaces/project/packages/typeroot2/sometype/index.d.ts": dedent`declare type TheNum2 = "type2";`, diff --git a/src/testRunner/unittests/tsc/incremental.ts b/src/testRunner/unittests/tsc/incremental.ts index fcbd91ab1d296..fff1b9b18f5b6 100644 --- a/src/testRunner/unittests/tsc/incremental.ts +++ b/src/testRunner/unittests/tsc/incremental.ts @@ -188,7 +188,7 @@ declare global { "/home/src/workspaces/project/node_modules/react/jsx-runtime.js": "export {}", // js needs to be present so there's a resolution result "/home/src/workspaces/project/node_modules/@types/react/index.d.ts": getJsxLibraryContent(), // doesn't contain a jsx-runtime definition "/home/src/workspaces/project/src/index.tsx": `export const App = () =>
;`, - "/home/src/workspaces/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react" } }), + "/home/src/workspaces/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react", types: ["react"] } }), }), commandLineArgs: ts.emptyArray, }); @@ -201,7 +201,7 @@ declare global { "/home/src/workspaces/project/node_modules/react/jsx-runtime.js": "export {}", // js needs to be present so there's a resolution result "/home/src/workspaces/project/node_modules/@types/react/index.d.ts": getJsxLibraryContent(), // doesn't contain a jsx-runtime definition "/home/src/workspaces/project/src/index.tsx": `export const App = () =>
;`, - "/home/src/workspaces/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react" } }), + "/home/src/workspaces/project/tsconfig.json": jsonToReadableText({ compilerOptions: { module: "commonjs", jsx: "react-jsx", incremental: true, jsxImportSource: "react", types: ["react"] } }), }), commandLineArgs: ["--strict"], }); diff --git a/src/testRunner/unittests/tscWatch/resolutionCache.ts b/src/testRunner/unittests/tscWatch/resolutionCache.ts index fcf41017d3752..bc739556d684e 100644 --- a/src/testRunner/unittests/tscWatch/resolutionCache.ts +++ b/src/testRunner/unittests/tscWatch/resolutionCache.ts @@ -241,6 +241,9 @@ describe("unittests:: tscWatch:: resolutionCache:: tsc-watch module resolution c TestServerHost.createWatchedSystem([{ path: "/users/username/projects/project/foo.ts", content: `import * as fs from "fs";`, + }, { + path: "/users/username/projects/project/tsconfig.json", + content: jsonToReadableText({ compilerOptions: { types: ["*"] } }), }], { currentDirectory: "/users/username/projects/project" }), edits: [ { @@ -565,7 +568,7 @@ declare namespace NodeJS { }; const tsconfig: File = { path: `/user/username/projects/myproject/tsconfig.json`, - content: "{}", + content: jsonToReadableText({ compilerOptions: { types: ["*"] } }), }; const { nodeAtTypesIndex, nodeAtTypesBase, nodeAtTypes36Base, nodeAtTypesGlobals } = getNodeAtTypes(); return TestServerHost.createWatchedSystem( diff --git a/src/testRunner/unittests/tsserver/configuredProjects.ts b/src/testRunner/unittests/tsserver/configuredProjects.ts index f8014a45f727d..926ae1d7ac95c 100644 --- a/src/testRunner/unittests/tsserver/configuredProjects.ts +++ b/src/testRunner/unittests/tsserver/configuredProjects.ts @@ -1177,7 +1177,7 @@ describe("unittests:: tsserver:: configuredProjects:: non-existing directories l const config = { path: "/user/username/projects/project/a/tsconfig.json", content: jsonToReadableText({ - compiler: {}, + compilerOptions: { types: ["typings"] }, files: [], }), }; diff --git a/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts b/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts index c5c8a88abdee3..07e300cb82ede 100644 --- a/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts +++ b/src/testRunner/unittests/tsserver/getMoveToRefactoringFileSuggestions.ts @@ -36,7 +36,7 @@ import { value1 } from "../node_modules/.cache/someFile.d.ts";`, }; const tsconfig: File = { path: "/home/src/projects/project/tsconfig.json", - content: "{}", + content: jsonToReadableText({ compilerOptions: { types: ["node"] } }), }; const host = TestServerHost.createServerHost([file1, file2, file3, file3, file4, nodeModulesFile1, nodeModulesFile2, tsconfig]); const session = new TestSession(host); diff --git a/src/testRunner/unittests/tsserver/resolutionCache.ts b/src/testRunner/unittests/tsserver/resolutionCache.ts index 2f0a8f9e42432..01bd8182c7e5f 100644 --- a/src/testRunner/unittests/tsserver/resolutionCache.ts +++ b/src/testRunner/unittests/tsserver/resolutionCache.ts @@ -59,7 +59,7 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem watchin const tsconfig = { path: "/users/username/projects/project/tsconfig.json", content: jsonToReadableText({ - compilerOptions: {}, + compilerOptions: { types: ["*"] }, exclude: ["node_modules"], }), }; diff --git a/src/testRunner/unittests/tsserver/typingsInstaller.ts b/src/testRunner/unittests/tsserver/typingsInstaller.ts index 9d8747a45f245..b89c91b54f3fe 100644 --- a/src/testRunner/unittests/tsserver/typingsInstaller.ts +++ b/src/testRunner/unittests/tsserver/typingsInstaller.ts @@ -222,7 +222,7 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }); openExternalProjectForSession({ projectFileName, - options: {}, + options: { types: ["*"] }, rootFiles: [toExternalFile(appJs.path)], typeAcquisition: { enable: true, include: ["node"] }, }, session); diff --git a/tests/baselines/reference/anonymousModules.errors.txt b/tests/baselines/reference/anonymousModules.errors.txt index 9ed762464d9a5..80b3447b5d05a 100644 --- a/tests/baselines/reference/anonymousModules.errors.txt +++ b/tests/baselines/reference/anonymousModules.errors.txt @@ -1,22 +1,22 @@ -anonymousModules.ts(1,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +anonymousModules.ts(1,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. anonymousModules.ts(1,8): error TS1437: Namespace must be given a name. -anonymousModules.ts(4,2): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +anonymousModules.ts(4,2): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. anonymousModules.ts(4,9): error TS1437: Namespace must be given a name. -anonymousModules.ts(10,2): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +anonymousModules.ts(10,2): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. anonymousModules.ts(10,9): error TS1437: Namespace must be given a name. ==== anonymousModules.ts (6 errors) ==== module { ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~ !!! error TS1437: Namespace must be given a name. export var foo = 1; module { ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~ !!! error TS1437: Namespace must be given a name. export var bar = 1; @@ -26,7 +26,7 @@ anonymousModules.ts(10,9): error TS1437: Namespace must be given a name. module { ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~ !!! error TS1437: Namespace must be given a name. var x = bar; diff --git a/tests/baselines/reference/conflictingCommonJSES2015Exports.errors.txt b/tests/baselines/reference/conflictingCommonJSES2015Exports.errors.txt index 755baa04ea23c..4918b0d860a35 100644 --- a/tests/baselines/reference/conflictingCommonJSES2015Exports.errors.txt +++ b/tests/baselines/reference/conflictingCommonJSES2015Exports.errors.txt @@ -1,11 +1,11 @@ -bug24934.js(2,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +bug24934.js(2,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== bug24934.js (1 errors) ==== export function abc(a, b, c) { return 5; } module.exports = { abc }; ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== use.js (0 errors) ==== import { abc } from './bug24934'; abc(1, 2, 3); diff --git a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt index 4acac636af7c2..23962ca1b4701 100644 --- a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt +++ b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt @@ -1,5 +1,5 @@ constructorWithIncompleteTypeAnnotation.ts(11,13): error TS2503: Cannot find namespace 'module'. -constructorWithIncompleteTypeAnnotation.ts(11,13): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +constructorWithIncompleteTypeAnnotation.ts(11,13): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. constructorWithIncompleteTypeAnnotation.ts(11,19): error TS1005: ';' expected. constructorWithIncompleteTypeAnnotation.ts(22,35): error TS1005: ')' expected. constructorWithIncompleteTypeAnnotation.ts(22,39): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. @@ -105,7 +105,7 @@ constructorWithIncompleteTypeAnnotation.ts(261,1): error TS1128: Declaration or ~~~~~~ !!! error TS2503: Cannot find namespace 'module'. ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~ !!! error TS1005: ';' expected. diff --git a/tests/baselines/reference/didYouMeanSuggestionErrors.errors.txt b/tests/baselines/reference/didYouMeanSuggestionErrors.errors.txt index c109c19fe7ae3..a51a1d701daf0 100644 --- a/tests/baselines/reference/didYouMeanSuggestionErrors.errors.txt +++ b/tests/baselines/reference/didYouMeanSuggestionErrors.errors.txt @@ -1,14 +1,14 @@ -didYouMeanSuggestionErrors.ts(1,1): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. -didYouMeanSuggestionErrors.ts(2,5): error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. -didYouMeanSuggestionErrors.ts(3,19): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`. -didYouMeanSuggestionErrors.ts(7,1): error TS2582: Cannot find name 'suite'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. -didYouMeanSuggestionErrors.ts(8,5): error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +didYouMeanSuggestionErrors.ts(1,1): error TS2593: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. +didYouMeanSuggestionErrors.ts(2,5): error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. +didYouMeanSuggestionErrors.ts(3,19): error TS2592: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig. +didYouMeanSuggestionErrors.ts(7,1): error TS2593: Cannot find name 'suite'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. +didYouMeanSuggestionErrors.ts(8,5): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. didYouMeanSuggestionErrors.ts(9,9): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. -didYouMeanSuggestionErrors.ts(9,21): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +didYouMeanSuggestionErrors.ts(9,21): error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. didYouMeanSuggestionErrors.ts(10,9): error TS2584: Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. -didYouMeanSuggestionErrors.ts(12,19): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. -didYouMeanSuggestionErrors.ts(13,19): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. -didYouMeanSuggestionErrors.ts(14,19): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +didYouMeanSuggestionErrors.ts(12,19): error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. +didYouMeanSuggestionErrors.ts(13,19): error TS2591: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. +didYouMeanSuggestionErrors.ts(14,19): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. didYouMeanSuggestionErrors.ts(16,23): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later. didYouMeanSuggestionErrors.ts(17,23): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later. didYouMeanSuggestionErrors.ts(18,23): error TS2583: Cannot find name 'WeakMap'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later. @@ -22,40 +22,40 @@ didYouMeanSuggestionErrors.ts(24,18): error TS2583: Cannot find name 'AsyncItera ==== didYouMeanSuggestionErrors.ts (19 errors) ==== describe("my test suite", () => { ~~~~~~~~ -!!! error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +!!! error TS2593: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. it("should run", () => { ~~ -!!! error TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +!!! error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. const a = $(".thing"); ~ -!!! error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`. +!!! error TS2592: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig. }); }); suite("another suite", () => { ~~~~~ -!!! error TS2582: Cannot find name 'suite'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +!!! error TS2593: Cannot find name 'suite'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. test("everything else", () => { ~~~~ -!!! error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +!!! error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. console.log(process.env); ~~~~~~~ !!! error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. ~~~~~~~ -!!! error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. document.createElement("div"); ~~~~~~~~ !!! error TS2584: Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'. const x = require("fs"); ~~~~~~~ -!!! error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. const y = Buffer.from([]); ~~~~~~ -!!! error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. const z = module.exports; ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. const a = new Map(); ~~~ diff --git a/tests/baselines/reference/externModule.errors.txt b/tests/baselines/reference/externModule.errors.txt index 5d933216d1d9c..3a1ac80845b52 100644 --- a/tests/baselines/reference/externModule.errors.txt +++ b/tests/baselines/reference/externModule.errors.txt @@ -1,5 +1,5 @@ externModule.ts(1,1): error TS2304: Cannot find name 'declare'. -externModule.ts(1,9): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +externModule.ts(1,9): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. externModule.ts(1,16): error TS1437: Namespace must be given a name. externModule.ts(3,10): error TS2391: Function implementation is missing or not immediately following the declaration. externModule.ts(4,10): error TS2391: Function implementation is missing or not immediately following the declaration. @@ -18,7 +18,7 @@ externModule.ts(37,3): error TS2552: Cannot find name 'XDate'. Did you mean 'Dat ~~~~~~~ !!! error TS2304: Cannot find name 'declare'. ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~ !!! error TS1437: Namespace must be given a name. export class XDate { diff --git a/tests/baselines/reference/fixSignatureCaching.errors.txt b/tests/baselines/reference/fixSignatureCaching.errors.txt index c6a191044009d..5c3ceb0cf961e 100644 --- a/tests/baselines/reference/fixSignatureCaching.errors.txt +++ b/tests/baselines/reference/fixSignatureCaching.errors.txt @@ -50,9 +50,9 @@ fixSignatureCaching.ts(915,36): error TS2339: Property 'findMatches' does not ex fixSignatureCaching.ts(915,53): error TS2339: Property 'mobileDetectRules' does not exist on type '{}'. fixSignatureCaching.ts(955,42): error TS2339: Property 'mobileGrade' does not exist on type '{}'. fixSignatureCaching.ts(964,57): error TS2339: Property 'getDeviceSmallerSide' does not exist on type '{}'. -fixSignatureCaching.ts(978,16): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. -fixSignatureCaching.ts(978,42): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. -fixSignatureCaching.ts(979,37): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +fixSignatureCaching.ts(978,16): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. +fixSignatureCaching.ts(978,42): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. +fixSignatureCaching.ts(979,37): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. fixSignatureCaching.ts(980,23): error TS2304: Cannot find name 'define'. fixSignatureCaching.ts(980,48): error TS2304: Cannot find name 'define'. fixSignatureCaching.ts(981,16): error TS2304: Cannot find name 'define'. @@ -1143,12 +1143,12 @@ fixSignatureCaching.ts(983,44): error TS2339: Property 'MobileDetect' does not e })((function (undefined) { if (typeof module !== 'undefined' && module.exports) { ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. return function (factory) { module.exports = factory(); }; ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. } else if (typeof define === 'function' && define.amd) { ~~~~~~ !!! error TS2304: Cannot find name 'define'. diff --git a/tests/baselines/reference/innerModExport1.errors.txt b/tests/baselines/reference/innerModExport1.errors.txt index 6ff7e61c1650c..45eba7396c537 100644 --- a/tests/baselines/reference/innerModExport1.errors.txt +++ b/tests/baselines/reference/innerModExport1.errors.txt @@ -1,4 +1,4 @@ -innerModExport1.ts(5,5): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +innerModExport1.ts(5,5): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. innerModExport1.ts(5,12): error TS1437: Namespace must be given a name. @@ -9,7 +9,7 @@ innerModExport1.ts(5,12): error TS1437: Namespace must be given a name. var non_export_var: number; module { ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~ !!! error TS1437: Namespace must be given a name. var non_export_var = 0; diff --git a/tests/baselines/reference/innerModExport2.errors.txt b/tests/baselines/reference/innerModExport2.errors.txt index 1132230b92730..c3541b1c2119e 100644 --- a/tests/baselines/reference/innerModExport2.errors.txt +++ b/tests/baselines/reference/innerModExport2.errors.txt @@ -1,4 +1,4 @@ -innerModExport2.ts(5,5): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +innerModExport2.ts(5,5): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. innerModExport2.ts(5,12): error TS1437: Namespace must be given a name. innerModExport2.ts(7,20): error TS2395: Individual declarations in merged declaration 'export_var' must be all exported or all local. innerModExport2.ts(13,9): error TS2395: Individual declarations in merged declaration 'export_var' must be all exported or all local. @@ -12,7 +12,7 @@ innerModExport2.ts(20,7): error TS2551: Property 'NonExportFunc' does not exist var non_export_var: number; module { ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~ !!! error TS1437: Namespace must be given a name. var non_export_var = 0; diff --git a/tests/baselines/reference/jsDeclarationsExportFormsErr.errors.txt b/tests/baselines/reference/jsDeclarationsExportFormsErr.errors.txt index b2959017f78cd..91a0799f0772a 100644 --- a/tests/baselines/reference/jsDeclarationsExportFormsErr.errors.txt +++ b/tests/baselines/reference/jsDeclarationsExportFormsErr.errors.txt @@ -1,6 +1,6 @@ bar.js(1,1): error TS8002: 'import ... =' can only be used in TypeScript files. bar.js(2,1): error TS8003: 'export =' can only be used in TypeScript files. -bin.js(2,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +bin.js(2,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. globalNs.js(2,1): error TS1315: Global module exports may only appear in declaration files. @@ -19,7 +19,7 @@ globalNs.js(2,1): error TS1315: Global module exports may only appear in declara import * as ns from "./cls"; module.exports = ns; // We refuse to bind cjs module exports assignments in the same file we find an import in ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== globalNs.js (1 errors) ==== export * from "./cls"; diff --git a/tests/baselines/reference/jsxAndTypeAssertion.errors.txt b/tests/baselines/reference/jsxAndTypeAssertion.errors.txt index 7346a4a1360dc..2485c0a71a132 100644 --- a/tests/baselines/reference/jsxAndTypeAssertion.errors.txt +++ b/tests/baselines/reference/jsxAndTypeAssertion.errors.txt @@ -1,5 +1,5 @@ jsxAndTypeAssertion.tsx(6,6): error TS17008: JSX element 'any' has no corresponding closing tag. -jsxAndTypeAssertion.tsx(6,13): error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +jsxAndTypeAssertion.tsx(6,13): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. jsxAndTypeAssertion.tsx(6,17): error TS1005: '}' expected. jsxAndTypeAssertion.tsx(6,31): error TS1381: Unexpected token. Did you mean `{'}'}` or `}`? jsxAndTypeAssertion.tsx(8,6): error TS17008: JSX element 'any' has no corresponding closing tag. @@ -33,7 +33,7 @@ jsxAndTypeAssertion.tsx(21,1): error TS1005: '); - \ No newline at end of file diff --git a/tests/baselines/reference/modulePreserve3.trace.json b/tests/baselines/reference/modulePreserve3.trace.json index 444dc923bd0e1..0a20a8b64107a 100644 --- a/tests/baselines/reference/modulePreserve3.trace.json +++ b/tests/baselines/reference/modulePreserve3.trace.json @@ -12,18 +12,5 @@ "File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups.", "File '/node_modules/@types/react/jsx-runtime.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/node_modules/@types/react/jsx-runtime.d.ts', result '/node_modules/@types/react/jsx-runtime.d.ts'.", - "======== Module name 'react/jsx-runtime' was successfully resolved to '/node_modules/@types/react/jsx-runtime.d.ts'. ========", - "======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ========", - "Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'.", - "Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it.", - "File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups.", - "File '/node_modules/@types/react/index.d.ts' does not exist.", - "Looking up in 'node_modules' folder, initial location '/.src'.", - "Searching all ancestor node_modules directories for preferred extensions: Declaration.", - "Directory '/.src/node_modules' does not exist, skipping all lookups in it.", - "File '/node_modules/react.d.ts' does not exist.", - "File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups.", - "File '/node_modules/@types/react.d.ts' does not exist.", - "File '/node_modules/@types/react/index.d.ts' does not exist.", - "======== Type reference directive 'react' was not resolved. ========" + "======== Module name 'react/jsx-runtime' was successfully resolved to '/node_modules/@types/react/jsx-runtime.d.ts'. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/modulePreserve4.errors.txt b/tests/baselines/reference/modulePreserve4.errors.txt index 33856c3e7d1fa..d1c198c7b4384 100644 --- a/tests/baselines/reference/modulePreserve4.errors.txt +++ b/tests/baselines/reference/modulePreserve4.errors.txt @@ -1,12 +1,12 @@ -/a.js(2,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +/a.js(2,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. /f.cts(1,1): error TS1286: ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. /main1.ts(1,13): error TS2305: Module '"./a"' has no exported member 'y'. -/main1.ts(3,12): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +/main1.ts(3,12): error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. /main1.ts(19,4): error TS2339: Property 'default' does not exist on type '() => void'. /main1.ts(23,8): error TS1192: Module '"/e"' has no default export. /main2.mts(1,13): error TS2305: Module '"./a"' has no exported member 'y'. /main2.mts(4,4): error TS2339: Property 'default' does not exist on type 'typeof import("/a")'. -/main2.mts(5,12): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +/main2.mts(5,12): error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. /main2.mts(14,8): error TS1192: Module '"/e"' has no default export. /main3.cjs(1,10): error TS1293: ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'. /main3.cjs(1,13): error TS2305: Module '"./a"' has no exported member 'y'. @@ -23,7 +23,7 @@ export const x = 0; module.exports.y = 0; // Error ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== /b.ts (0 errors) ==== export default 0; @@ -54,7 +54,7 @@ import a1 = require("./a"); // { x: 0 } const a2 = require("./a"); // Error in TS ~~~~~~~ -!!! error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. const a3 = await import("./a"); // { x: 0 } a3.x; @@ -100,7 +100,7 @@ !!! error TS2339: Property 'default' does not exist on type 'typeof import("/a")'. const a2 = require("./a"); // Error in TS ~~~~~~~ -!!! error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. import b1 from "./b"; // 0 import b2 = require("./b"); // { default: 0 } diff --git a/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node16).errors.txt b/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node16).errors.txt index 2a0e2142ec20e..0d3a1ddfa8f5a 100644 --- a/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node16).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node16).errors.txt @@ -1,5 +1,5 @@ file.js(2,8): error TS2882: Cannot find module or type declarations for side-effect import of 'fs'. -file.js(4,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +file.js(4,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. index.js(3,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files. subfolder/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files. @@ -31,7 +31,7 @@ subfolder/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript const a = {}; module.exports = a; ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== package.json (0 errors) ==== { "name": "package", diff --git a/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node18).errors.txt b/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node18).errors.txt index 2a0e2142ec20e..0d3a1ddfa8f5a 100644 --- a/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node18).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node18).errors.txt @@ -1,5 +1,5 @@ file.js(2,8): error TS2882: Cannot find module or type declarations for side-effect import of 'fs'. -file.js(4,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +file.js(4,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. index.js(3,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files. subfolder/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files. @@ -31,7 +31,7 @@ subfolder/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript const a = {}; module.exports = a; ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== package.json (0 errors) ==== { "name": "package", diff --git a/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node20).errors.txt b/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node20).errors.txt index 2a0e2142ec20e..0d3a1ddfa8f5a 100644 --- a/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node20).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=node20).errors.txt @@ -1,5 +1,5 @@ file.js(2,8): error TS2882: Cannot find module or type declarations for side-effect import of 'fs'. -file.js(4,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +file.js(4,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. index.js(3,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files. subfolder/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files. @@ -31,7 +31,7 @@ subfolder/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript const a = {}; module.exports = a; ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== package.json (0 errors) ==== { "name": "package", diff --git a/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=nodenext).errors.txt b/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=nodenext).errors.txt index 2a0e2142ec20e..0d3a1ddfa8f5a 100644 --- a/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=nodenext).errors.txt +++ b/tests/baselines/reference/nodeModulesAllowJsExportAssignment(module=nodenext).errors.txt @@ -1,5 +1,5 @@ file.js(2,8): error TS2882: Cannot find module or type declarations for side-effect import of 'fs'. -file.js(4,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +file.js(4,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. index.js(3,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files. subfolder/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript files. @@ -31,7 +31,7 @@ subfolder/index.js(3,1): error TS8003: 'export =' can only be used in TypeScript const a = {}; module.exports = a; ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== package.json (0 errors) ==== { "name": "package", diff --git a/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json b/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json index fcbc9b87298c0..b9d09e5206811 100644 --- a/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json +++ b/tests/baselines/reference/nodeModulesAtTypesPriority.trace.json @@ -57,20 +57,6 @@ "File '/packages/a/node_modules/redux/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/packages/a/node_modules/redux/index.d.ts', result '/packages/a/node_modules/redux/index.d.ts'.", "======== Module name 'redux' was successfully resolved to '/packages/a/node_modules/redux/index.d.ts'. ========", - "======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ========", - "Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'.", - "Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it.", - "File '/node_modules/@types/react/package.json' does not exist according to earlier cached lookups.", - "File '/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result.", - "Resolving real path for '/node_modules/@types/react/index.d.ts', result '/node_modules/@types/react/index.d.ts'.", - "======== Type reference directive 'react' was successfully resolved to '/node_modules/@types/react/index.d.ts', primary: true. ========", - "======== Resolving type reference directive 'redux', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ========", - "Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'.", - "Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it.", - "File '/node_modules/@types/redux/package.json' does not exist according to earlier cached lookups.", - "File '/node_modules/@types/redux/index.d.ts' exists - use it as a name resolution result.", - "Resolving real path for '/node_modules/@types/redux/index.d.ts', result '/node_modules/@types/redux/index.d.ts'.", - "======== Type reference directive 'redux' was successfully resolved to '/node_modules/@types/redux/index.d.ts', primary: true. ========", "File '/.ts/package.json' does not exist.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/overloadingStaticFunctionsInFunctions.errors.txt b/tests/baselines/reference/overloadingStaticFunctionsInFunctions.errors.txt index 0480862a9fa42..04f5d04cf14eb 100644 --- a/tests/baselines/reference/overloadingStaticFunctionsInFunctions.errors.txt +++ b/tests/baselines/reference/overloadingStaticFunctionsInFunctions.errors.txt @@ -1,13 +1,13 @@ overloadingStaticFunctionsInFunctions.ts(1,14): error TS1005: '(' expected. overloadingStaticFunctionsInFunctions.ts(2,3): error TS1128: Declaration or statement expected. -overloadingStaticFunctionsInFunctions.ts(2,10): error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +overloadingStaticFunctionsInFunctions.ts(2,10): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. overloadingStaticFunctionsInFunctions.ts(3,3): error TS1128: Declaration or statement expected. -overloadingStaticFunctionsInFunctions.ts(3,10): error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +overloadingStaticFunctionsInFunctions.ts(3,10): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. overloadingStaticFunctionsInFunctions.ts(3,15): error TS2304: Cannot find name 'name'. overloadingStaticFunctionsInFunctions.ts(3,19): error TS1005: ',' expected. overloadingStaticFunctionsInFunctions.ts(3,20): error TS2693: 'string' only refers to a type, but is being used as a value here. overloadingStaticFunctionsInFunctions.ts(4,3): error TS1128: Declaration or statement expected. -overloadingStaticFunctionsInFunctions.ts(4,10): error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +overloadingStaticFunctionsInFunctions.ts(4,10): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. overloadingStaticFunctionsInFunctions.ts(4,15): error TS2304: Cannot find name 'name'. overloadingStaticFunctionsInFunctions.ts(4,20): error TS1109: Expression expected. overloadingStaticFunctionsInFunctions.ts(4,21): error TS2693: 'any' only refers to a type, but is being used as a value here. @@ -22,12 +22,12 @@ overloadingStaticFunctionsInFunctions.ts(4,25): error TS1005: ';' expected. ~~~~~~ !!! error TS1128: Declaration or statement expected. ~~~~ -!!! error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +!!! error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. static test(name:string) ~~~~~~ !!! error TS1128: Declaration or statement expected. ~~~~ -!!! error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +!!! error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. ~~~~ !!! error TS2304: Cannot find name 'name'. ~ @@ -38,7 +38,7 @@ overloadingStaticFunctionsInFunctions.ts(4,25): error TS1005: ';' expected. ~~~~~~ !!! error TS1128: Declaration or statement expected. ~~~~ -!!! error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +!!! error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. ~~~~ !!! error TS2304: Cannot find name 'name'. ~ diff --git a/tests/baselines/reference/parser509534.errors.txt b/tests/baselines/reference/parser509534.errors.txt index 48919642e74d0..22e2c592c884b 100644 --- a/tests/baselines/reference/parser509534.errors.txt +++ b/tests/baselines/reference/parser509534.errors.txt @@ -1,15 +1,15 @@ -parser509534.ts(2,14): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. -parser509534.ts(3,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +parser509534.ts(2,14): error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. +parser509534.ts(3,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== parser509534.ts (2 errors) ==== "use strict"; var config = require("../config"); ~~~~~~~ -!!! error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. module.exports.route = function (server) { ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. // General Login Page server.get(config.env.siteRoot + "/auth/login", function (req, res, next) { diff --git a/tests/baselines/reference/parser509693.errors.txt b/tests/baselines/reference/parser509693.errors.txt index 0702aad2a5baf..bcebf0987b87b 100644 --- a/tests/baselines/reference/parser509693.errors.txt +++ b/tests/baselines/reference/parser509693.errors.txt @@ -1,10 +1,10 @@ -parser509693.ts(1,6): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. -parser509693.ts(1,22): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +parser509693.ts(1,6): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. +parser509693.ts(1,22): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== parser509693.ts (2 errors) ==== if (!module.exports) module.exports = ""; ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. \ No newline at end of file +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. \ No newline at end of file diff --git a/tests/baselines/reference/parser519458.errors.txt b/tests/baselines/reference/parser519458.errors.txt index 8bd4d77f6a3b2..4534e059f31e9 100644 --- a/tests/baselines/reference/parser519458.errors.txt +++ b/tests/baselines/reference/parser519458.errors.txt @@ -1,5 +1,5 @@ parser519458.ts(1,15): error TS2503: Cannot find namespace 'module'. -parser519458.ts(1,15): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +parser519458.ts(1,15): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. parser519458.ts(1,21): error TS1005: ';' expected. @@ -8,7 +8,7 @@ parser519458.ts(1,21): error TS1005: ';' expected. ~~~~~~ !!! error TS2503: Cannot find namespace 'module'. ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~ !!! error TS1005: ';' expected. \ No newline at end of file diff --git a/tests/baselines/reference/parser521128.errors.txt b/tests/baselines/reference/parser521128.errors.txt index be56ca0f12b9c..a06d25bba45e2 100644 --- a/tests/baselines/reference/parser521128.errors.txt +++ b/tests/baselines/reference/parser521128.errors.txt @@ -1,10 +1,10 @@ -parser521128.ts(1,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +parser521128.ts(1,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. parser521128.ts(1,15): error TS1005: ';' expected. ==== parser521128.ts (2 errors) ==== module.module { } ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~ !!! error TS1005: ';' expected. \ No newline at end of file diff --git a/tests/baselines/reference/parserCommaInTypeMemberList2.errors.txt b/tests/baselines/reference/parserCommaInTypeMemberList2.errors.txt index 4fd3eeeb1793c..10011c8013883 100644 --- a/tests/baselines/reference/parserCommaInTypeMemberList2.errors.txt +++ b/tests/baselines/reference/parserCommaInTypeMemberList2.errors.txt @@ -1,8 +1,8 @@ -parserCommaInTypeMemberList2.ts(1,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`. +parserCommaInTypeMemberList2.ts(1,9): error TS2592: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig. ==== parserCommaInTypeMemberList2.ts (1 errors) ==== var s = $.extend< { workItem: any }, { workItem: any, width: string }>({ workItem: this._workItem }, {}); ~ -!!! error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`. +!!! error TS2592: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig. \ No newline at end of file diff --git a/tests/baselines/reference/parserharness.errors.txt b/tests/baselines/reference/parserharness.errors.txt index d938d138ba846..1d2f990cf51b0 100644 --- a/tests/baselines/reference/parserharness.errors.txt +++ b/tests/baselines/reference/parserharness.errors.txt @@ -5,8 +5,8 @@ parserharness.ts(19,21): error TS6053: File 'diff.ts' not found. parserharness.ts(21,21): error TS2749: 'Harness.Assert' refers to a value, but is being used as a type here. Did you mean 'typeof Harness.Assert'? parserharness.ts(25,17): error TS2304: Cannot find name 'IIO'. parserharness.ts(41,12): error TS2304: Cannot find name 'ActiveXObject'. -parserharness.ts(43,19): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. -parserharness.ts(44,14): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +parserharness.ts(43,19): error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. +parserharness.ts(44,14): error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. parserharness.ts(341,13): error TS2662: Cannot find name 'errorHandlerStack'. Did you mean the static member 'Runnable.errorHandlerStack'? parserharness.ts(347,13): error TS2662: Cannot find name 'errorHandlerStack'. Did you mean the static member 'Runnable.errorHandlerStack'? parserharness.ts(351,17): error TS2662: Cannot find name 'errorHandlerStack'. Did you mean the static member 'Runnable.errorHandlerStack'? @@ -169,10 +169,10 @@ parserharness.ts(2030,32): error TS2304: Cannot find name 'Diff'. eval(typescriptServiceFile); } else if (typeof require === "function") { ~~~~~~~ -!!! error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. var vm = require('vm'); ~~~~~~~ -!!! error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. vm.runInThisContext(typescriptServiceFile, 'typescriptServices.js'); } else { throw new Error('Unknown context'); diff --git a/tests/baselines/reference/reactJsxReactResolvedNodeNext.trace.json b/tests/baselines/reference/reactJsxReactResolvedNodeNext.trace.json index 2683c0acc5e32..c8b07a21c5110 100644 --- a/tests/baselines/reference/reactJsxReactResolvedNodeNext.trace.json +++ b/tests/baselines/reference/reactJsxReactResolvedNodeNext.trace.json @@ -32,14 +32,6 @@ "======== Resolving module './' from '/.src/node_modules/@types/react/jsx-dev-runtime.d.ts'. ========", "Resolution for module './' was found in cache from location '/.src/node_modules/@types/react'.", "======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ========", - "======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ========", - "Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'.", - "File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups.", - "'package.json' does not have a 'typings' field.", - "'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'.", - "File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result.", - "Resolving real path for '/.src/node_modules/@types/react/index.d.ts', result '/.src/node_modules/@types/react/index.d.ts'.", - "======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/index.d.ts@0.0.1', primary: true. ========", "File '/.ts/package.json' does not exist.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/reactJsxReactResolvedNodeNextEsm.trace.json b/tests/baselines/reference/reactJsxReactResolvedNodeNextEsm.trace.json index 7500fdec0948c..c9cfdf1aad3b4 100644 --- a/tests/baselines/reference/reactJsxReactResolvedNodeNextEsm.trace.json +++ b/tests/baselines/reference/reactJsxReactResolvedNodeNextEsm.trace.json @@ -32,14 +32,6 @@ "======== Resolving module './' from '/.src/node_modules/@types/react/jsx-dev-runtime.d.ts'. ========", "Resolution for module './' was found in cache from location '/.src/node_modules/@types/react'.", "======== Module name './' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/ndex.d.ts@0.0.1'. ========", - "======== Resolving type reference directive 'react', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ========", - "Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'.", - "File '/.src/node_modules/@types/react/package.json' exists according to earlier cached lookups.", - "'package.json' does not have a 'typings' field.", - "'package.json' has 'types' field 'index.d.ts' that references '/.src/node_modules/@types/react/index.d.ts'.", - "File '/.src/node_modules/@types/react/index.d.ts' exists - use it as a name resolution result.", - "Resolving real path for '/.src/node_modules/@types/react/index.d.ts', result '/.src/node_modules/@types/react/index.d.ts'.", - "======== Type reference directive 'react' was successfully resolved to '/.src/node_modules/@types/react/index.d.ts' with Package ID '@types/react/index.d.ts@0.0.1', primary: true. ========", "File '/.ts/package.json' does not exist.", "File '/package.json' does not exist.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/reservedWords2.errors.txt b/tests/baselines/reference/reservedWords2.errors.txt index 7dea580e5ae8d..9b8d5eaa59aee 100644 --- a/tests/baselines/reference/reservedWords2.errors.txt +++ b/tests/baselines/reference/reservedWords2.errors.txt @@ -1,6 +1,6 @@ reservedWords2.ts(1,8): error TS1109: Expression expected. reservedWords2.ts(1,14): error TS1005: '(' expected. -reservedWords2.ts(1,16): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +reservedWords2.ts(1,16): error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. reservedWords2.ts(1,31): error TS1005: ')' expected. reservedWords2.ts(2,12): error TS2300: Duplicate identifier '(Missing)'. reservedWords2.ts(2,12): error TS2567: Enum declarations can only merge with namespace or other enum declarations. @@ -42,7 +42,7 @@ reservedWords2.ts(12,17): error TS1138: Parameter declaration expected. ~ !!! error TS1005: '(' expected. ~~~~~~~ -!!! error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~ !!! error TS1005: ')' expected. import * as while from "foo" diff --git a/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt b/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt index 7de26d273b827..a8da8abbfd01a 100644 --- a/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt +++ b/tests/baselines/reference/resolutionModeImportType1(moduleresolution=classic).errors.txt @@ -1,15 +1,9 @@ -error TS2688: Cannot find type definition file for 'foo'. - The file is in the program because: - Entry point for implicit type library 'foo' error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. /app.ts(1,30): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? /app.ts(2,29): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? /app.ts(3,30): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -!!! error TS2688: Cannot find type definition file for 'foo'. -!!! error TS2688: The file is in the program because: -!!! error TS2688: Entry point for implicit type library 'foo' !!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /node_modules/@types/foo/package.json (0 errors) ==== { diff --git a/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt b/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt index a5ade620990a9..66320555896c6 100644 --- a/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt +++ b/tests/baselines/reference/resolutionModeTypeOnlyImport1(moduleresolution=classic).errors.txt @@ -1,15 +1,9 @@ -error TS2688: Cannot find type definition file for 'foo'. - The file is in the program because: - Entry point for implicit type library 'foo' error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. /app.ts(1,35): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? /app.ts(2,34): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? /app.ts(3,35): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? -!!! error TS2688: Cannot find type definition file for 'foo'. -!!! error TS2688: The file is in the program because: -!!! error TS2688: Entry point for implicit type library 'foo' !!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. ==== /node_modules/@types/foo/package.json (0 errors) ==== { diff --git a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json index 017aa1e3dd9d7..92097df41f307 100644 --- a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json +++ b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=bundler).trace.json @@ -108,14 +108,5 @@ "File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result.", "'package.json' does not have a 'peerDependencies' field.", "Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'.", - "======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ========", - "======== Resolving type reference directive 'bar', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ========", - "Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'.", - "Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it.", - "File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups.", - "'package.json' does not have a 'typings' field.", - "'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'.", - "File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result.", - "Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'.", - "======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0', primary: true. ========" + "======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json index a7bab2c4e01e2..f4f5238584cdf 100644 --- a/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json +++ b/tests/baselines/reference/resolvesWithoutExportsDiagnostic1(moduleresolution=node16).trace.json @@ -98,15 +98,6 @@ "'package.json' does not have a 'peerDependencies' field.", "Resolving real path for '/node_modules/bar/index.mjs', result '/node_modules/bar/index.mjs'.", "======== Module name 'bar' was successfully resolved to '/node_modules/bar/index.mjs' with Package ID 'bar/index.mjs@1.0.0'. ========", - "======== Resolving type reference directive 'bar', containing file '/.src/__inferred type names__.ts', root directory '/.src/node_modules/@types,/node_modules/@types'. ========", - "Resolving with primary search path '/.src/node_modules/@types, /node_modules/@types'.", - "Directory '/.src/node_modules/@types' does not exist, skipping all lookups in it.", - "File '/node_modules/@types/bar/package.json' exists according to earlier cached lookups.", - "'package.json' does not have a 'typings' field.", - "'package.json' has 'types' field 'index.d.ts' that references '/node_modules/@types/bar/index.d.ts'.", - "File '/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result.", - "Resolving real path for '/node_modules/@types/bar/index.d.ts', result '/node_modules/@types/bar/index.d.ts'.", - "======== Type reference directive 'bar' was successfully resolved to '/node_modules/@types/bar/index.d.ts' with Package ID '@types/bar/index.d.ts@1.0.0', primary: true. ========", "File '/.ts/package.json' does not exist.", "File '/package.json' does not exist according to earlier cached lookups.", "File '/.ts/package.json' does not exist according to earlier cached lookups.", diff --git a/tests/baselines/reference/staticsInAFunction.errors.txt b/tests/baselines/reference/staticsInAFunction.errors.txt index f7555f7aebee3..98f5ecc7c213d 100644 --- a/tests/baselines/reference/staticsInAFunction.errors.txt +++ b/tests/baselines/reference/staticsInAFunction.errors.txt @@ -1,13 +1,13 @@ staticsInAFunction.ts(1,13): error TS1005: '(' expected. staticsInAFunction.ts(2,4): error TS1128: Declaration or statement expected. -staticsInAFunction.ts(2,11): error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +staticsInAFunction.ts(2,11): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. staticsInAFunction.ts(3,4): error TS1128: Declaration or statement expected. -staticsInAFunction.ts(3,11): error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +staticsInAFunction.ts(3,11): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. staticsInAFunction.ts(3,16): error TS2304: Cannot find name 'name'. staticsInAFunction.ts(3,20): error TS1005: ',' expected. staticsInAFunction.ts(3,21): error TS2693: 'string' only refers to a type, but is being used as a value here. staticsInAFunction.ts(4,4): error TS1128: Declaration or statement expected. -staticsInAFunction.ts(4,11): error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +staticsInAFunction.ts(4,11): error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. staticsInAFunction.ts(4,16): error TS2304: Cannot find name 'name'. staticsInAFunction.ts(4,21): error TS1109: Expression expected. staticsInAFunction.ts(4,22): error TS2693: 'any' only refers to a type, but is being used as a value here. @@ -22,12 +22,12 @@ staticsInAFunction.ts(4,26): error TS1005: ';' expected. ~~~~~~ !!! error TS1128: Declaration or statement expected. ~~~~ -!!! error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +!!! error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. static test(name:string) ~~~~~~ !!! error TS1128: Declaration or statement expected. ~~~~ -!!! error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +!!! error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. ~~~~ !!! error TS2304: Cannot find name 'name'. ~ @@ -38,7 +38,7 @@ staticsInAFunction.ts(4,26): error TS1005: ';' expected. ~~~~~~ !!! error TS1128: Declaration or statement expected. ~~~~ -!!! error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. +!!! error TS2593: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. ~~~~ !!! error TS2304: Cannot find name 'name'. ~ diff --git a/tests/baselines/reference/templateStringInModuleName.errors.txt b/tests/baselines/reference/templateStringInModuleName.errors.txt index 8bc71e48c3d43..a691f3b30f5a4 100644 --- a/tests/baselines/reference/templateStringInModuleName.errors.txt +++ b/tests/baselines/reference/templateStringInModuleName.errors.txt @@ -1,8 +1,8 @@ templateStringInModuleName.ts(1,1): error TS2304: Cannot find name 'declare'. -templateStringInModuleName.ts(1,9): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +templateStringInModuleName.ts(1,9): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. templateStringInModuleName.ts(1,16): error TS1443: Module declaration names may only use ' or " quoted strings. templateStringInModuleName.ts(4,1): error TS2304: Cannot find name 'declare'. -templateStringInModuleName.ts(4,9): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +templateStringInModuleName.ts(4,9): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. templateStringInModuleName.ts(4,16): error TS1443: Module declaration names may only use ' or " quoted strings. @@ -11,7 +11,7 @@ templateStringInModuleName.ts(4,16): error TS1443: Module declaration names may ~~~~~~~ !!! error TS2304: Cannot find name 'declare'. ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~~~~ !!! error TS1443: Module declaration names may only use ' or " quoted strings. } @@ -20,7 +20,7 @@ templateStringInModuleName.ts(4,16): error TS1443: Module declaration names may ~~~~~~~ !!! error TS2304: Cannot find name 'declare'. ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~~~~~~~ !!! error TS1443: Module declaration names may only use ' or " quoted strings. } \ No newline at end of file diff --git a/tests/baselines/reference/templateStringInModuleNameES6.errors.txt b/tests/baselines/reference/templateStringInModuleNameES6.errors.txt index 889daa0f75c33..180a8d7e65992 100644 --- a/tests/baselines/reference/templateStringInModuleNameES6.errors.txt +++ b/tests/baselines/reference/templateStringInModuleNameES6.errors.txt @@ -1,8 +1,8 @@ templateStringInModuleNameES6.ts(1,1): error TS2304: Cannot find name 'declare'. -templateStringInModuleNameES6.ts(1,9): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +templateStringInModuleNameES6.ts(1,9): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. templateStringInModuleNameES6.ts(1,16): error TS1443: Module declaration names may only use ' or " quoted strings. templateStringInModuleNameES6.ts(4,1): error TS2304: Cannot find name 'declare'. -templateStringInModuleNameES6.ts(4,9): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +templateStringInModuleNameES6.ts(4,9): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. templateStringInModuleNameES6.ts(4,16): error TS1443: Module declaration names may only use ' or " quoted strings. @@ -11,7 +11,7 @@ templateStringInModuleNameES6.ts(4,16): error TS1443: Module declaration names m ~~~~~~~ !!! error TS2304: Cannot find name 'declare'. ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~~~~ !!! error TS1443: Module declaration names may only use ' or " quoted strings. } @@ -20,7 +20,7 @@ templateStringInModuleNameES6.ts(4,16): error TS1443: Module declaration names m ~~~~~~~ !!! error TS2304: Cannot find name 'declare'. ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~~~~~~~ !!! error TS1443: Module declaration names may only use ' or " quoted strings. } \ 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 index a5061838ffc72..01c28c89beac8 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config-with-redirection.js @@ -240,13 +240,6 @@ File '/home/src/workspace/package.json' does not exist according to earlier cach File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -291,7 +284,6 @@ 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' [HH:MM:SS AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspace/projects/project2/tsconfig.json'... diff --git a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js index 7e62ffecd9314..d54a6fbf48ae5 100644 --- a/tests/baselines/reference/tsbuild/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuild/libraryResolution/with-config.js @@ -130,13 +130,6 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspace/projects/project1/tsconfig.json'... -======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== ../../tslibs/TS/Lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -158,7 +151,6 @@ 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' [HH:MM:SS AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspace/projects/project2/tsconfig.json'... diff --git a/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js b/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js index 0bd937e5cc109..f631e358c334f 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/impliedNodeFormat-differs-between-projects-for-shared-file.js @@ -63,23 +63,10 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspaces/project/a/tsconfig.json'... -======== Resolving type reference directive 'pg', containing file '/home/src/workspaces/project/a/__inferred type names__.ts', root directory '/home/src/workspaces/project/a/node_modules/@types,/home/src/workspaces/project/node_modules/@types,/home/src/workspaces/node_modules/@types,/home/src/node_modules/@types,/home/node_modules/@types,/node_modules/@types'. ======== -Resolving with primary search path '/home/src/workspaces/project/a/node_modules/@types, /home/src/workspaces/project/node_modules/@types, /home/src/workspaces/node_modules/@types, /home/src/node_modules/@types, /home/node_modules/@types, /node_modules/@types'. -Directory '/home/src/workspaces/project/a/node_modules/@types' does not exist, skipping all lookups in it. -Found 'package.json' at '/home/src/workspaces/project/node_modules/@types/pg/package.json'. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. -File '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', result '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. -======== Type reference directive 'pg' was successfully resolved to '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', primary: true. ======== -File '/home/src/workspaces/project/node_modules/@types/pg/package.json' exists according to earlier cached lookups. ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' a/src/index.ts Matched by default include pattern '**/*' -node_modules/@types/pg/index.d.ts - Entry point for implicit type library 'pg' [HH:MM:SS AM] Project 'b/tsconfig.json' is out of date because output file 'b/tsconfig.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspaces/project/b/tsconfig.json'... @@ -95,22 +82,14 @@ Loading module 'pg' from 'node_modules' folder, target file types: TypeScript, J Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. Directory '/home/src/workspaces/project/b/src/node_modules' does not exist, skipping all lookups in it. Directory '/home/src/workspaces/project/b/node_modules' does not exist, skipping all lookups in it. -File '/home/src/workspaces/project/node_modules/@types/pg/package.json' exists according to earlier cached lookups. +Found 'package.json' at '/home/src/workspaces/project/node_modules/@types/pg/package.json'. +'package.json' does not have a 'typesVersions' field. 'package.json' does not have a 'typings' field. 'package.json' has 'types' field 'index.d.ts' that references '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. File '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. Resolving real path for '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', result '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. ======== Module name 'pg' was successfully resolved to '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. ======== File '/home/src/workspaces/project/node_modules/@types/pg/package.json' exists according to earlier cached lookups. -======== Resolving type reference directive 'pg', containing file '/home/src/workspaces/project/b/__inferred type names__.ts', root directory '/home/src/workspaces/project/b/node_modules/@types,/home/src/workspaces/project/node_modules/@types,/home/src/workspaces/node_modules/@types,/home/src/node_modules/@types,/home/node_modules/@types,/node_modules/@types'. ======== -Resolving with primary search path '/home/src/workspaces/project/b/node_modules/@types, /home/src/workspaces/project/node_modules/@types, /home/src/workspaces/node_modules/@types, /home/src/node_modules/@types, /home/node_modules/@types, /node_modules/@types'. -Directory '/home/src/workspaces/project/b/node_modules/@types' does not exist, skipping all lookups in it. -File '/home/src/workspaces/project/node_modules/@types/pg/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typings' field. -'package.json' has 'types' field 'index.d.ts' that references '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. -File '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', result '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts'. -======== Type reference directive 'pg' was successfully resolved to '/home/src/workspaces/project/node_modules/@types/pg/index.d.ts', primary: true. ======== File '/home/src/tslibs/TS/Lib/package.json' does not exist. File '/home/src/tslibs/TS/package.json' does not exist. File '/home/src/tslibs/package.json' does not exist. @@ -121,7 +100,6 @@ File '/package.json' does not exist. Default library for target 'es2022' node_modules/@types/pg/index.d.ts Imported via "pg" from file 'b/src/index.ts' - Entry point for implicit type library 'pg' File is CommonJS module because 'node_modules/@types/pg/package.json' does not have field "type" b/src/index.ts Matched by default include pattern '**/*' diff --git a/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js index ee3624fd2283b..78733b3865205 100644 --- a/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js +++ b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js @@ -9,6 +9,9 @@ export const theNum: TheNum = "type1"; "composite": true, "typeRoots": [ "./typeroot1" + ], + "types": [ + "sometype" ] }, "files": [ @@ -28,6 +31,9 @@ export const theNum: TheNum2 = "type2"; "composite": true, "typeRoots": [ "./typeroot2" + ], + "types": [ + "sometype" ] }, "files": [ 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 bb8581ae9c96b..6b6ec22ee4450 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config-with-redirection.js @@ -242,13 +242,6 @@ File '/home/src/workspace/package.json' does not exist according to earlier cach File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -293,7 +286,6 @@ 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' [HH:MM:SS AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspace/projects/project2/tsconfig.json'... @@ -472,7 +464,6 @@ FileWatcher:: Added:: WatchInfo: /home/package.json 2000 undefined package.json FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined package.json file /home/src/workspace/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/node_modules/@typescript/lib-scripthost/package.json 2000 undefined package.json file /home/src/workspace/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/node_modules/@typescript/lib-es5/package.json 2000 undefined package.json file /home/src/workspace/projects/project1/tsconfig.json -FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1/sometype/package.json 2000 undefined package.json file /home/src/workspace/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/node_modules/@typescript/lib-dom/package.json 2000 undefined package.json file /home/src/workspace/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project2/tsconfig.json 2000 undefined Config file /home/src/workspace/projects/project2/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project2 1 undefined Wild card directory /home/src/workspace/projects/project2/tsconfig.json @@ -910,8 +901,6 @@ PolledWatches:: {"pollingInterval":2000} /home/src/workspace/projects/package.json: *new* {"pollingInterval":2000} -/home/src/workspace/projects/project1/typeroot1/sometype/package.json: *new* - {"pollingInterval":2000} /package.json: *new* {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js index cef3a0ac2a43d..9ecae841d98f4 100644 --- a/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsbuildWatch/libraryResolution/with-config.js @@ -132,13 +132,6 @@ Output:: [HH:MM:SS AM] Building project '/home/src/workspace/projects/project1/tsconfig.json'... -======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== ../../tslibs/TS/Lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -160,7 +153,6 @@ 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' [HH:MM:SS AM] Project 'project2/tsconfig.json' is out of date because output file 'project2/tsconfig.tsbuildinfo' does not exist [HH:MM:SS AM] Building project '/home/src/workspace/projects/project2/tsconfig.json'... @@ -210,7 +202,6 @@ FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/file2.ts FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/index.ts 250 undefined Source file /home/src/workspace/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/utils.d.ts 250 undefined Source file /home/src/workspace/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file /home/src/workspace/projects/project1/tsconfig.json -FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1/sometype/package.json 2000 undefined package.json file /home/src/workspace/projects/project1/tsconfig.json FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project2/tsconfig.json 2000 undefined Config file /home/src/workspace/projects/project2/tsconfig.json DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project2 1 undefined Wild card directory /home/src/workspace/projects/project2/tsconfig.json Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project2 1 undefined Wild card directory /home/src/workspace/projects/project2/tsconfig.json @@ -605,10 +596,6 @@ export declare const z = 10; } -PolledWatches:: -/home/src/workspace/projects/project1/typeroot1/sometype/package.json: *new* - {"pollingInterval":2000} - FsWatches:: /home/src/workspace/projects/project1/core.d.ts: *new* {} diff --git a/tests/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesn't-crash-under---strict.js b/tests/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesn't-crash-under---strict.js index 6399f99bc1cd1..4faaf37a96223 100644 --- a/tests/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesn't-crash-under---strict.js +++ b/tests/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesn't-crash-under---strict.js @@ -26,7 +26,10 @@ export const App = () =>
; "module": "commonjs", "jsx": "react-jsx", "incremental": true, - "jsxImportSource": "react" + "jsxImportSource": "react", + "types": [ + "react" + ] } } diff --git a/tests/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesn't-crash.js b/tests/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesn't-crash.js index cf23bc789738a..b5753462d9f32 100644 --- a/tests/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesn't-crash.js +++ b/tests/baselines/reference/tsc/incremental/react-jsx-emit-mode-with-no-backing-types-found-doesn't-crash.js @@ -26,7 +26,10 @@ export const App = () =>
; "module": "commonjs", "jsx": "react-jsx", "incremental": true, - "jsxImportSource": "react" + "jsxImportSource": "react", + "types": [ + "react" + ] } } 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 62547089f2b8f..cdedcdf84d158 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config-with-redirection.js @@ -230,13 +230,6 @@ File '/home/src/workspace/package.json' does not exist according to earlier cach File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -281,7 +274,6 @@ 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' //// [/home/src/workspace/projects/project1/file.js] diff --git a/tests/baselines/reference/tsc/libraryResolution/with-config.js b/tests/baselines/reference/tsc/libraryResolution/with-config.js index 1fc77968a38f0..dd4f331f87561 100644 --- a/tests/baselines/reference/tsc/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsc/libraryResolution/with-config.js @@ -120,13 +120,6 @@ declare const console: { log(msg: any): void; }; /home/src/tslibs/TS/Lib/tsc.js -p project1 --explainFiles Output:: -======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== ../../tslibs/TS/Lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' Library 'lib.es5.d.ts' specified in compilerOptions @@ -148,7 +141,6 @@ 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' //// [/home/src/tslibs/TS/Lib/lib.es5.d.ts] *Lib* diff --git a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js index e24b490eb81cf..6c2813aaf5dd4 100644 --- a/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js +++ b/tests/baselines/reference/tscWatch/forceConsistentCasingInFileNames/with-nodeNext-resolution.js @@ -89,16 +89,6 @@ Exiting conditional exports. Resolving real path for '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts', result '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts'. ======== Module name 'yargs' was successfully resolved to '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts' with Package ID 'yargs/index.d.ts@17.0.12'. ======== File '/Users/name/projects/web/node_modules/@types/yargs/package.json' exists according to earlier cached lookups. -======== Resolving type reference directive 'yargs', containing file '/Users/name/projects/web/__inferred type names__.ts', root directory '/Users/name/projects/web/node_modules/@types,/Users/name/projects/node_modules/@types,/Users/name/node_modules/@types,/Users/node_modules/@types,/node_modules/@types'. ======== -Resolving with primary search path '/Users/name/projects/web/node_modules/@types, /Users/name/projects/node_modules/@types, /Users/name/node_modules/@types, /Users/node_modules/@types, /node_modules/@types'. -File '/Users/name/projects/web/node_modules/@types/yargs/package.json' exists according to earlier cached lookups. -'package.json' does not have a 'typesVersions' field. -'package.json' does not have a 'typings' field. -'package.json' does not have a 'types' field. -'package.json' does not have a 'main' field. -File '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts', result '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts'. -======== Type reference directive 'yargs' was successfully resolved to '/Users/name/projects/web/node_modules/@types/yargs/index.d.ts' with Package ID 'yargs/index.d.ts@17.0.12', primary: true. ======== File '/home/src/tslibs/TS/Lib/package.json' does not exist. File '/home/src/tslibs/TS/package.json' does not exist. File '/home/src/tslibs/package.json' does not exist. @@ -114,7 +104,6 @@ File '/package.json' does not exist according to earlier cached lookups. Default library for target 'es5' node_modules/@types/yargs/index.d.ts Imported via "yargs" from file 'src/bin.ts' with packageId 'yargs/index.d.ts@17.0.12' - Entry point for implicit type library 'yargs' with packageId 'yargs/index.d.ts@17.0.12' src/bin.ts Matched by default include pattern '**/*' [HH:MM:SS AM] Found 1 error. Watching for file changes. 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 7acca2e69e307..b26dc4a8fe739 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config-with-redirection.js @@ -251,15 +251,6 @@ FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/node_modules/@type FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/index.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/utils.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file -======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Failed Lookup Locations ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -315,7 +306,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1 1 undefined Wild card directory @@ -684,7 +674,6 @@ File '/home/src/workspace/package.json' does not exist according to earlier cach File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -746,7 +735,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -1078,7 +1066,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -1322,7 +1309,6 @@ File '/home/src/workspace/package.json' does not exist according to earlier cach File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. FileWatcher:: Close:: WatchInfo: /home/src/workspace/projects/project1/core.d.ts 250 undefined Source file ../../tslibs/TS/Lib/lib.dom.d.ts @@ -1344,7 +1330,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -1669,7 +1654,6 @@ File '/home/src/workspace/package.json' does not exist according to earlier cach File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. File '/home/src/workspace/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. File '/home/src/workspace/projects/node_modules/package.json' does not exist according to earlier cached lookups. @@ -1702,7 +1686,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -2014,13 +1997,6 @@ File '/home/src/workspace/package.json' does not exist according to earlier cach File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1,/home/src/workspace/projects/project1/typeroot2'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1, /home/src/workspace/projects/project1/typeroot2'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/node_modules/@typescript/lib-dom/index.d.ts'. File '/home/src/workspace/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. @@ -2051,7 +2027,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -2235,13 +2210,6 @@ File '/home/src/workspace/package.json' does not exist according to earlier cach File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -2304,7 +2272,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -2648,7 +2615,6 @@ File '/home/src/workspace/package.json' does not exist according to earlier cach File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. FileWatcher:: Close:: WatchInfo: /home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json 2000 undefined File location affecting resolution ../../tslibs/TS/Lib/lib.dom.d.ts @@ -2670,7 +2636,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -3008,7 +2973,6 @@ File '/home/src/workspace/package.json' does not exist according to earlier cach File '/home/src/package.json' does not exist according to earlier cached lookups. File '/home/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. FileWatcher:: Close:: WatchInfo: /home/src/tslibs/TS/Lib/lib.webworker.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json 2000 undefined File location affecting resolution @@ -3031,7 +2995,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js index 1106c3bbfe49b..d35e9b2b8f092 100644 --- a/tests/baselines/reference/tscWatch/libraryResolution/with-config.js +++ b/tests/baselines/reference/tscWatch/libraryResolution/with-config.js @@ -137,15 +137,6 @@ FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 250 undefi FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/index.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/utils.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts 250 undefined Source file -======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Failed Lookup Locations FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.dom.d.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Type roots Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Type roots @@ -170,7 +161,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1 1 undefined Wild card directory @@ -486,7 +476,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -696,7 +685,6 @@ Synchronizing program CreatingProgramWith:: roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"] options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"} -Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. FileWatcher:: Close:: WatchInfo: /home/src/workspace/projects/project1/core.d.ts 250 undefined Source file ../../tslibs/TS/Lib/lib.es5.d.ts Library referenced via 'es5' from file 'project1/file2.ts' @@ -717,7 +705,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -1054,13 +1041,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 type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1,/home/src/workspace/projects/project1/typeroot2'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1, /home/src/workspace/projects/project1/typeroot2'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -1118,7 +1098,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -1262,13 +1241,6 @@ CreatingProgramWith:: Reusing resolution of module '@typescript/lib-webworker' from '/home/src/workspace/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/workspace/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/workspace/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/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -File '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -1320,7 +1292,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -1637,7 +1608,6 @@ File '/package.json' does not exist according to earlier cached lookups. FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/node_modules/@typescript/lib-webworker/index.d.ts 250 undefined Source file Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/workspace/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/workspace/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/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/node_modules/@typescript/lib-dom/index.d.ts'. File '/home/src/workspace/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. @@ -1668,7 +1638,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. @@ -1979,7 +1948,6 @@ Directory '/node_modules' does not exist, skipping all lookups in it. FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.webworker.d.ts 250 undefined Source file Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/workspace/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/workspace/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/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/node_modules/@typescript/lib-dom/index.d.ts'. File '/home/src/workspace/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups. File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. @@ -2009,7 +1977,6 @@ 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' [HH:MM:SS AM] Found 0 errors. Watching for file changes. diff --git a/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js b/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js index 7801a65733d31..83c62520acdb1 100644 --- a/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js +++ b/tests/baselines/reference/tscWatch/moduleResolution/type-reference-resolutions-reuse.js @@ -134,20 +134,6 @@ Directory '/user/node_modules' does not exist, skipping all lookups in it. Directory '/node_modules' does not exist, skipping all lookups in it. ======== Type reference directive 'pkg1' was not resolved. ======== File '/user/username/projects/myproject/node_modules/pkg/package.json' exists according to earlier cached lookups. -======== Resolving type reference directive 'pkg2', containing file '/user/username/projects/myproject/__inferred type names__.ts', root directory '/user/username/projects/myproject/node_modules/@types,/user/username/projects/node_modules/@types,/user/username/node_modules/@types,/user/node_modules/@types,/node_modules/@types'. ======== -Resolving with primary search path '/user/username/projects/myproject/node_modules/@types, /user/username/projects/node_modules/@types, /user/username/node_modules/@types, /user/node_modules/@types, /node_modules/@types'. -File '/user/username/projects/myproject/node_modules/@types/pkg2/package.json' does not exist. -File '/user/username/projects/myproject/node_modules/@types/pkg2/index.d.ts' exists - use it as a name resolution result. -Resolving real path for '/user/username/projects/myproject/node_modules/@types/pkg2/index.d.ts', result '/user/username/projects/myproject/node_modules/@types/pkg2/index.d.ts'. -======== Type reference directive 'pkg2' was successfully resolved to '/user/username/projects/myproject/node_modules/@types/pkg2/index.d.ts', primary: true. ======== -File '/user/username/projects/myproject/node_modules/@types/pkg2/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/myproject/node_modules/@types/package.json' does not exist. -File '/user/username/projects/myproject/node_modules/package.json' does not exist. -File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/package.json' does not exist according to earlier cached lookups. -File '/user/username/package.json' does not exist according to earlier cached lookups. -File '/user/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. File '/home/src/tslibs/TS/Lib/package.json' does not exist. File '/home/src/tslibs/TS/package.json' does not exist. File '/home/src/tslibs/package.json' does not exist. @@ -185,12 +171,6 @@ PolledWatches:: {"pollingInterval":2000} /home/src/tslibs/package.json: *new* {"pollingInterval":2000} -/user/username/projects/myproject/node_modules/@types/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/myproject/node_modules/@types/pkg2/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/myproject/node_modules/package.json: *new* - {"pollingInterval":2000} /user/username/projects/myproject/package.json: *new* {"pollingInterval":2000} /user/username/projects/node_modules: *new* @@ -207,8 +187,6 @@ FsWatches:: {} /user/username/projects/myproject/index.ts: *new* {} -/user/username/projects/myproject/node_modules/@types/pkg2/index.d.ts: *new* - {} /user/username/projects/myproject/node_modules/pkg/import.d.ts: *new* {} /user/username/projects/myproject/node_modules/pkg/package.json: *new* @@ -242,7 +220,6 @@ Program files:: /user/username/projects/myproject/a.ts /user/username/projects/myproject/node_modules/pkg/import.d.ts /user/username/projects/myproject/index.ts -/user/username/projects/myproject/node_modules/@types/pkg2/index.d.ts No cached semantic diagnostics in the builder:: @@ -251,7 +228,6 @@ Shape signatures in builder refreshed for:: /user/username/projects/myproject/a.ts (used version) /user/username/projects/myproject/node_modules/pkg/import.d.ts (used version) /user/username/projects/myproject/index.ts (used version) -/user/username/projects/myproject/node_modules/@types/pkg2/index.d.ts (used version) exitCode:: ExitStatus.undefined @@ -293,14 +269,6 @@ File '/user/username/projects/package.json' does not exist according to earlier File '/user/username/package.json' does not exist according to earlier cached lookups. File '/user/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/myproject/node_modules/@types/pkg2/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/myproject/node_modules/@types/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/myproject/node_modules/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/package.json' does not exist according to earlier cached lookups. -File '/user/username/package.json' does not exist according to earlier cached lookups. -File '/user/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. File '/user/username/projects/package.json' does not exist according to earlier cached lookups. File '/user/username/package.json' does not exist according to earlier cached lookups. @@ -332,15 +300,6 @@ File '/user/package.json' does not exist according to earlier cached lookups. File '/package.json' does not exist according to earlier cached lookups. Reusing resolution of type reference directive 'pkg' from '/user/username/projects/myproject/index.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/pkg/import.d.ts' with Package ID 'pkg/import.d.ts@0.0.1'. Reusing resolution of type reference directive 'pkg1' from '/user/username/projects/myproject/index.ts' of old program, it was not resolved. -Reusing resolution of type reference directive 'pkg2' from '/user/username/projects/myproject/__inferred type names__.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/node_modules/@types/pkg2/index.d.ts'. -File '/user/username/projects/myproject/node_modules/@types/pkg2/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/myproject/node_modules/@types/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/myproject/node_modules/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/myproject/package.json' does not exist according to earlier cached lookups. -File '/user/username/projects/package.json' does not exist according to earlier cached lookups. -File '/user/username/package.json' does not exist according to earlier cached lookups. -File '/user/package.json' does not exist according to earlier cached lookups. -File '/package.json' does not exist according to earlier cached lookups. File '/home/src/tslibs/TS/Lib/package.json' does not exist according to earlier cached lookups. File '/home/src/tslibs/TS/package.json' does not exist according to earlier cached lookups. File '/home/src/tslibs/package.json' does not exist according to earlier cached lookups. @@ -382,7 +341,6 @@ Program files:: /user/username/projects/myproject/node_modules/pkg/import.d.ts /user/username/projects/myproject/a.ts /user/username/projects/myproject/index.ts -/user/username/projects/myproject/node_modules/@types/pkg2/index.d.ts No cached semantic diagnostics in the builder:: diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js index 04016c90983eb..8e9dda2d5f629 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-installing-something-in-node_modules-or-@types-when-there-is-no-notification-from-fs-for-index-file.js @@ -4,7 +4,13 @@ Input:: process.on("uncaughtException"); //// [/user/username/projects/myproject/tsconfig.json] -{} +{ + "compilerOptions": { + "types": [ + "node" + ] + } +} //// [/user/username/projects/myproject/node_modules/@types/node/index.d.ts] /// @@ -48,7 +54,7 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/worker.ts"] - options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} + options: {"types":["node"],"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/worker.ts 250 undefined Source file DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -63,10 +69,6 @@ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/ FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/ts3.6/package.json 2000 undefined File location affecting resolution -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Type roots [HH:MM:SS AM] Found 0 errors. Watching for file changes. DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory @@ -89,8 +91,6 @@ PolledWatches:: {"pollingInterval":2000} /user/username/projects/myproject/package.json: *new* {"pollingInterval":2000} -/user/username/projects/node_modules/@types: *new* - {"pollingInterval":500} /user/username/projects/package.json: *new* {"pollingInterval":2000} @@ -115,13 +115,14 @@ FsWatchesRecursive:: {} /user/username/projects/myproject/node_modules: *new* {} -/user/username/projects/myproject/node_modules/@types: *new* - {} Program root files: [ "/user/username/projects/myproject/worker.ts" ] Program options: { + "types": [ + "node" + ], "watch": true, "extendedDiagnostics": true, "configFilePath": "/user/username/projects/myproject/tsconfig.json" @@ -165,12 +166,8 @@ Output:: FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/base.d.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/base.d.ts 250 undefined Source file -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one +Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Scheduling update @@ -178,10 +175,6 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/globals.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/globals.d.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/globals.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/globals.d.ts 250 undefined Source file -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/globals.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/globals.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/globals.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/globals.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -190,11 +183,8 @@ Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/globals.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/index.d.ts 250 undefined Source file Scheduling update -Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/index.d.ts 250 undefined Source file -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots Scheduling update -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots +Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/index.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/index.d.ts 250 undefined Source file DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -204,40 +194,24 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts 250 undefined Source file Scheduling update Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts 2:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts 250 undefined Source file -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6 :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6 :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6 :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Project: /user/username/projects/myproject/tsconfig.json Detected file add/remove of non supported extension: /user/username/projects/myproject/node_modules/@types/node/ts3.6 Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6 :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -247,12 +221,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec Timeout callback:: count: 2 -30: timerToInvalidateFailedLookupResolutions *new* -31: timerToUpdateProgram *new* +17: timerToInvalidateFailedLookupResolutions *new* +18: timerToUpdateProgram *new* Before running Timeout callback:: count: 2 -30: timerToInvalidateFailedLookupResolutions -31: timerToUpdateProgram +17: timerToInvalidateFailedLookupResolutions +18: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 0 @@ -263,8 +237,10 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/worker.ts"] - options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} + options: {"types":["node"],"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/globals.d.ts 250 undefined Source file +DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Failed Lookup Locations +Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Failed Lookup Locations FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/base.d.ts 250 undefined Source file FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/index.d.ts 250 undefined Source file @@ -274,10 +250,14 @@ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/ts3.6/package.json 2000 undefined File location affecting resolution -worker.ts:1:1 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +error TS2688: Cannot find type definition file for 'node'. + The file is in the program because: + Entry point of type library 'node' specified in compilerOptions -1 process.on("uncaughtException"); -  ~~~~~~~ + tsconfig.json:4:7 + 4 "node" +    ~~~~~~ + File is entry point of type library specified here. [HH:MM:SS AM] Found 1 error. Watching for file changes. @@ -286,7 +266,7 @@ FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/ //// [/user/username/projects/myproject/worker.js] file written with same contents PolledWatches:: -/user/username/projects/node_modules/@types: +/user/username/projects/node_modules: *new* {"pollingInterval":500} PolledWatches *deleted*:: @@ -326,14 +306,15 @@ FsWatchesRecursive:: {} /user/username/projects/myproject/node_modules: {} -/user/username/projects/myproject/node_modules/@types: - {} Program root files: [ "/user/username/projects/myproject/worker.ts" ] Program options: { + "types": [ + "node" + ], "watch": true, "extendedDiagnostics": true, "configFilePath": "/user/username/projects/myproject/tsconfig.json" @@ -343,9 +324,7 @@ Program files:: /home/src/tslibs/TS/Lib/lib.d.ts /user/username/projects/myproject/worker.ts -Semantic diagnostics in builder refreshed for:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/worker.ts +No cached semantic diagnostics in the builder:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/worker.ts (computed .d.ts) @@ -360,30 +339,18 @@ export const foo = 10; Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one +Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/mocha :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/mocha :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/mocha :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/mocha :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/mocha :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/mocha :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/mocha/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/mocha/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/mocha/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/mocha/index.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -393,91 +360,24 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec Timeout callback:: count: 2 -42: timerToInvalidateFailedLookupResolutions *new* -43: timerToUpdateProgram *new* +23: timerToInvalidateFailedLookupResolutions *new* +24: timerToUpdateProgram *new* Before running Timeout callback:: count: 2 -42: timerToInvalidateFailedLookupResolutions -43: timerToUpdateProgram +23: timerToInvalidateFailedLookupResolutions +24: timerToUpdateProgram Host is moving to new time -After running Timeout callback:: count: 0 +After running Timeout callback:: count: 1 Output:: -Reloading new file names and options -Synchronizing program -[HH:MM:SS AM] File change detected. Starting incremental compilation... - -CreatingProgramWith:: - roots: ["/user/username/projects/myproject/worker.ts"] - options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/mocha/index.d.ts 250 undefined Source file -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/mocha/package.json 2000 undefined File location affecting resolution -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/package.json 2000 undefined File location affecting resolution -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined File location affecting resolution -FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution -FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution -worker.ts:1:1 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. - -1 process.on("uncaughtException"); -  ~~~~~~~ - -[HH:MM:SS AM] Found 1 error. Watching for file changes. - - - - -PolledWatches:: -/user/username/projects/myproject/node_modules/@types/mocha/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/myproject/node_modules/@types/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/myproject/node_modules/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/myproject/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/node_modules/@types: - {"pollingInterval":500} -/user/username/projects/package.json: *new* - {"pollingInterval":2000} - -FsWatches:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {} -/user/username/projects/myproject/node_modules/@types/mocha/index.d.ts: *new* - {} -/user/username/projects/myproject/tsconfig.json: - {} -/user/username/projects/myproject/worker.ts: - {} - -FsWatchesRecursive:: -/user/username/projects/myproject: - {} -/user/username/projects/myproject/node_modules: - {} -/user/username/projects/myproject/node_modules/@types: - {} +Scheduling update -Program root files: [ - "/user/username/projects/myproject/worker.ts" -] -Program options: { - "watch": true, - "extendedDiagnostics": true, - "configFilePath": "/user/username/projects/myproject/tsconfig.json" -} -Program structureReused: SafeModules -Program files:: -/home/src/tslibs/TS/Lib/lib.d.ts -/user/username/projects/myproject/worker.ts -/user/username/projects/myproject/node_modules/@types/mocha/index.d.ts -Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/node_modules/@types/mocha/index.d.ts +Timeout callback:: count: 1 +24: timerToUpdateProgram *deleted* +25: timerToUpdateProgram *new* -Shape signatures in builder refreshed for:: -/user/username/projects/myproject/node_modules/@types/mocha/index.d.ts (used version) exitCode:: ExitStatus.undefined @@ -486,12 +386,8 @@ Change:: npm ci step three: create atTypes node folder Input:: Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one +Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Scheduling update @@ -499,12 +395,13 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec Timeout callback:: count: 2 -46: timerToInvalidateFailedLookupResolutions *new* -47: timerToUpdateProgram *new* +25: timerToUpdateProgram *deleted* +26: timerToInvalidateFailedLookupResolutions *new* +27: timerToUpdateProgram *new* Before running Timeout callback:: count: 2 -46: timerToInvalidateFailedLookupResolutions -47: timerToUpdateProgram +26: timerToInvalidateFailedLookupResolutions +27: timerToUpdateProgram Host is moving to new time After running Timeout callback:: count: 0 @@ -515,57 +412,29 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/worker.ts"] - options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} -DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Failed Lookup Locations -Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules 1 undefined Failed Lookup Locations + options: {"types":["node"],"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} error TS2688: Cannot find type definition file for 'node'. The file is in the program because: - Entry point for implicit type library 'node' + Entry point of type library 'node' specified in compilerOptions + + tsconfig.json:4:7 + 4 "node" +    ~~~~~~ + File is entry point of type library specified here. [HH:MM:SS AM] Found 1 error. Watching for file changes. -PolledWatches:: -/user/username/projects/myproject/node_modules/@types/mocha/package.json: - {"pollingInterval":2000} -/user/username/projects/myproject/node_modules/@types/package.json: - {"pollingInterval":2000} -/user/username/projects/myproject/node_modules/package.json: - {"pollingInterval":2000} -/user/username/projects/myproject/package.json: - {"pollingInterval":2000} -/user/username/projects/node_modules: *new* - {"pollingInterval":500} -/user/username/projects/node_modules/@types: - {"pollingInterval":500} -/user/username/projects/package.json: - {"pollingInterval":2000} - -FsWatches:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {} -/user/username/projects/myproject/node_modules/@types/mocha/index.d.ts: - {} -/user/username/projects/myproject/tsconfig.json: - {} -/user/username/projects/myproject/worker.ts: - {} - -FsWatchesRecursive:: -/user/username/projects/myproject: - {} -/user/username/projects/myproject/node_modules: - {} -/user/username/projects/myproject/node_modules/@types: - {} - Program root files: [ "/user/username/projects/myproject/worker.ts" ] Program options: { + "types": [ + "node" + ], "watch": true, "extendedDiagnostics": true, "configFilePath": "/user/username/projects/myproject/tsconfig.json" @@ -574,9 +443,8 @@ Program structureReused: SafeModules Program files:: /home/src/tslibs/TS/Lib/lib.d.ts /user/username/projects/myproject/worker.ts -/user/username/projects/myproject/node_modules/@types/mocha/index.d.ts -Semantic diagnostics in builder refreshed for:: +No cached semantic diagnostics in the builder:: No shapes updated in the builder:: @@ -605,20 +473,12 @@ declare namespace NodeJS { Output:: -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations -Scheduling invalidateFailedLookup, Cancelled earlier one +Scheduling invalidateFailedLookup Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory Scheduling update Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/base.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory -DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots -Scheduling update -Scheduling invalidateFailedLookup, Cancelled earlier one -Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6 :: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Type roots DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6 :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations Scheduling invalidateFailedLookup, Cancelled earlier one Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@types/node/ts3.6 :: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Failed Lookup Locations @@ -628,12 +488,12 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myprojec Timeout callback:: count: 2 -52: timerToUpdateProgram *new* -54: timerToInvalidateFailedLookupResolutions *new* +29: timerToUpdateProgram *new* +30: timerToInvalidateFailedLookupResolutions *new* Before running Timeout callback:: count: 2 -52: timerToUpdateProgram -54: timerToInvalidateFailedLookupResolutions +29: timerToUpdateProgram +30: timerToInvalidateFailedLookupResolutions After running Timeout callback:: count: 0 Output:: @@ -643,12 +503,16 @@ Synchronizing program CreatingProgramWith:: roots: ["/user/username/projects/myproject/worker.ts"] - options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} + options: {"types":["node"],"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/index.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/base.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/globals.d.ts 250 undefined Source file FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution +FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/ts3.6/package.json 2000 undefined File location affecting resolution DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Failed Lookup Locations Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node_modules 1 undefined Failed Lookup Locations @@ -659,21 +523,17 @@ Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/node //// [/user/username/projects/myproject/worker.js] file written with same contents PolledWatches:: -/user/username/projects/myproject/node_modules/@types/mocha/package.json: - {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types/node/package.json: *new* {"pollingInterval":2000} /user/username/projects/myproject/node_modules/@types/node/ts3.6/package.json: *new* {"pollingInterval":2000} -/user/username/projects/myproject/node_modules/@types/package.json: +/user/username/projects/myproject/node_modules/@types/package.json: *new* {"pollingInterval":2000} -/user/username/projects/myproject/node_modules/package.json: +/user/username/projects/myproject/node_modules/package.json: *new* {"pollingInterval":2000} -/user/username/projects/myproject/package.json: +/user/username/projects/myproject/package.json: *new* {"pollingInterval":2000} -/user/username/projects/node_modules/@types: - {"pollingInterval":500} -/user/username/projects/package.json: +/user/username/projects/package.json: *new* {"pollingInterval":2000} PolledWatches *deleted*:: @@ -683,8 +543,6 @@ PolledWatches *deleted*:: FsWatches:: /home/src/tslibs/TS/Lib/lib.d.ts: {} -/user/username/projects/myproject/node_modules/@types/mocha/index.d.ts: - {} /user/username/projects/myproject/node_modules/@types/node/base.d.ts: *new* {} /user/username/projects/myproject/node_modules/@types/node/globals.d.ts: *new* @@ -703,11 +561,9 @@ FsWatchesRecursive:: {} /user/username/projects/myproject/node_modules: {} -/user/username/projects/myproject/node_modules/@types: - {} Timeout callback:: count: 0 -54: timerToInvalidateFailedLookupResolutions *deleted* +30: timerToInvalidateFailedLookupResolutions *deleted* Before running Timeout callback:: count: 0 @@ -718,6 +574,9 @@ Program root files: [ "/user/username/projects/myproject/worker.ts" ] Program options: { + "types": [ + "node" + ], "watch": true, "extendedDiagnostics": true, "configFilePath": "/user/username/projects/myproject/tsconfig.json" @@ -726,7 +585,6 @@ Program structureReused: SafeModules Program files:: /home/src/tslibs/TS/Lib/lib.d.ts /user/username/projects/myproject/worker.ts -/user/username/projects/myproject/node_modules/@types/mocha/index.d.ts /user/username/projects/myproject/node_modules/@types/node/globals.d.ts /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts /user/username/projects/myproject/node_modules/@types/node/base.d.ts @@ -735,7 +593,6 @@ Program files:: Semantic diagnostics in builder refreshed for:: /home/src/tslibs/TS/Lib/lib.d.ts /user/username/projects/myproject/worker.ts -/user/username/projects/myproject/node_modules/@types/mocha/index.d.ts /user/username/projects/myproject/node_modules/@types/node/globals.d.ts /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts /user/username/projects/myproject/node_modules/@types/node/base.d.ts @@ -744,7 +601,6 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /user/username/projects/myproject/node_modules/@types/node/globals.d.ts (used version) /user/username/projects/myproject/worker.ts (computed .d.ts) -/user/username/projects/myproject/node_modules/@types/mocha/index.d.ts (used version) /user/username/projects/myproject/node_modules/@types/node/ts3.6/base.d.ts (used version) /user/username/projects/myproject/node_modules/@types/node/base.d.ts (used version) /user/username/projects/myproject/node_modules/@types/node/index.d.ts (used version) diff --git a/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js b/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js index 163f8ccd3a270..fed07c225b990 100644 --- a/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js +++ b/tests/baselines/reference/tscWatch/resolutionCache/works-when-module-resolution-changes-to-ambient-module.js @@ -145,37 +145,15 @@ Output:: >> Screen clear [HH:MM:SS AM] File change detected. Starting incremental compilation... -[HH:MM:SS AM] Found 0 errors. Watching for file changes. +foo.ts:1:21 - error TS2307: Cannot find module 'fs' or its corresponding type declarations. + +1 import * as fs from "fs"; +   ~~~~ + +[HH:MM:SS AM] Found 1 error. Watching for file changes. -//// [/users/username/projects/project/foo.js] file written with same contents - -PolledWatches:: -/users/username/projects/node_modules: - {"pollingInterval":500} -/users/username/projects/node_modules/@types: - {"pollingInterval":500} - -FsWatches:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {} -/users/username/projects: - {} -/users/username/projects/project: - {} -/users/username/projects/project/foo.ts: - {} -/users/username/projects/project/node_modules/@types/node/index.d.ts: *new* - {} -/users/username/projects/project/node_modules/@types/node/package.json: *new* - {} - -FsWatchesRecursive:: -/users/username/projects/project/node_modules: - {} -/users/username/projects/project/node_modules/@types: - {} Timeout callback:: count: 0 17: timerToInvalidateFailedLookupResolutions *deleted* @@ -191,14 +169,9 @@ Program structureReused: SafeModules Program files:: /home/src/tslibs/TS/Lib/lib.d.ts /users/username/projects/project/foo.ts -/users/username/projects/project/node_modules/@types/node/index.d.ts Semantic diagnostics in builder refreshed for:: -/users/username/projects/project/foo.ts -/users/username/projects/project/node_modules/@types/node/index.d.ts -Shape signatures in builder refreshed for:: -/users/username/projects/project/foo.ts (computed .d.ts) -/users/username/projects/project/node_modules/@types/node/index.d.ts (used version) +No shapes updated in the builder:: exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js b/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js index 069f8f8f716fe..5c01673f11f5e 100644 --- a/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js +++ b/tests/baselines/reference/tsserver/auxiliaryProject/file-is-added-later-through-finding-definition.js @@ -102,7 +102,6 @@ Info seq [hh:mm:ss:mss] Files (4) Imported via "./callback" from file 'node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' node_modules/@types/yargs/index.d.ts Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' - Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' index.ts Root file specified for compilation diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js b/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js index 17bb1fbfebe02..16af7ef65116e 100644 --- a/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js +++ b/tests/baselines/reference/tsserver/auxiliaryProject/resolution-is-reused-from-different-folder.js @@ -85,13 +85,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/users/projects/myproject/some 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/users/projects/myproject/node_modules/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution @@ -124,7 +124,6 @@ Info seq [hh:mm:ss:mss] Files (5) Imported via "../folder/random" from file 'index.ts' ../node_modules/@types/yargs/index.d.ts Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' - Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' index.ts Root file specified for compilation diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js index 73a4ca7ca5b75..343f0e59090ac 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/loads-missing-files-from-disk.js @@ -338,22 +338,10 @@ Info seq [hh:mm:ss:mss] directoryExists:: [ }, { "key": "/users/username/projects/project/node_modules/@types", - "count": 2 - }, - { - "key": "/users/username/projects/node_modules/@types", - "count": 2 - }, - { - "key": "/users/username/node_modules/@types", "count": 1 }, { - "key": "/users/node_modules/@types", - "count": 1 - }, - { - "key": "/node_modules/@types", + "key": "/users/username/projects/node_modules/@types", "count": 1 } ] @@ -433,26 +421,6 @@ Info seq [hh:mm:ss:mss] directoryExists:: [ { "key": "/users/username/projects/project", "count": 1 - }, - { - "key": "/users/username/projects/project/node_modules/@types", - "count": 1 - }, - { - "key": "/users/username/projects/node_modules/@types", - "count": 1 - }, - { - "key": "/users/username/node_modules/@types", - "count": 1 - }, - { - "key": "/users/node_modules/@types", - "count": 1 - }, - { - "key": "/node_modules/@types", - "count": 1 } ] Info seq [hh:mm:ss:mss] getDirectories:: [] diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js index bb45a0b9c9799..5520b5640cfde 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-after-installation.js @@ -2104,8 +2104,8 @@ Info seq [hh:mm:ss:mss] Running: /user/username/rootfolder/otherfolder/user/use Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/node_modules/@types/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/node_modules/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/node_modules/@types/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: Failed Lookup Locations @@ -2132,7 +2132,6 @@ Info seq [hh:mm:ss:mss] Files (3) Default library for target 'es5' node_modules/@types/lodash/index.d.ts Imported via 'lodash' from file 'app.ts' with packageId '@types/lodash/index.d.ts@4.14.74' - Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.74' app.ts Matched by default include pattern '**/*' diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js index 9d99004937dff..eb1f2accd4f0d 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/npm-install-works-when-timeout-occurs-inbetween-installation.js @@ -1434,23 +1434,6 @@ Info seq [hh:mm:ss:mss] Files (2) /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/app.ts SVC-1-0 "import _ from 'lodash';" Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json", - "configFile": "/user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot find type definition file for 'lodash'.\n The file is in the program because:\n Entry point for implicit type library 'lodash'", - "code": 2688, - "category": "error" - } - ] - } - } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json' (Configured) @@ -2279,8 +2262,8 @@ Info seq [hh:mm:ss:mss] Running: /user/username/rootfolder/otherfolder/user/use Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/node_modules/@types/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/node_modules/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/node_modules/@types/lodash/package.json 2000 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/a/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/rootfolder/otherfolder/user/username/projects/project/node_modules 1 undefined Project: /user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json WatchType: Failed Lookup Locations @@ -2307,22 +2290,10 @@ Info seq [hh:mm:ss:mss] Files (3) Default library for target 'es5' node_modules/@types/lodash/index.d.ts Imported via 'lodash' from file 'app.ts' with packageId '@types/lodash/index.d.ts@4.14.74' - Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.74' app.ts Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json", - "configFile": "/user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json", - "diagnostics": [] - } - } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/user/username/projects/project/a/b/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-node_modules-dont-receive-event-for-the-@types-file-addition.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-node_modules-dont-receive-event-for-the-@types-file-addition.js index 199a3984c01d1..8c089a71ec7ef 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-node_modules-dont-receive-event-for-the-@types-file-addition.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/when-node_modules-dont-receive-event-for-the-@types-file-addition.js @@ -307,7 +307,6 @@ Info seq [hh:mm:ss:mss] Files (3) Default library for target 'es5' node_modules/@types/debug/index.d.ts Imported via "debug" from file 'app.ts' - Entry point for implicit type library 'debug' app.ts Matched by default include pattern '**/*' diff --git a/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js b/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js index 70e422e01a32b..8262397b39fe1 100644 --- a/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js +++ b/tests/baselines/reference/tsserver/cachingFileSystemInformation/works-using-legacy-resolution-logic.js @@ -394,34 +394,6 @@ Info seq [hh:mm:ss:mss] directoryExists:: [ { "key": "/node_modules", "count": 1 - }, - { - "key": "/user/username/projects/project/c/d/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/projects/project/c/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/projects/project/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/projects/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/node_modules/@types", - "count": 1 - }, - { - "key": "/user/node_modules/@types", - "count": 1 - }, - { - "key": "/node_modules/@types", - "count": 1 } ] Info seq [hh:mm:ss:mss] getDirectories:: [] @@ -480,34 +452,6 @@ Info seq [hh:mm:ss:mss] directoryExists:: [ { "key": "/user/username/projects/project/c", "count": 1 - }, - { - "key": "/user/username/projects/project/c/d/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/projects/project/c/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/projects/project/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/projects/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/node_modules/@types", - "count": 1 - }, - { - "key": "/user/node_modules/@types", - "count": 1 - }, - { - "key": "/node_modules/@types", - "count": 1 } ] Info seq [hh:mm:ss:mss] getDirectories:: [] @@ -624,34 +568,6 @@ Info seq [hh:mm:ss:mss] directoryExists:: [ { "key": "/user/username/projects/project/c", "count": 1 - }, - { - "key": "/user/username/projects/project/c/d/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/projects/project/c/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/projects/project/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/projects/node_modules/@types", - "count": 1 - }, - { - "key": "/user/username/node_modules/@types", - "count": 1 - }, - { - "key": "/user/node_modules/@types", - "count": 1 - }, - { - "key": "/node_modules/@types", - "count": 1 } ] Info seq [hh:mm:ss:mss] getDirectories:: [] diff --git a/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js b/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js index 16f0540db5140..a5556bef0c6a5 100644 --- a/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js +++ b/tests/baselines/reference/tsserver/completions/works-when-files-are-included-from-two-different-drives-of-windows.js @@ -147,22 +147,22 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/solution/myproject/ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/solution/myproject/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: e:/solution/myproject/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/solution/myproject/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: e:/solution/myproject/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/solution/myproject/node_modules/@types/prop-types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/solution/myproject/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/solution/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: e:/solution/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/solution/myproject/src 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: e:/solution/myproject/src 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/solution/myproject/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/solution/myproject/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/solution/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: e:/solution/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/typescript/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/typescript/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/solution/myproject/node_modules/react-router-dom/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/typescript/node_modules/@types/react-router-dom/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: e:/solution/myproject/node_modules/@types/prop-types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/typescript/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/solution/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: e:/solution/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -185,10 +185,8 @@ Info seq [hh:mm:ss:mss] Files (6) Default library for target 'es5' ../node_modules/@types/prop-types/index.d.ts Imported via 'prop-types' from file '../node_modules/@types/react/index.d.ts' with packageId '@types/prop-types/index.d.ts@15.7.3' - Entry point for implicit type library 'prop-types' with packageId '@types/prop-types/index.d.ts@15.7.3' ../node_modules/@types/react/index.d.ts Imported via 'react' from file 'app.js' with packageId '@types/react/index.d.ts@16.9.14' - Entry point for implicit type library 'react' with packageId '@types/react/index.d.ts@16.9.14' c:/typescript/node_modules/@types/react/index.d.ts Imported via 'react' from file 'c:/typescript/node_modules/@types/react-router-dom/index.d.ts' with packageId '@types/react/index.d.ts@16.9.14' File redirects to file '../node_modules/@types/react/index.d.ts' diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js b/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js index 9de469db9a0f8..bcc9c1b2ae870 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-be-able-to-handle-@types-if-input-file-list-is-empty.js @@ -8,7 +8,11 @@ let x = 1 //// [/user/username/projects/project/a/tsconfig.json] { - "compiler": {}, + "compilerOptions": { + "types": [ + "typings" + ] + }, "files": [] } @@ -48,6 +52,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Config: /user/username/projects/project/a/tsconfig.json : { "rootNames": [], "options": { + "types": [ + "typings" + ], "configFilePath": "/user/username/projects/project/a/tsconfig.json" } } @@ -62,12 +69,6 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/project/a/tsconfig.json -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/a/node_modules/@types 1 undefined Project: /user/username/projects/project/a/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/a/node_modules/@types 1 undefined Project: /user/username/projects/project/a/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/node_modules/@types 1 undefined Project: /user/username/projects/project/a/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/node_modules/@types 1 undefined Project: /user/username/projects/project/a/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/project/a/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/project/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/project/a/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/project/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -105,7 +106,11 @@ Info seq [hh:mm:ss:mss] event: "deferred": 0, "deferredSize": 0 }, - "compilerOptions": {}, + "compilerOptions": { + "types": [ + "" + ] + }, "typeAcquisition": { "enable": false, "include": false, @@ -134,11 +139,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 3, + "line": 7, "offset": 12 }, "end": { - "line": 3, + "line": 7, "offset": 14 }, "text": "The 'files' list in config file '/user/username/projects/project/a/tsconfig.json' is empty.", @@ -155,17 +160,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/a/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: /user/username/projects/project/a/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/a/node_modules/@types/typings/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/a/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/a/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/a/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/a/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -174,21 +169,15 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (2) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" /user/username/projects/project/a/app.ts SVC-1-0 "let x = 1" - /user/username/projects/project/a/node_modules/@types/typings/lib.d.ts Text-1 "export const x: number" - /user/username/projects/project/a/node_modules/@types/typings/index.d.ts Text-1 "export * from \"./lib\"" ../../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' app.ts Root file specified for compilation - node_modules/@types/typings/lib.d.ts - Imported via "./lib" from file 'node_modules/@types/typings/index.d.ts' - node_modules/@types/typings/index.d.ts - Entry point for implicit type library 'typings' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/user/username/projects/project/a/tsconfig.json' (Configured) @@ -196,7 +185,7 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -218,24 +207,12 @@ After request PolledWatches:: /user/username/projects/node_modules/@types: *new* {"pollingInterval":500} -/user/username/projects/package.json: *new* - {"pollingInterval":2000} /user/username/projects/project/a/jsconfig.json: *new* {"pollingInterval":2000} -/user/username/projects/project/a/node_modules/@types/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/project/a/node_modules/@types/typings/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/project/a/node_modules/package.json: *new* - {"pollingInterval":2000} -/user/username/projects/project/a/package.json: *new* - {"pollingInterval":2000} /user/username/projects/project/jsconfig.json: *new* {"pollingInterval":2000} /user/username/projects/project/node_modules/@types: *new* {"pollingInterval":500} -/user/username/projects/project/package.json: *new* - {"pollingInterval":2000} /user/username/projects/project/tsconfig.json: *new* {"pollingInterval":2000} @@ -246,8 +223,6 @@ FsWatches:: {} FsWatchesRecursive:: -/user/username/projects/project/a/node_modules: *new* - {} /user/username/projects/project/a/node_modules/@types: *new* {} @@ -270,11 +245,3 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject1* *default* -/user/username/projects/project/a/node_modules/@types/typings/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* -/user/username/projects/project/a/node_modules/@types/typings/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js index 2dd76c46ba54f..9d37dddd044bb 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-extends-is-specified-with-a-case-insensitive-file-system.js @@ -95,8 +95,6 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Users/username/d Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Users/username/dev/project 1 undefined Config: /Users/username/dev/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /Users/username/dev/project/types/file2/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /Users/username/dev/project/tsconfig.json -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Users/username/dev/project/types 1 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Users/username/dev/project/types 1 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /Users/username/dev/project/types 1 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /Users/username/dev/project/types 1 undefined Project: /Users/username/dev/project/tsconfig.json WatchType: Type roots @@ -114,7 +112,6 @@ Info seq [hh:mm:ss:mss] Files (3) Matched by default include pattern '**/*' types/file2/index.d.ts Matched by default include pattern '**/*' - Entry point for implicit type library 'file2' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport1.js index d93c56426aa81..b290c8f825d82 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport1.js @@ -41,12 +41,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info @@ -81,7 +75,6 @@ Info seq [hh:mm:ss:mss] Files (4) Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' index.d.ts Root file specified for compilation - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -131,21 +124,13 @@ watchedFiles:: /home/src/workspaces/project/package.json: *new* {"pollingInterval":2000} -watchedDirectories:: -/home/src/workspaces/project/node_modules/@types/react: *new* - {} - watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/@types/react/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types/react/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/node_modules/@types: *new* @@ -216,7 +201,6 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' node_modules/@types/react/index.d.ts Imported via "react" from file 'index.ts' - Entry point for implicit type library 'react' index.ts Root file specified for compilation @@ -245,15 +229,8 @@ Info seq [hh:mm:ss:mss] Files (4) Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' index.d.ts Root file specified for compilation - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution @@ -332,29 +309,21 @@ watchedFiles *deleted*:: /home/src/workspaces/project/package.json: {"pollingInterval":2000} -watchedDirectories *deleted*:: -/home/src/workspaces/project/node_modules/@types/react: - {} - watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} *new* -/home/src/workspaces/project/node_modules: - {} *new* +/home/src/workspaces/project/node_modules: *new* + {} /home/src/workspaces/project/node_modules/@types: {} *new* watchedDirectoriesRecursive *deleted*:: /home/src/workspaces/node_modules/@types: {} -/home/src/workspaces/project/node_modules: - {} /home/src/workspaces/project/node_modules/@types: {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/react/node_modules: - {} /home/src/workspaces/project/node_modules/@types/react/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -771,14 +740,26 @@ Info seq [hh:mm:ss:mss] request: "command": "syntacticDiagnosticsSync" } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-3 "useMemo" - /home/src/workspaces/project/node_modules/@types/react/index.d.ts SVC-1-0 "export declare function useMemo(): void;\nexport declare function useState(): void;" + + + ../../tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + index.ts + Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] response: @@ -794,12 +775,65 @@ Info seq [hh:mm:ss:mss] response: "body": [] } After Request +watchedFiles:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.decorators.d.ts: + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/home/src/workspaces/project/jsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/package.json: + {"pollingInterval":250} + {"pollingInterval":2000} +/home/src/workspaces/project/tsconfig.json: + {"pollingInterval":2000} + +watchedFiles *deleted*:: +/home/src/workspaces/project/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/@types/react/package.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/package.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/home/src/workspaces/node_modules/@types: + {} +/home/src/workspaces/project/node_modules: + {} +/home/src/workspaces/project/node_modules/@types: + {} + Projects:: /dev/null/inferredProject2* (Inferred) *changed* projectStateVersion: 2 projectProgramVersion: 2 *changed* dirty: false *changed* - autoImportProviderHost: false + autoImportProviderHost: undefined *changed* + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject2* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject2* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject2* +/home/src/workspaces/project/index.ts (Open) + version: SVC-1-3 + containingProjects: 1 + /dev/null/inferredProject2* *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) *changed* + version: SVC-1-0 + containingProjects: 0 *changed* + /dev/null/inferredProject2* *deleted* Info seq [hh:mm:ss:mss] request: { @@ -879,4 +913,10 @@ Info seq [hh:mm:ss:mss] response: "request_seq": 15, "success": true, "body": [] - } \ No newline at end of file + } +After Request +Projects:: +/dev/null/inferredProject2* (Inferred) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 + autoImportProviderHost: false *changed* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport2.js index a38c6d2ce17cd..a6cbbb4f4b954 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport2.js @@ -40,12 +40,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info @@ -80,7 +74,6 @@ Info seq [hh:mm:ss:mss] Files (4) Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' index.d.ts Root file specified for compilation - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -130,21 +123,13 @@ watchedFiles:: /home/src/workspaces/project/package.json: *new* {"pollingInterval":2000} -watchedDirectories:: -/home/src/workspaces/project/node_modules/@types/react: *new* - {} - watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/@types/react/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types/react/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/node_modules/@types: *new* @@ -187,24 +172,17 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject2*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "useMemo" - /home/src/workspaces/project/node_modules/@types/react/index.d.ts SVC-1-0 "export declare function useMemo(): void;\nexport declare function useState(): void;" ../../tslibs/TS/Lib/lib.d.ts @@ -215,64 +193,20 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' index.ts Root file specified for compilation - node_modules/@types/react/index.d.ts - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts - /home/src/tslibs/TS/Lib/lib.decorators.d.ts - /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - /home/src/workspaces/project/node_modules/@types/react/index.d.ts - - - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' - ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' - ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' - index.d.ts - Root file specified for compilation - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/node_modules/@types/react/index.d.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/index.ts ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] response: @@ -296,19 +230,6 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/package.json: - {"pollingInterval":2000} *new* -/home/src/workspaces/project/node_modules/@types/react/package.json: - {"pollingInterval":2000} *new* -/home/src/workspaces/project/node_modules/package.json: - {"pollingInterval":2000} *new* -/home/src/workspaces/project/package.json: - {"pollingInterval":250} *new* - {"pollingInterval":2000} *new* -/home/src/workspaces/project/tsconfig.json: *new* - {"pollingInterval":2000} - -watchedFiles *deleted*:: /home/src/workspaces/project/node_modules/@types/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: @@ -329,42 +250,28 @@ watchedFiles *deleted*:: {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} - -watchedDirectories *deleted*:: -/home/src/workspaces/project/node_modules/@types/react: - {} + {"pollingInterval":250} *new* +/home/src/workspaces/project/tsconfig.json: *new* + {"pollingInterval":2000} watchedDirectoriesRecursive:: -/home/src/workspaces/node_modules/@types: - {} *new* -/home/src/workspaces/project/node_modules: - {} *new* -/home/src/workspaces/project/node_modules/@types: - {} *new* - -watchedDirectoriesRecursive *deleted*:: /home/src/workspaces/node_modules/@types: {} -/home/src/workspaces/project/node_modules: - {} + {} *new* /home/src/workspaces/project/node_modules/@types: {} + {} *new* /home/src/workspaces/project/node_modules/@types/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/react/node_modules: - {} /home/src/workspaces/project/node_modules/@types/react/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: {} Projects:: -/dev/null/inferredProject1* (Inferred) *deleted* - projectStateVersion: 2 *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 projectProgramVersion: 1 - dirty: true *changed* - isClosed: true *changed* - isOrphan: true *changed* /dev/null/inferredProject2* (Inferred) *new* projectStateVersion: 1 projectProgramVersion: 1 @@ -373,28 +280,27 @@ Projects:: ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts *changed* version: Text-1 - containingProjects: 1 *changed* + containingProjects: 2 *changed* + /dev/null/inferredProject1* /dev/null/inferredProject2* *new* - /dev/null/inferredProject1* *deleted* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 - containingProjects: 1 *changed* + containingProjects: 2 *changed* + /dev/null/inferredProject1* /dev/null/inferredProject2* *new* - /dev/null/inferredProject1* *deleted* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 - containingProjects: 1 *changed* + containingProjects: 2 *changed* + /dev/null/inferredProject1* /dev/null/inferredProject2* *new* - /dev/null/inferredProject1* *deleted* /home/src/workspaces/project/index.ts (Open) *new* version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) *changed* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 - containingProjects: 1 *changed* - /dev/null/inferredProject2* *default* *new* - /dev/null/inferredProject1* *deleted* + containingProjects: 1 + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -535,6 +441,9 @@ Info seq [hh:mm:ss:mss] response: } After Request Projects:: +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 /dev/null/inferredProject2* (Inferred) *changed* projectStateVersion: 2 *changed* projectProgramVersion: 1 @@ -544,15 +453,18 @@ Projects:: ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-1 *changed* @@ -561,7 +473,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -589,15 +501,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-2 *changed* @@ -606,7 +521,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -655,15 +570,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-3 *changed* @@ -672,7 +590,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -721,15 +639,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-4 *changed* @@ -738,7 +659,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -787,15 +708,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-5 *changed* @@ -804,7 +728,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -853,15 +777,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-6 *changed* @@ -870,7 +797,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -919,15 +846,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-7 *changed* @@ -936,7 +866,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -985,15 +915,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-8 *changed* @@ -1002,7 +935,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1051,15 +984,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-9 *changed* @@ -1068,7 +1004,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1117,15 +1053,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-10 *changed* @@ -1134,7 +1073,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1183,15 +1122,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-11 *changed* @@ -1200,7 +1142,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1249,15 +1191,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-12 *changed* @@ -1266,7 +1211,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1315,15 +1260,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-13 *changed* @@ -1332,7 +1280,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1381,15 +1329,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-14 *changed* @@ -1398,7 +1349,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1447,15 +1398,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-15 *changed* @@ -1464,7 +1418,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1513,15 +1467,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-16 *changed* @@ -1530,7 +1487,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1579,15 +1536,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-17 *changed* @@ -1596,7 +1556,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1645,15 +1605,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-18 *changed* @@ -1662,7 +1625,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1711,15 +1674,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-19 *changed* @@ -1728,7 +1694,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1777,15 +1743,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-20 *changed* @@ -1794,7 +1763,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1843,15 +1812,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-21 *changed* @@ -1860,7 +1832,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1909,15 +1881,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-22 *changed* @@ -1926,7 +1901,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1975,15 +1950,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-23 *changed* @@ -1992,7 +1970,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2041,15 +2019,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-24 *changed* @@ -2058,7 +2039,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2107,15 +2088,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-25 *changed* @@ -2124,7 +2108,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2173,15 +2157,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-26 *changed* @@ -2190,7 +2177,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2239,15 +2226,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-27 *changed* @@ -2256,7 +2246,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2305,15 +2295,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-28 *changed* @@ -2322,7 +2315,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2371,15 +2364,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-29 *changed* @@ -2388,7 +2384,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2437,15 +2433,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-30 *changed* @@ -2454,7 +2453,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2503,15 +2502,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-31 *changed* @@ -2520,7 +2522,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2569,15 +2571,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-32 *changed* @@ -2586,7 +2591,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2635,15 +2640,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-33 *changed* @@ -2652,7 +2660,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2701,15 +2709,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-34 *changed* @@ -2718,7 +2729,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2779,15 +2790,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-35 *changed* @@ -2796,7 +2810,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2824,15 +2838,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-36 *changed* @@ -2841,7 +2858,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2902,15 +2919,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-37 *changed* @@ -2919,7 +2939,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2949,6 +2969,12 @@ Info seq [hh:mm:ss:mss] request: "command": "syntacticDiagnosticsSync" } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) @@ -2958,6 +2984,18 @@ Info seq [hh:mm:ss:mss] Files (5) /home/src/workspaces/project/node_modules/@types/react/index.d.ts SVC-1-0 "export declare function useMemo(): void;\nexport declare function useState(): void;" /home/src/workspaces/project/index.ts SVC-1-37 "import { useState } from \"react\";\nuseMemo" + + ../../tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + node_modules/@types/react/index.d.ts + Imported via "react" from file 'index.ts' + index.ts + Root file specified for compilation + Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] response: { @@ -2972,12 +3010,94 @@ Info seq [hh:mm:ss:mss] response: "body": [] } After Request +watchedFiles:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.decorators.d.ts: + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: + {"pollingInterval":500} +/home/src/workspaces/project/jsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/@types/jsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/@types/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/workspaces/project/node_modules/@types/react/jsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/@types/react/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/workspaces/project/node_modules/@types/react/tsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/@types/tsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/jsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/workspaces/project/node_modules/tsconfig.json: + {"pollingInterval":2000} +/home/src/workspaces/project/package.json: + {"pollingInterval":2000} + {"pollingInterval":250} + {"pollingInterval":2000} *new* +/home/src/workspaces/project/tsconfig.json: + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/home/src/workspaces/node_modules/@types: + {} + {} +/home/src/workspaces/project/node_modules: *new* + {} +/home/src/workspaces/project/node_modules/@types: + {} + {} +/home/src/workspaces/project/node_modules/@types/node_modules/@types: + {} +/home/src/workspaces/project/node_modules/@types/react/node_modules/@types: + {} +/home/src/workspaces/project/node_modules/node_modules/@types: + {} + Projects:: +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 /dev/null/inferredProject2* (Inferred) *changed* projectStateVersion: 2 projectProgramVersion: 2 *changed* dirty: false *changed* - autoImportProviderHost: false + autoImportProviderHost: undefined *changed* + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /dev/null/inferredProject2* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /dev/null/inferredProject2* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /dev/null/inferredProject2* +/home/src/workspaces/project/index.ts (Open) + version: SVC-1-37 + containingProjects: 1 + /dev/null/inferredProject2* *default* +/home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) *changed* + version: SVC-1-0 + containingProjects: 2 *changed* + /dev/null/inferredProject1* *default* + /dev/null/inferredProject2* *new* Info seq [hh:mm:ss:mss] request: { @@ -3098,6 +3218,16 @@ Info seq [hh:mm:ss:mss] response: } ] } +After Request +Projects:: +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/dev/null/inferredProject2* (Inferred) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 + autoImportProviderHost: false *changed* + Info seq [hh:mm:ss:mss] request: { "seq": 83, @@ -3170,6 +3300,9 @@ Info seq [hh:mm:ss:mss] response: } After Request Projects:: +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 /dev/null/inferredProject2* (Inferred) *changed* projectStateVersion: 3 *changed* projectProgramVersion: 2 @@ -3179,15 +3312,18 @@ Projects:: ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-38 *changed* @@ -3195,8 +3331,9 @@ ScriptInfos:: /dev/null/inferredProject2* *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject2* *default* + containingProjects: 2 + /dev/null/inferredProject1* *default* + /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] request: { @@ -3224,15 +3361,18 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* /dev/null/inferredProject2* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-1-39 *changed* @@ -3240,5 +3380,6 @@ ScriptInfos:: /dev/null/inferredProject2* *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts (Open) version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject2* *default* + containingProjects: 2 + /dev/null/inferredProject1* *default* + /dev/null/inferredProject2* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport3.js index 57bde7a5e8e22..38ece5386b284 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport3.js @@ -23,44 +23,104 @@ declare module "node:fs" { //// [/home/src/workspaces/project/package.json] {} +//// [/home/src/workspaces/project/tsconfig.json] +{ "compilerOptions": { "types": ["node"], "module": "preserve" } } + Info seq [hh:mm:ss:mss] request: { "seq": 0, "type": "request", "arguments": { - "file": "/home/src/workspaces/project/node_modules/@types/node/index.d.ts" + "file": "/home/src/workspaces/project/tsconfig.json" }, "command": "open" } -Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/node_modules/@types/node/index.d.ts ProjectRootPath: undefined:: Result: undefined -Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project/node_modules/@types/node -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /home/src/workspaces/project/tsconfig.json, currentDirectory: /home/src/workspaces/project +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { + "rootNames": [ + "/home/src/workspaces/project/index.ts" + ], + "options": { + "types": [ + "node" + ], + "module": 200, + "configFilePath": "/home/src/workspaces/project/tsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/home/src/workspaces/project/tsconfig.json", + "reason": "Creating possible configured project for /home/src/workspaces/project/tsconfig.json to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /home/src/workspaces/project/index.ts Text-1 "readFile" + /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module \"node:fs\" {\n export function readFile(): void;\n export function writeFile(): void;\n}" + + + ../../tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + index.ts + Matched by default include pattern '**/*' + node_modules/@types/node/index.d.ts + Entry point of type library 'node' specified in compilerOptions + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/home/src/workspaces/project/tsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/workspaces/project/tsconfig.json", + "configFile": "/home/src/workspaces/project/tsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined +Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -71,18 +131,22 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/node_modules/@types/node/index.d.ts SVC-1-0 "declare module \"node:fs\" {\n export function readFile(): void;\n export function writeFile(): void;\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"types\": [\"node\"], \"module\": \"preserve\" } }" - ../../../../../tslibs/TS/Lib/lib.d.ts + ../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' - ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' - ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' - index.d.ts + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + tsconfig.json Root file specified for compilation - Entry point for implicit type library 'node' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file +Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -90,7 +154,7 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/node_modules/@types/node/index.d.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] response: { @@ -111,66 +175,69 @@ watchedFiles:: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/jsconfig.json: *new* - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/node/jsconfig.json: *new* +/home/src/workspaces/project/index.ts: *new* + {"pollingInterval":500} +/home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/@types/node/index.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/node/package.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/node/tsconfig.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/tsconfig.json: *new* - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/jsconfig.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/tsconfig.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* {"pollingInterval":2000} - -watchedDirectories:: -/home/src/workspaces/project/node_modules/@types/node: *new* - {} + {"pollingInterval":250} +/home/src/workspaces/project/tsconfig.json: *new* + {"pollingInterval":2000} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} +/home/src/workspaces/project: *new* + {} /home/src/workspaces/project/node_modules: *new* {} /home/src/workspaces/project/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/@types/node/node_modules: *new* - {} -/home/src/workspaces/project/node_modules/@types/node/node_modules/@types: *new* - {} -/home/src/workspaces/project/node_modules/@types/node_modules/@types: *new* - {} -/home/src/workspaces/project/node_modules/node_modules/@types: *new* - {} Projects:: /dev/null/inferredProject1* (Inferred) *new* projectStateVersion: 1 projectProgramVersion: 1 + autoImportProviderHost: false +/home/src/workspaces/project/tsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + noOpenRef: true ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) *new* +/home/src/workspaces/project/index.ts *new* + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/node_modules/@types/node/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) *new* version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject1* *default* @@ -184,109 +251,28 @@ Info seq [hh:mm:ss:mss] request: }, "command": "open" } -Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/index.ts ProjectRootPath: undefined:: Result: undefined -Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject2*, currentDirectory: /home/src/workspaces/project -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/index.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text - /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text - /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/index.ts SVC-1-0 "readFile" - /home/src/workspaces/project/node_modules/@types/node/index.d.ts SVC-1-0 "declare module \"node:fs\" {\n export function readFile(): void;\n export function writeFile(): void;\n}" - - - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' - ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' - ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' - index.ts - Root file specified for compilation - node_modules/@types/node/index.d.ts - Entry point for implicit type library 'node' Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root -Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts - /home/src/tslibs/TS/Lib/lib.decorators.d.ts - /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - /home/src/workspaces/project/node_modules/@types/node/index.d.ts - - - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' - ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' - ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' - index.d.ts - Root file specified for compilation - Entry point for implicit type library 'node' - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/node_modules/@types/node/index.d.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] FileName: /home/src/workspaces/project/index.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] Projects: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] response: { "seq": 0, "type": "response", "command": "open", "request_seq": 1, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "success": true } After Request watchedFiles:: @@ -296,107 +282,75 @@ watchedFiles:: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/workspaces/project/jsconfig.json: *new* - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/node/package.json: - {"pollingInterval":2000} *new* -/home/src/workspaces/project/node_modules/@types/package.json: - {"pollingInterval":2000} *new* -/home/src/workspaces/project/node_modules/package.json: - {"pollingInterval":2000} *new* -/home/src/workspaces/project/package.json: - {"pollingInterval":250} *new* - {"pollingInterval":2000} *new* -/home/src/workspaces/project/tsconfig.json: *new* - {"pollingInterval":2000} - -watchedFiles *deleted*:: -/home/src/workspaces/project/node_modules/@types/jsconfig.json: - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/node/jsconfig.json: +/home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} +/home/src/workspaces/project/node_modules/@types/node/index.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/node/package.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/node/tsconfig.json: - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/tsconfig.json: - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/jsconfig.json: - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/tsconfig.json: - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} + {"pollingInterval":250} +/home/src/workspaces/project/tsconfig.json: + {"pollingInterval":2000} -watchedDirectories *deleted*:: -/home/src/workspaces/project/node_modules/@types/node: - {} +watchedFiles *deleted*:: +/home/src/workspaces/project/index.ts: + {"pollingInterval":500} watchedDirectoriesRecursive:: -/home/src/workspaces/node_modules/@types: - {} *new* -/home/src/workspaces/project/node_modules: - {} *new* -/home/src/workspaces/project/node_modules/@types: - {} *new* - -watchedDirectoriesRecursive *deleted*:: /home/src/workspaces/node_modules/@types: {} +/home/src/workspaces/project: + {} /home/src/workspaces/project/node_modules: {} /home/src/workspaces/project/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/node/node_modules: - {} -/home/src/workspaces/project/node_modules/@types/node/node_modules/@types: - {} -/home/src/workspaces/project/node_modules/@types/node_modules/@types: - {} -/home/src/workspaces/project/node_modules/node_modules/@types: - {} Projects:: -/dev/null/inferredProject1* (Inferred) *deleted* - projectStateVersion: 2 *changed* - projectProgramVersion: 1 - dirty: true *changed* - isClosed: true *changed* - isOrphan: true *changed* -/dev/null/inferredProject2* (Inferred) *new* +/dev/null/inferredProject1* (Inferred) projectStateVersion: 1 projectProgramVersion: 1 autoImportProviderHost: false +/home/src/workspaces/project/tsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 + noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* - version: Text-1 - containingProjects: 1 *changed* - /dev/null/inferredProject2* *new* - /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* - version: Text-1 - containingProjects: 1 *changed* - /dev/null/inferredProject2* *new* - /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* - version: Text-1 - containingProjects: 1 *changed* - /dev/null/inferredProject2* *new* - /dev/null/inferredProject1* *deleted* -/home/src/workspaces/project/index.ts (Open) *new* - version: SVC-1-0 +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/workspaces/project/index.ts (Open) *changed* + open: true *changed* + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) *changed* + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 - containingProjects: 1 *changed* - /dev/null/inferredProject2* *default* *new* - /dev/null/inferredProject1* *deleted* + containingProjects: 1 + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -513,6 +467,17 @@ Info seq [hh:mm:ss:mss] response: "success": true, "body": [] } +After Request +Projects:: +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/home/src/workspaces/project/tsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false *changed* + Info seq [hh:mm:ss:mss] request: { "seq": 7, @@ -537,7 +502,11 @@ Info seq [hh:mm:ss:mss] response: } After Request Projects:: -/dev/null/inferredProject2* (Inferred) *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/home/src/workspaces/project/tsconfig.json (Configured) *changed* projectStateVersion: 2 *changed* projectProgramVersion: 1 dirty: true *changed* @@ -546,24 +515,31 @@ Projects:: ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-1 *changed* + version: SVC-2-1 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -591,24 +567,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-2 *changed* + version: SVC-2-2 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -657,24 +640,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-3 *changed* + version: SVC-2-3 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -723,24 +713,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-4 *changed* + version: SVC-2-4 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -789,24 +786,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-5 *changed* + version: SVC-2-5 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -855,24 +859,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-6 *changed* + version: SVC-2-6 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -921,24 +932,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-7 *changed* + version: SVC-2-7 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -987,24 +1005,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-8 *changed* + version: SVC-2-8 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1053,24 +1078,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-9 *changed* + version: SVC-2-9 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1119,24 +1151,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-10 *changed* + version: SVC-2-10 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1185,24 +1224,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-11 *changed* + version: SVC-2-11 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1251,24 +1297,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-12 *changed* + version: SVC-2-12 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1317,24 +1370,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-13 *changed* + version: SVC-2-13 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1383,24 +1443,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-14 *changed* + version: SVC-2-14 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1449,24 +1516,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-15 *changed* + version: SVC-2-15 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1515,24 +1589,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-16 *changed* + version: SVC-2-16 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1581,24 +1662,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-17 *changed* + version: SVC-2-17 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1647,24 +1735,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-18 *changed* + version: SVC-2-18 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1713,24 +1808,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-19 *changed* + version: SVC-2-19 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1779,24 +1881,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-20 *changed* + version: SVC-2-20 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1845,24 +1954,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-21 *changed* + version: SVC-2-21 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1911,24 +2027,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-22 *changed* + version: SVC-2-22 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -1977,24 +2100,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-23 *changed* + version: SVC-2-23 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2043,24 +2173,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-24 *changed* + version: SVC-2-24 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2109,24 +2246,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-25 *changed* + version: SVC-2-25 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2175,24 +2319,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-26 *changed* + version: SVC-2-26 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2241,24 +2392,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-27 *changed* + version: SVC-2-27 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2307,24 +2465,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-28 *changed* + version: SVC-2-28 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2373,24 +2538,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-29 *changed* + version: SVC-2-29 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2439,24 +2611,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-30 *changed* + version: SVC-2-30 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2505,24 +2684,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-31 *changed* + version: SVC-2-31 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2571,24 +2757,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-32 *changed* + version: SVC-2-32 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2637,24 +2830,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-33 *changed* + version: SVC-2-33 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2703,24 +2903,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-34 *changed* + version: SVC-2-34 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2769,24 +2976,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-35 *changed* + version: SVC-2-35 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2835,24 +3049,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-36 *changed* + version: SVC-2-36 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2901,24 +3122,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-37 *changed* + version: SVC-2-37 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -2979,24 +3207,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-38 *changed* + version: SVC-2-38 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -3024,24 +3259,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-39 *changed* + version: SVC-2-39 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -3102,24 +3344,31 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-40 *changed* + version: SVC-2-40 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -3148,15 +3397,15 @@ Info seq [hh:mm:ss:mss] request: }, "command": "syntacticDiagnosticsSync" } -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/index.ts SVC-1-40 "import { writeFile } from \"node:fs\";\nreadFile" - /home/src/workspaces/project/node_modules/@types/node/index.d.ts SVC-1-0 "declare module \"node:fs\" {\n export function readFile(): void;\n export function writeFile(): void;\n}" + /home/src/workspaces/project/index.ts SVC-2-40 "import { writeFile } from \"node:fs\";\nreadFile" + /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module \"node:fs\" {\n export function readFile(): void;\n export function writeFile(): void;\n}" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] response: @@ -3173,7 +3422,11 @@ Info seq [hh:mm:ss:mss] response: } After Request Projects:: -/dev/null/inferredProject2* (Inferred) *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/home/src/workspaces/project/tsconfig.json (Configured) *changed* projectStateVersion: 2 projectProgramVersion: 2 *changed* dirty: false *changed* @@ -3370,7 +3623,11 @@ Info seq [hh:mm:ss:mss] response: } After Request Projects:: -/dev/null/inferredProject2* (Inferred) *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/home/src/workspaces/project/tsconfig.json (Configured) *changed* projectStateVersion: 3 *changed* projectProgramVersion: 2 dirty: true *changed* @@ -3379,24 +3636,31 @@ Projects:: ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-41 *changed* + version: SVC-2-41 *changed* containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* Info seq [hh:mm:ss:mss] request: { @@ -3424,21 +3688,28 @@ After Request ScriptInfos:: /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 - /dev/null/inferredProject2* + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* - version: SVC-1-42 *changed* + version: SVC-2-42 *changed* + containingProjects: 1 + /home/src/workspaces/project/tsconfig.json *default* +/home/src/workspaces/project/node_modules/@types/node/index.d.ts + version: Text-1 containingProjects: 1 - /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts (Open) + /home/src/workspaces/project/tsconfig.json +/home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 - /dev/null/inferredProject2* *default* + /dev/null/inferredProject1* *default* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js index fc1f1e830fc31..9401838ef9344 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js @@ -126,7 +126,7 @@ import "react"; { "dependencies": { "antd": "*", "react": "*" } } //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs", "lib": ["es2019"] } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es2019"], "types": ["react"] } } Info seq [hh:mm:ss:mss] request: @@ -150,6 +150,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "lib": [ "lib.es2019.d.ts" ], + "types": [ + "react" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -210,10 +213,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (38) @@ -341,7 +340,7 @@ Info seq [hh:mm:ss:mss] Files (38) index.ts Matched by default include pattern '**/*' node_modules/@types/react/index.d.ts - Entry point for implicit type library 'react' + Entry point of type library 'react' specified in compilerOptions Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -368,25 +367,18 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es2019\"] } }" - /home/src/workspaces/project/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es2019\"], \"types\": [\"react\"] } }" ../../tslibs/TS/Lib/lib.d.ts @@ -397,8 +389,6 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' tsconfig.json Root file specified for compilation - node_modules/@types/react/index.d.ts - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file @@ -407,7 +397,7 @@ Info seq [hh:mm:ss:mss] Files (38) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -506,17 +496,13 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/react/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/react/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":250} /home/src/workspaces/project/tsconfig.json: *new* @@ -525,15 +511,12 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} - {} /home/src/workspaces/project: *new* {} /home/src/workspaces/project/node_modules: *new* {} - {} /home/src/workspaces/project/node_modules/@types: *new* {} - {} Projects:: /dev/null/inferredProject1* (Inferred) *new* @@ -702,9 +685,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/@types/react/index.d.ts *new* version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -726,7 +708,7 @@ Info seq [hh:mm:ss:mss] Files (38) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -822,17 +804,13 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/react/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/react/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":250} /home/src/workspaces/project/tsconfig.json: @@ -845,15 +823,12 @@ watchedFiles *deleted*:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules: {} - {} /home/src/workspaces/project/node_modules/@types: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) @@ -1023,9 +998,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1928,17 +1902,13 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/react/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/react/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":250} /home/src/workspaces/project/tsconfig.json: @@ -1947,16 +1917,13 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules: - {} {} {} *new* /home/src/workspaces/project/node_modules/@types: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js index 43856a8a56f67..07454f2cf599e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js @@ -99,16 +99,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -116,17 +108,13 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (1) /home/src/workspaces/project/src/foo.ts Text-1 "fooFrom" - /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void;" src/foo.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" - node_modules/@types/dependency/lib/index.d.ts - Entry point for implicit type library 'dependency' with packageId '@types/dependency/lib/index.d.ts@1.0.0' - File is ECMAScript module because 'node_modules/@types/dependency/package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -199,28 +187,20 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" - /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void;" ../../tslibs/TS/Lib/lib.d.ts @@ -231,39 +211,41 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' tsconfig.json Root file specified for compilation - node_modules/@types/dependency/lib/index.d.ts - Entry point for implicit type library 'dependency' with packageId '@types/dependency/lib/index.d.ts@1.0.0' - File is ECMAScript module because 'node_modules/@types/dependency/package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file -Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 1 dependencies 0 referenced projects in * ms Info seq [hh:mm:ss:mss] Creating AutoImportProviderProject: /dev/null/autoImportProviderProject1*, currentDirectory: /home/src/workspaces/project +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/lib/lol.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (2) + /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void;" /home/src/workspaces/project/node_modules/@types/dependency/lib/lol.d.ts Text-1 "export declare function fooFromLol(): void;" + node_modules/@types/dependency/lib/index.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/@types/dependency/package.json' has field "type" with value "module" node_modules/@types/dependency/lib/lol.d.ts Root file specified for compilation File is ECMAScript module because 'node_modules/@types/dependency/package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -299,15 +281,8 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/dependency/lib/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/dependency/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/dependency/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* {"pollingInterval":2000} {"pollingInterval":250} @@ -319,17 +294,11 @@ watchedFiles:: {"pollingInterval":2000} watchedDirectoriesRecursive:: -/home/src/workspaces/node_modules: *new* - {} - {} /home/src/workspaces/node_modules/@types: *new* {} {} /home/src/workspaces/project: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} - {} /home/src/workspaces/project/node_modules/@types: *new* {} {} @@ -362,9 +331,8 @@ ScriptInfos:: /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts *new* version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* + containingProjects: 1 + /dev/null/autoImportProviderProject1* /home/src/workspaces/project/node_modules/@types/dependency/lib/lol.d.ts *new* version: Text-1 containingProjects: 1 @@ -390,15 +358,15 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -432,15 +400,8 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/dependency/lib/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/dependency/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/dependency/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} {"pollingInterval":250} @@ -454,17 +415,11 @@ watchedFiles *deleted*:: {"pollingInterval":500} watchedDirectoriesRecursive:: -/home/src/workspaces/node_modules: - {} - {} /home/src/workspaces/node_modules/@types: {} {} /home/src/workspaces/project: {} -/home/src/workspaces/project/node_modules: - {} - {} /home/src/workspaces/project/node_modules/@types: {} {} @@ -497,9 +452,8 @@ ScriptInfos:: /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* + containingProjects: 1 + /dev/null/autoImportProviderProject1* /home/src/workspaces/project/node_modules/@types/dependency/lib/lol.d.ts version: Text-1 containingProjects: 1 @@ -563,17 +517,21 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * -Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 1 dependencies 0 referenced projects in * ms Info seq [hh:mm:ss:mss] Creating AutoImportProviderProject: /dev/null/autoImportProviderProject2*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (2) + /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void;" /home/src/workspaces/project/node_modules/@types/dependency/lib/lol.d.ts Text-1 "export declare function fooFromLol(): void;" + node_modules/@types/dependency/lib/index.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/@types/dependency/package.json' has field "type" with value "module" node_modules/@types/dependency/lib/lol.d.ts Root file specified for compilation File is ECMAScript module because 'node_modules/@types/dependency/package.json' has field "type" with value "module" @@ -1031,11 +989,13 @@ Info seq [hh:mm:ss:mss] response: "kind": "text" } ], + "isPackageJsonImport": true, "data": { "exportName": "fooFromIndex", "exportMapKey": "12 * fooFromIndex ", "moduleSpecifier": "dependency", - "fileName": "/home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts" + "fileName": "/home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts", + "isPackageJsonImport": true } }, { @@ -1085,18 +1045,11 @@ watchedFiles:: /home/src/workspaces/project/node_modules/@types/dependency/lib/lol.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/dependency/lib/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/@types/dependency/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":2000} *new* -/home/src/workspaces/project/node_modules/dependency/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} {"pollingInterval":250} @@ -1106,18 +1059,13 @@ watchedFiles:: {"pollingInterval":2000} watchedDirectoriesRecursive:: -/home/src/workspaces/node_modules: - {} - {} /home/src/workspaces/node_modules/@types: {} {} /home/src/workspaces/project: {} -/home/src/workspaces/project/node_modules: - {} +/home/src/workspaces/project/node_modules: *new* {} - {} *new* /home/src/workspaces/project/node_modules/@types: {} {} @@ -1152,11 +1100,11 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts +/home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts *changed* version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* + containingProjects: 2 *changed* + /dev/null/autoImportProviderProject1* + /dev/null/autoImportProviderProject2* *new* /home/src/workspaces/project/node_modules/@types/dependency/lib/lol.d.ts *changed* version: Text-1 containingProjects: 2 *changed* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js index 154badd241e75..7c6cefcc393b3 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js @@ -108,16 +108,8 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -125,17 +117,13 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (1) /home/src/workspaces/project/src/foo.ts Text-1 "fooFrom" - /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void" src/foo.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" - node_modules/dependency/lib/index.d.ts - Entry point for implicit type library 'dependency' with packageId 'dependency/lib/index.d.ts@1.0.0' - File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -208,28 +196,20 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" - /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void" ../../tslibs/TS/Lib/lib.d.ts @@ -240,39 +220,41 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' tsconfig.json Root file specified for compilation - node_modules/dependency/lib/index.d.ts - Entry point for implicit type library 'dependency' with packageId 'dependency/lib/index.d.ts@1.0.0' - File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file -Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 1 dependencies 0 referenced projects in * ms Info seq [hh:mm:ss:mss] Creating AutoImportProviderProject: /dev/null/autoImportProviderProject1*, currentDirectory: /home/src/workspaces/project +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (2) + /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void" /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts Text-1 "export declare function fooFromLol(): void" + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" node_modules/dependency/lib/lol.d.ts Root file specified for compilation File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -302,21 +284,14 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/dependency/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/dependency/lib/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* {"pollingInterval":2000} {"pollingInterval":250} @@ -328,17 +303,11 @@ watchedFiles:: {"pollingInterval":2000} watchedDirectoriesRecursive:: -/home/src/workspaces/node_modules: *new* - {} - {} /home/src/workspaces/node_modules/@types: *new* {} {} /home/src/workspaces/project: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} - {} /home/src/workspaces/project/node_modules/@types: *new* {} {} @@ -371,9 +340,8 @@ ScriptInfos:: /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *new* version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* + containingProjects: 1 + /dev/null/autoImportProviderProject1* /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts *new* version: Text-1 containingProjects: 1 @@ -399,15 +367,15 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -435,21 +403,14 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/dependency/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/dependency/lib/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} {"pollingInterval":250} @@ -463,17 +424,11 @@ watchedFiles *deleted*:: {"pollingInterval":500} watchedDirectoriesRecursive:: -/home/src/workspaces/node_modules: - {} - {} /home/src/workspaces/node_modules/@types: {} {} /home/src/workspaces/project: {} -/home/src/workspaces/project/node_modules: - {} - {} /home/src/workspaces/project/node_modules/@types: {} {} @@ -506,9 +461,8 @@ ScriptInfos:: /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* + containingProjects: 1 + /dev/null/autoImportProviderProject1* /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts version: Text-1 containingProjects: 1 @@ -572,17 +526,21 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * -Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 1 dependencies 0 referenced projects in * ms Info seq [hh:mm:ss:mss] Creating AutoImportProviderProject: /dev/null/autoImportProviderProject2*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject2* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /dev/null/autoImportProviderProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (2) + /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void" /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts Text-1 "export declare function fooFromLol(): void" + node_modules/dependency/lib/index.d.ts + Root file specified for compilation + File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" node_modules/dependency/lib/lol.d.ts Root file specified for compilation File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" @@ -1040,11 +998,13 @@ Info seq [hh:mm:ss:mss] response: "kind": "text" } ], + "isPackageJsonImport": true, "data": { "exportName": "fooFromIndex", "exportMapKey": "12 * fooFromIndex ", "moduleSpecifier": "dependency", - "fileName": "/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts" + "fileName": "/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts", + "isPackageJsonImport": true } }, { @@ -1089,21 +1049,14 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/dependency/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/dependency/lib/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/dependency/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":2000} *new* /home/src/workspaces/project/package.json: @@ -1115,18 +1068,13 @@ watchedFiles:: {"pollingInterval":2000} watchedDirectoriesRecursive:: -/home/src/workspaces/node_modules: - {} - {} /home/src/workspaces/node_modules/@types: {} {} /home/src/workspaces/project: {} -/home/src/workspaces/project/node_modules: - {} +/home/src/workspaces/project/node_modules: *new* {} - {} *new* /home/src/workspaces/project/node_modules/@types: {} {} @@ -1161,11 +1109,11 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts +/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *changed* version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* + containingProjects: 2 *changed* + /dev/null/autoImportProviderProject1* + /dev/null/autoImportProviderProject2* *new* /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts *changed* version: Text-1 containingProjects: 2 *changed* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js index 7153321a3af9b..8649ed67faab3 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js @@ -55,11 +55,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Cach Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info @@ -77,12 +72,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json SVC-1-0 "{ \"name\": \"@types/react-router-dom\", \"version\": \"16.8.4\", \"types\": \"index.d.ts\" }" - /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts Text-1 "export class BrowserRouterFromDts {}" ../../../../../../tslibs/TS/Lib/lib.d.ts @@ -93,12 +87,10 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../../../../../tslibs/TS/Lib/lib.d.ts' package.json Root file specified for compilation - index.d.ts - Entry point for implicit type library 'react-router-dom' with packageId '@types/react-router-dom/index.d.ts@16.8.4' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -121,8 +113,6 @@ watchedFiles:: {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json: *new* - {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/tsconfig.json: *new* {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/@types/tsconfig.json: *new* @@ -141,14 +131,10 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/Library/Caches/node_modules/@types: *new* {} -/home/src/Library/Caches/typescript/node_modules: *new* - {} /home/src/Library/Caches/typescript/node_modules/@types: *new* {} /home/src/Library/Caches/typescript/node_modules/@types/node_modules/@types: *new* {} -/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules: *new* - {} /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules/@types: *new* {} /home/src/Library/Caches/typescript/node_modules/node_modules/@types: *new* @@ -162,10 +148,6 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -293,7 +275,7 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -319,9 +301,8 @@ watchedFiles:: {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/jsconfig.json: {"pollingInterval":2000} -/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json: +/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/tsconfig.json: {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/@types/tsconfig.json: @@ -344,14 +325,10 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/Library/Caches/node_modules/@types: {} -/home/src/Library/Caches/typescript/node_modules: - {} /home/src/Library/Caches/typescript/node_modules/@types: {} /home/src/Library/Caches/typescript/node_modules/@types/node_modules/@types: {} -/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules: - {} /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules/@types: {} /home/src/Library/Caches/typescript/node_modules/node_modules/@types: @@ -378,11 +355,10 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts *changed* +/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/autoImportProviderProject1* *new* + containingProjects: 1 + /dev/null/autoImportProviderProject1* /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1061,7 +1037,6 @@ watchedFiles:: {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/tsconfig.json: {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/@types/tsconfig.json: @@ -1084,15 +1059,12 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/Library/Caches/node_modules/@types: {} -/home/src/Library/Caches/typescript/node_modules: +/home/src/Library/Caches/typescript/node_modules: *new* {} - {} *new* /home/src/Library/Caches/typescript/node_modules/@types: {} /home/src/Library/Caches/typescript/node_modules/@types/node_modules/@types: {} -/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules: - {} /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules/@types: {} /home/src/Library/Caches/typescript/node_modules/node_modules/@types: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js index 3132a95dd584a..0e0c94d279827 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js @@ -25,7 +25,8 @@ declare module "fs" { //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "commonjs" + "module": "commonjs", + "types": ["node", "fs-extra"] } } @@ -48,6 +49,10 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "types": [ + "node", + "fs-extra" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -67,8 +72,8 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info @@ -78,16 +83,12 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/fs-extra/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/fs-extra/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) @@ -95,8 +96,8 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "access" - /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts Text-1 "export * from \"fs\";" /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module \"fs\" {\n export function accessSync(path: string): void;\n}" + /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts Text-1 "export * from \"fs\";" ../../tslibs/TS/Lib/lib.d.ts @@ -107,10 +108,10 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' index.ts Matched by default include pattern '**/*' - node_modules/@types/fs-extra/index.d.ts - Entry point for implicit type library 'fs-extra' node_modules/@types/node/index.d.ts - Entry point for implicit type library 'node' + Entry point of type library 'node' specified in compilerOptions + node_modules/@types/fs-extra/index.d.ts + Entry point of type library 'fs-extra' specified in compilerOptions Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -137,33 +138,17 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/fs-extra/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\"\n }\n}" - /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts Text-1 "export * from \"fs\";" - /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module \"fs\" {\n export function accessSync(path: string): void;\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"types\": [\"node\", \"fs-extra\"]\n }\n}" ../../tslibs/TS/Lib/lib.d.ts @@ -174,10 +159,6 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' tsconfig.json Root file specified for compilation - node_modules/@types/fs-extra/index.d.ts - Entry point for implicit type library 'fs-extra' - node_modules/@types/node/index.d.ts - Entry point for implicit type library 'node' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) @@ -185,7 +166,7 @@ Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -212,7 +193,6 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -221,47 +201,36 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/fs-extra/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/node/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/node/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* {"pollingInterval":2000} watchedDirectories:: /home/src/workspaces: *new* {} - {} /home/src/workspaces/project: *new* {} - {} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules: *new* {} - {} /home/src/workspaces/node_modules/@types: *new* {} - {} /home/src/workspaces/project: *new* {} /home/src/workspaces/project/node_modules: *new* {} - {} /home/src/workspaces/project/node_modules/@types: *new* {} - {} Projects:: /dev/null/inferredProject1* (Inferred) *new* @@ -295,14 +264,12 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts *new* version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/node/index.d.ts *new* version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -324,7 +291,7 @@ Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -350,28 +317,22 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/fs-extra/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/node/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/node/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} @@ -382,26 +343,20 @@ watchedFiles *deleted*:: watchedDirectories:: /home/src/workspaces: {} - {} /home/src/workspaces/project: {} - {} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules: {} - {} /home/src/workspaces/node_modules/@types: {} - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules: {} - {} /home/src/workspaces/project/node_modules/@types: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) @@ -436,14 +391,12 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1237,55 +1190,43 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/fs-extra/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/node/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/node/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} watchedDirectories:: /home/src/workspaces: {} - {} /home/src/workspaces/project: {} - {} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules: {} - {} /home/src/workspaces/node_modules/@types: {} - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules: - {} {} {} *new* /home/src/workspaces/project/node_modules/@types: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) @@ -1472,14 +1413,12 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js index d39e38c7b40c9..277f9fd416083 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js @@ -77,32 +77,20 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/ts-node/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "I" - /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module \"process\" {\n global {\n var process: NodeJS.Process;\n namespace NodeJS {\n interface Process {\n argv: string[];\n }\n }\n }\n export = process;\n}" - /home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts Text-1 "export {};\ndeclare const REGISTER_INSTANCE: unique symbol;\ndeclare global {\n namespace NodeJS {\n interface Process {\n [REGISTER_INSTANCE]?: Service;\n }\n }\n}" ../../tslibs/TS/Lib/lib.d.ts @@ -113,10 +101,6 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' index.ts Matched by default include pattern '**/*' - node_modules/@types/node/index.d.ts - Entry point for implicit type library 'node' - node_modules/@types/ts-node/index.d.ts - Entry point for implicit type library 'ts-node' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -143,27 +127,17 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/ts-node/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" - /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module \"process\" {\n global {\n var process: NodeJS.Process;\n namespace NodeJS {\n interface Process {\n argv: string[];\n }\n }\n }\n export = process;\n}" - /home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts Text-1 "export {};\ndeclare const REGISTER_INSTANCE: unique symbol;\ndeclare global {\n namespace NodeJS {\n interface Process {\n [REGISTER_INSTANCE]?: Service;\n }\n }\n}" ../../tslibs/TS/Lib/lib.d.ts @@ -174,18 +148,14 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' tsconfig.json Root file specified for compilation - node_modules/@types/node/index.d.ts - Entry point for implicit type library 'node' - node_modules/@types/ts-node/index.d.ts - Entry point for implicit type library 'ts-node' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -210,32 +180,10 @@ watchedFiles:: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/node/index.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/node/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/ts-node/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* {"pollingInterval":2000} @@ -245,9 +193,6 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} - {} /home/src/workspaces/project/node_modules/@types: *new* {} {} @@ -282,16 +227,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/workspaces/project/node_modules/@types/node/index.d.ts *new* - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts *new* - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -309,11 +244,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/index.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -337,30 +272,8 @@ watchedFiles:: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/workspaces/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/node/index.d.ts: - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/node/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts: - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/ts-node/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} @@ -374,9 +287,6 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project: {} -/home/src/workspaces/project/node_modules: - {} - {} /home/src/workspaces/project/node_modules/@types: {} {} @@ -412,16 +322,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -944,12 +844,6 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "declare", "sortText": "15" }, - { - "name": "process", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, { "name": "RangeError", "kind": "var", @@ -1231,16 +1125,6 @@ ScriptInfos:: version: SVC-2-1 *changed* containingProjects: 1 /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1289,16 +1173,6 @@ ScriptInfos:: version: SVC-2-2 *changed* containingProjects: 1 /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/@types/node/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1358,19 +1232,18 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-2-2 "IN" - /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module \"process\" {\n global {\n var process: NodeJS.Process;\n namespace NodeJS {\n interface Process {\n argv: string[];\n }\n }\n }\n export = process;\n}" - /home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts Text-1 "export {};\ndeclare const REGISTER_INSTANCE: unique symbol;\ndeclare global {\n namespace NodeJS {\n interface Process {\n [REGISTER_INSTANCE]?: Service;\n }\n }\n}" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * -Info seq [hh:mm:ss:mss] getExportInfoMap: cache hit +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache Info seq [hh:mm:ss:mss] collectAutoImports: response is complete Info seq [hh:mm:ss:mss] collectAutoImports: * @@ -1846,12 +1719,6 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "declare", "sortText": "15" }, - { - "name": "process", - "kind": "var", - "kindModifiers": "declare", - "sortText": "15" - }, { "name": "RangeError", "kind": "var", diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js index fe827a9aab329..0d3f7534ab443 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js @@ -91,12 +91,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info @@ -110,12 +104,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/lodash/package.json SVC-1-0 "{ \"name\": \"lodash\", \"version\": \"4.17.15\", \"main\": \"./lodash.js\" }" - /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts Text-1 "export = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" ../../../../tslibs/TS/Lib/lib.d.ts @@ -126,12 +119,10 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' package.json Root file specified for compilation - ../@types/lodash/index.d.ts - Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -156,10 +147,6 @@ watchedFiles:: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/package.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lodash/jsconfig.json: *new* @@ -172,12 +159,8 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/lodash/node_modules: *new* - {} /home/src/workspaces/project/node_modules/lodash/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/node_modules/@types: *new* @@ -201,10 +184,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/lodash/package.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -224,7 +203,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject2*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations @@ -232,6 +211,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -254,13 +234,12 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' node_modules/@types/lodash/index.d.ts Imported via 'lodash' from file 'index.ts' with packageId '@types/lodash/index.d.ts@4.14.97' - Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' index.ts Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) @@ -293,11 +272,10 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: +/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/package.json: +/home/src/workspaces/project/node_modules/@types/lodash/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lodash/jsconfig.json: @@ -321,14 +299,11 @@ watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules: +/home/src/workspaces/project/node_modules: *new* {} - {} *new* /home/src/workspaces/project/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules/lodash/node_modules: - {} /home/src/workspaces/project/node_modules/lodash/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -363,11 +338,10 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts *changed* +/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* + containingProjects: 1 + /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/lodash/package.json (Open) version: SVC-1-0 containingProjects: 1 @@ -476,7 +450,6 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lodash/jsconfig.json: @@ -508,14 +481,11 @@ watchedDirectoriesRecursive:: {} {} /home/src/workspaces/project/node_modules: - {} {} {} *new* /home/src/workspaces/project/node_modules/@types: {} {} -/home/src/workspaces/project/node_modules/lodash/node_modules: - {} /home/src/workspaces/project/node_modules/lodash/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -557,8 +527,7 @@ ScriptInfos:: /dev/null/auxiliaryProject1* *new* /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts version: Text-1 - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/lodash/lodash.js *new* version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js index 6e811309a4a17..65a83b641f319 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js @@ -57,12 +57,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info @@ -78,12 +72,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" - /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts Text-1 "export interface Yargs { positional(): Yargs; }\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" ../../../../../tslibs/TS/Lib/lib.d.ts @@ -94,12 +87,10 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' package.json Root file specified for compilation - index.d.ts - Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -128,12 +119,8 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: *new* - {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/yargs/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/package.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: *new* @@ -144,14 +131,10 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/node_modules/@types: *new* @@ -175,10 +158,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -198,7 +177,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject2*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations @@ -206,6 +185,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -228,13 +208,12 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' node_modules/@types/yargs/index.d.ts Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' - Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' index.ts Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) @@ -271,13 +250,12 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: +/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/yargs/jsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/package.json: +/home/src/workspaces/project/node_modules/@types/yargs/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: @@ -299,16 +277,13 @@ watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules: +/home/src/workspaces/project/node_modules: *new* {} - {} *new* /home/src/workspaces/project/node_modules/@types: {} {} *new* /home/src/workspaces/project/node_modules/@types/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -343,11 +318,10 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *changed* +/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* + containingProjects: 1 + /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) version: SVC-1-0 containingProjects: 1 @@ -442,7 +416,6 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: @@ -472,7 +445,6 @@ watchedDirectoriesRecursive:: {} {} /home/src/workspaces/project/node_modules: - {} {} {} *new* /home/src/workspaces/project/node_modules/@types: @@ -480,8 +452,6 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -526,8 +496,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *changed* version: Text-1 sourceMapFilePath: false *changed* - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) version: SVC-1-0 diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js index 77e8741440fe8..97ad6fca9dd5c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js @@ -64,15 +64,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info @@ -88,13 +79,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" - /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" - /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" ../../../../../tslibs/TS/Lib/lib.d.ts @@ -105,14 +94,10 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' package.json Root file specified for compilation - callback.d.ts - Imported via "./callback" from file 'index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' - index.d.ts - Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -141,14 +126,8 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: *new* - {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/yargs/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/package.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: *new* @@ -156,21 +135,13 @@ watchedFiles:: /home/src/workspaces/project/node_modules/tsconfig.json: *new* {"pollingInterval":2000} -watchedDirectories:: -/home/src/workspaces/project/node_modules/@types/yargs: *new* - {} - watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/node_modules/@types: *new* @@ -194,14 +165,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -221,9 +184,11 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject2*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations @@ -254,13 +219,12 @@ Info seq [hh:mm:ss:mss] Files (6) Imported via "./callback" from file 'node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' node_modules/@types/yargs/index.d.ts Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' - Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' index.ts Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) @@ -297,15 +261,14 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts: +/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: +/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/yargs/jsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/package.json: +/home/src/workspaces/project/node_modules/@types/yargs/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: @@ -322,23 +285,18 @@ watchedDirectories:: {} /home/src/workspaces/project: *new* {} -/home/src/workspaces/project/node_modules/@types/yargs: - {} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules: +/home/src/workspaces/project/node_modules: *new* {} - {} *new* /home/src/workspaces/project/node_modules/@types: {} {} *new* /home/src/workspaces/project/node_modules/@types/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -373,16 +331,14 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *changed* +/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *changed* + containingProjects: 1 + /dev/null/inferredProject2* +/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* + containingProjects: 1 + /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) version: SVC-1-0 containingProjects: 1 @@ -483,7 +439,6 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: @@ -507,8 +462,6 @@ watchedDirectories:: /home/src/workspaces/project: {} {} *new* -/home/src/workspaces/project/node_modules/@types/yargs: - {} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules: *new* @@ -517,7 +470,6 @@ watchedDirectoriesRecursive:: {} {} /home/src/workspaces/project/node_modules: - {} {} {} *new* /home/src/workspaces/project/node_modules/@types: @@ -525,8 +477,6 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -571,13 +521,11 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *changed* version: Text-1 sourceMapFilePath: false *changed* - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts version: Text-1 - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) version: SVC-1-0 diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js index 772ff2232cee2..793a4a860a796 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js @@ -64,15 +64,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info @@ -88,13 +79,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" - /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" - /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" ../../../../../tslibs/TS/Lib/lib.d.ts @@ -105,14 +94,10 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' package.json Root file specified for compilation - callback.d.ts - Imported via "./callback" from file 'index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' - index.d.ts - Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -141,14 +126,8 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: *new* - {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/yargs/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/package.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: *new* @@ -156,21 +135,13 @@ watchedFiles:: /home/src/workspaces/project/node_modules/tsconfig.json: *new* {"pollingInterval":2000} -watchedDirectories:: -/home/src/workspaces/project/node_modules/@types/yargs: *new* - {} - watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/node_modules/@types: *new* @@ -194,14 +165,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -221,9 +184,11 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject2*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations @@ -254,13 +219,12 @@ Info seq [hh:mm:ss:mss] Files (6) Imported via "./callback" from file 'node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' node_modules/@types/yargs/index.d.ts Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' - Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' index.ts Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) @@ -297,15 +261,14 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts: +/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: +/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/yargs/jsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/package.json: +/home/src/workspaces/project/node_modules/@types/yargs/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: @@ -322,23 +285,18 @@ watchedDirectories:: {} /home/src/workspaces/project: *new* {} -/home/src/workspaces/project/node_modules/@types/yargs: - {} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules: +/home/src/workspaces/project/node_modules: *new* {} - {} *new* /home/src/workspaces/project/node_modules/@types: {} {} *new* /home/src/workspaces/project/node_modules/@types/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -373,16 +331,14 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *changed* +/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *changed* + containingProjects: 1 + /dev/null/inferredProject2* +/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* + containingProjects: 1 + /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) version: SVC-1-0 containingProjects: 1 @@ -497,7 +453,6 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: @@ -521,8 +476,6 @@ watchedDirectories:: /home/src/workspaces/project: {} {} *new* -/home/src/workspaces/project/node_modules/@types/yargs: - {} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules: *new* @@ -531,7 +484,6 @@ watchedDirectoriesRecursive:: {} {} /home/src/workspaces/project/node_modules: - {} {} {} *new* /home/src/workspaces/project/node_modules/@types: @@ -539,8 +491,6 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -585,13 +535,11 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *changed* version: Text-1 sourceMapFilePath: false *changed* - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts version: Text-1 - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) version: SVC-1-0 diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js index c3a618a230cbe..7365013acd820 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js @@ -68,15 +68,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info @@ -92,13 +83,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" - /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" - /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" ../../../../../tslibs/TS/Lib/lib.d.ts @@ -109,14 +98,10 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' package.json Root file specified for compilation - callback.d.ts - Imported via "./callback" from file 'index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' - index.d.ts - Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -145,14 +130,8 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: *new* - {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/yargs/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/package.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: *new* @@ -160,21 +139,13 @@ watchedFiles:: /home/src/workspaces/project/node_modules/tsconfig.json: *new* {"pollingInterval":2000} -watchedDirectories:: -/home/src/workspaces/project/node_modules/@types/yargs: *new* - {} - watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/node_modules/@types: *new* @@ -198,14 +169,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -228,15 +191,17 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/folder/random.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/some/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/some/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/some/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/some/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/some 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/some 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/yargs/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution @@ -275,13 +240,12 @@ Info seq [hh:mm:ss:mss] Files (7) Imported via "../folder/random" from file 'index.ts' ../node_modules/@types/yargs/index.d.ts Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' - Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' index.ts Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) @@ -320,15 +284,14 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts: +/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: +/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/yargs/jsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/yargs/package.json: +/home/src/workspaces/project/node_modules/@types/yargs/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: @@ -349,8 +312,6 @@ watchedDirectories:: {} /home/src/workspaces/project: *new* {} -/home/src/workspaces/project/node_modules/@types/yargs: - {} /home/src/workspaces/project/some: *new* {} @@ -362,16 +323,13 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project/folder/node_modules: *new* {} -/home/src/workspaces/project/node_modules: +/home/src/workspaces/project/node_modules: *new* {} - {} *new* /home/src/workspaces/project/node_modules/@types: {} {} *new* /home/src/workspaces/project/node_modules/@types/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -410,16 +368,14 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *changed* +/home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* -/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *changed* + containingProjects: 1 + /dev/null/inferredProject2* +/home/src/workspaces/project/node_modules/@types/yargs/index.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* + containingProjects: 1 + /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) version: SVC-1-0 containingProjects: 1 @@ -537,7 +493,6 @@ watchedFiles:: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/yargs/tsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: @@ -565,8 +520,6 @@ watchedDirectories:: /home/src/workspaces/project: {} {} *new* -/home/src/workspaces/project/node_modules/@types/yargs: - {} /home/src/workspaces/project/some: {} {} *new* @@ -584,7 +537,6 @@ watchedDirectoriesRecursive:: {} {} *new* /home/src/workspaces/project/node_modules: - {} {} {} *new* /home/src/workspaces/project/node_modules/@types: @@ -592,8 +544,6 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project/node_modules/@types/node_modules/@types: {} -/home/src/workspaces/project/node_modules/@types/yargs/node_modules: - {} /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -643,13 +593,11 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts *changed* version: Text-1 sourceMapFilePath: false *changed* - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts version: Text-1 - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/yargs/package.json (Open) version: SVC-1-0 diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js index 2a98cead0cde4..6e2e574faec6e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js @@ -44,12 +44,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/foo/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/foo/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/foo/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/foo/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info @@ -63,12 +57,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/foo/package.json SVC-1-0 "{ \"name\": \"foo\", \"version\": \"1.0.0\", \"main\": \"./lib/main.js\" }" - /home/src/workspaces/project/node_modules/@types/foo/index.d.ts Text-1 "export declare const a: string;" ../../../../tslibs/TS/Lib/lib.d.ts @@ -79,12 +72,10 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' package.json Root file specified for compilation - ../@types/foo/index.d.ts - Entry point for implicit type library 'foo' with packageId '@types/foo/index.d.ts@1.0.0' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -109,10 +100,6 @@ watchedFiles:: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/foo/index.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/foo/package.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/tsconfig.json: *new* @@ -125,12 +112,8 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/foo/node_modules: *new* - {} /home/src/workspaces/project/node_modules/foo/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/node_modules/@types: *new* @@ -154,10 +137,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/foo/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/foo/package.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -177,7 +156,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject2*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/foo/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/foo/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations @@ -185,6 +164,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/foo/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/foo/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject2* WatchType: Type roots @@ -207,13 +187,12 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' node_modules/@types/foo/index.d.ts Imported via "foo" from file 'index.ts' with packageId '@types/foo/index.d.ts@1.0.0' - Entry point for implicit type library 'foo' with packageId '@types/foo/index.d.ts@1.0.0' index.ts Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) @@ -246,11 +225,10 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/foo/index.d.ts: +/home/src/workspaces/project/node_modules/@types/foo/index.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/foo/package.json: +/home/src/workspaces/project/node_modules/@types/foo/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/foo/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/package.json: *new* @@ -274,14 +252,11 @@ watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules: +/home/src/workspaces/project/node_modules: *new* {} - {} *new* /home/src/workspaces/project/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules/foo/node_modules: - {} /home/src/workspaces/project/node_modules/foo/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -316,11 +291,10 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/foo/index.d.ts *changed* +/home/src/workspaces/project/node_modules/@types/foo/index.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* + containingProjects: 1 + /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/foo/package.json (Open) version: SVC-1-0 containingProjects: 1 @@ -409,7 +383,6 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/foo/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/lib/main.js: *new* @@ -443,14 +416,11 @@ watchedDirectoriesRecursive:: {} {} /home/src/workspaces/project/node_modules: - {} {} {} *new* /home/src/workspaces/project/node_modules/@types: {} {} -/home/src/workspaces/project/node_modules/foo/node_modules: - {} /home/src/workspaces/project/node_modules/foo/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -495,8 +465,7 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/foo/index.d.ts *changed* version: Text-1 sourceMapFilePath: false *changed* - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/foo/lib/main.js *new* version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js index 598a8dfdc3b43..edcc92b1526f5 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js @@ -100,17 +100,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/common/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -121,13 +113,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/lodash/package.json SVC-1-0 "{ \"name\": \"lodash\", \"version\": \"4.17.15\", \"main\": \"./lodash.js\" }" - /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts Text-1 "import _ = require(\"../index\");\ndeclare module \"../index\" {\n interface LoDashStatic {\n add(augend: number, addend: number): number;\n }\n}" - /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts Text-1 "/// \nexport = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" ../../../../tslibs/TS/Lib/lib.d.ts @@ -138,15 +128,10 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' package.json Root file specified for compilation - ../@types/lodash/common/math.d.ts - Referenced via './common/math.d.ts' from file '../@types/lodash/index.d.ts' - ../@types/lodash/index.d.ts - Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' - Imported via "../index" from file '../@types/lodash/common/math.d.ts' with packageId '@types/lodash/index.d.ts@4.14.97' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -171,14 +156,6 @@ watchedFiles:: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/common/package.json: *new* - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/package.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lodash/jsconfig.json: *new* @@ -191,12 +168,8 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/lodash/node_modules: *new* - {} /home/src/workspaces/project/node_modules/lodash/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/node_modules/@types: *new* @@ -220,14 +193,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/lodash/package.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -247,6 +212,8 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject2*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution @@ -282,13 +249,12 @@ Info seq [hh:mm:ss:mss] Files (6) node_modules/@types/lodash/index.d.ts Imported via 'lodash' from file 'index.ts' with packageId '@types/lodash/index.d.ts@4.14.97' Imported via "../index" from file 'node_modules/@types/lodash/common/math.d.ts' with packageId '@types/lodash/index.d.ts@4.14.97' - Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' index.ts Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) @@ -321,16 +287,14 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: +/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/common/package.json: +/home/src/workspaces/project/node_modules/@types/lodash/common/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: +/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/package.json: +/home/src/workspaces/project/node_modules/@types/lodash/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lodash/jsconfig.json: @@ -354,14 +318,11 @@ watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules: +/home/src/workspaces/project/node_modules: *new* {} - {} *new* /home/src/workspaces/project/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules/lodash/node_modules: - {} /home/src/workspaces/project/node_modules/lodash/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -396,16 +357,14 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts *changed* +/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts *changed* + containingProjects: 1 + /dev/null/inferredProject2* +/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* + containingProjects: 1 + /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/lodash/package.json (Open) version: SVC-1-0 containingProjects: 1 @@ -514,12 +473,10 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/common/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lodash/jsconfig.json: @@ -551,14 +508,11 @@ watchedDirectoriesRecursive:: {} {} /home/src/workspaces/project/node_modules: - {} {} {} *new* /home/src/workspaces/project/node_modules/@types: {} {} -/home/src/workspaces/project/node_modules/lodash/node_modules: - {} /home/src/workspaces/project/node_modules/lodash/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -603,13 +557,11 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts *changed* version: Text-1 sourceMapFilePath: false *changed* - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts version: Text-1 - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/lodash/lodash.js *new* version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js index bb0674bb82a50..30e0f5f2b1c45 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js @@ -101,17 +101,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/common/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -122,13 +114,11 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/lodash/package.json SVC-1-0 "{ \"name\": \"lodash\", \"version\": \"4.17.15\", \"main\": \"./lodash.js\" }" - /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts Text-1 "import _ = require(\"../index\");\ndeclare module \"../index\" {\n interface LoDashStatic {\n add(augend: number, addend: number): number;\n }\n}" - /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts Text-1 "/// \nexport = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" ../../../../tslibs/TS/Lib/lib.d.ts @@ -139,15 +129,10 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' package.json Root file specified for compilation - ../@types/lodash/common/math.d.ts - Referenced via './common/math.d.ts' from file '../@types/lodash/index.d.ts' - ../@types/lodash/index.d.ts - Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' - Imported via "../index" from file '../@types/lodash/common/math.d.ts' with packageId '@types/lodash/index.d.ts@4.14.97' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -172,14 +157,6 @@ watchedFiles:: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/common/package.json: *new* - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/package.json: *new* - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lodash/jsconfig.json: *new* @@ -192,12 +169,8 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} /home/src/workspaces/project/node_modules/@types: *new* {} -/home/src/workspaces/project/node_modules/lodash/node_modules: *new* - {} /home/src/workspaces/project/node_modules/lodash/node_modules/@types: *new* {} /home/src/workspaces/project/node_modules/node_modules/@types: *new* @@ -221,14 +194,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/lodash/package.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -248,6 +213,8 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject2*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject2* WatchType: File location affecting resolution @@ -283,13 +250,12 @@ Info seq [hh:mm:ss:mss] Files (6) node_modules/@types/lodash/index.d.ts Imported via 'lodash' from file 'index.ts' with packageId '@types/lodash/index.d.ts@4.14.97' Imported via "../index" from file 'node_modules/@types/lodash/common/math.d.ts' with packageId '@types/lodash/index.d.ts@4.14.97' - Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' index.ts Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) @@ -322,16 +288,14 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: +/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/common/package.json: +/home/src/workspaces/project/node_modules/@types/lodash/common/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: +/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/@types/lodash/package.json: +/home/src/workspaces/project/node_modules/@types/lodash/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lodash/jsconfig.json: @@ -355,14 +319,11 @@ watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules: +/home/src/workspaces/project/node_modules: *new* {} - {} *new* /home/src/workspaces/project/node_modules/@types: {} {} *new* -/home/src/workspaces/project/node_modules/lodash/node_modules: - {} /home/src/workspaces/project/node_modules/lodash/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -397,16 +358,14 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject2* *default* -/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts *changed* +/home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* -/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts *changed* + containingProjects: 1 + /dev/null/inferredProject2* +/home/src/workspaces/project/node_modules/@types/lodash/index.d.ts *new* version: Text-1 - containingProjects: 2 *changed* - /dev/null/inferredProject1* - /dev/null/inferredProject2* *new* + containingProjects: 1 + /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/lodash/package.json (Open) version: SVC-1-0 containingProjects: 1 @@ -487,12 +446,10 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/common/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lodash/jsconfig.json: @@ -524,14 +481,11 @@ watchedDirectoriesRecursive:: {} {} /home/src/workspaces/project/node_modules: - {} {} {} *new* /home/src/workspaces/project/node_modules/@types: {} {} -/home/src/workspaces/project/node_modules/lodash/node_modules: - {} /home/src/workspaces/project/node_modules/lodash/node_modules/@types: {} /home/src/workspaces/project/node_modules/node_modules/@types: @@ -577,14 +531,12 @@ ScriptInfos:: /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts *changed* version: Text-1 sourceMapFilePath: false *changed* - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts *changed* version: Text-1 sourceMapFilePath: false *changed* - containingProjects: 2 - /dev/null/inferredProject1* + containingProjects: 1 /dev/null/inferredProject2* /home/src/workspaces/project/node_modules/lodash/lodash.js *new* version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js index 472204efd95f8..2abb5d9d09259 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js @@ -19,7 +19,7 @@ export declare function Component(): void; //// [/home/src/workspaces/project/node_modules/@types/react] symlink(/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react) //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "types": ["react"] } } Info seq [hh:mm:ss:mss] request: @@ -40,6 +40,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "types": [ + "react" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -71,10 +74,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -94,7 +93,7 @@ Info seq [hh:mm:ss:mss] Files (5) index.ts Matched by default include pattern '**/*' node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts - Entry point for implicit type library 'react' + Entry point of type library 'react' specified in compilerOptions Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -121,28 +120,17 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" - /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"types\": [\"react\"] } }" ../../tslibs/TS/Lib/lib.d.ts @@ -153,8 +141,6 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' tsconfig.json Root file specified for compilation - node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) @@ -162,7 +148,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -189,49 +175,38 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* {"pollingInterval":2000} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} - {} /home/src/workspaces/project: *new* {} /home/src/workspaces/project/node_modules/@types: *new* {} - {} /home/src/workspaces/project/node_modules/@types/react: *new* {} - {} Projects:: /dev/null/inferredProject1* (Inferred) *new* @@ -265,9 +240,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts *new* version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -289,7 +263,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -315,32 +289,24 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} @@ -351,15 +317,12 @@ watchedFiles *deleted*:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules/@types: {} - {} /home/src/workspaces/project/node_modules/@types/react: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) @@ -394,9 +357,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -552,49 +514,38 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules: *new* {} /home/src/workspaces/project/node_modules/@types: {} - {} /home/src/workspaces/project/node_modules/@types/react: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) @@ -662,9 +613,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -715,9 +665,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js index dbd6fbb636145..ba83b89df03bc 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js @@ -19,7 +19,7 @@ export declare function Component(): void; //// [/home/src/workspaces/project/node_modules/@types/react] symlink(/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react) //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "types": ["react"] } } Info seq [hh:mm:ss:mss] request: @@ -40,6 +40,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "types": [ + "react" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -71,10 +74,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -94,7 +93,7 @@ Info seq [hh:mm:ss:mss] Files (5) index.ts Matched by default include pattern '**/*' node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts - Entry point for implicit type library 'react' + Entry point of type library 'react' specified in compilerOptions Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -121,28 +120,17 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" - /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"types\": [\"react\"] } }" ../../tslibs/TS/Lib/lib.d.ts @@ -153,8 +141,6 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' tsconfig.json Root file specified for compilation - node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) @@ -162,7 +148,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -189,49 +175,38 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* {"pollingInterval":2000} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} - {} /home/src/workspaces/project: *new* {} /home/src/workspaces/project/node_modules/@types: *new* {} - {} /home/src/workspaces/project/node_modules/@types/react: *new* {} - {} Projects:: /dev/null/inferredProject1* (Inferred) *new* @@ -265,9 +240,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts *new* version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -289,7 +263,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -315,32 +289,24 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} @@ -351,15 +317,12 @@ watchedFiles *deleted*:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules/@types: {} - {} /home/src/workspaces/project/node_modules/@types/react: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) @@ -394,9 +357,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -521,49 +483,38 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules: *new* {} /home/src/workspaces/project/node_modules/@types: {} - {} /home/src/workspaces/project/node_modules/@types/react: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) diff --git a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js index 537136716c501..0f68af7d733ae 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js @@ -62,45 +62,20 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/csstype 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/csstype 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "import SvgProp" - /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts Text-1 "export interface SvgProperties {}" - /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "import \"csstype\";\nexport declare function Component(): void;" ../../tslibs/TS/Lib/lib.d.ts @@ -111,10 +86,6 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' index.ts Matched by default include pattern '**/*' - node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts - Imported via "csstype" from file 'node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts' - node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -141,40 +112,17 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/csstype 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/csstype 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" - /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts Text-1 "export interface SvgProperties {}" - /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "import \"csstype\";\nexport declare function Component(): void;" ../../tslibs/TS/Lib/lib.d.ts @@ -185,18 +133,14 @@ Info seq [hh:mm:ss:mss] Files (6) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' tsconfig.json Root file specified for compilation - node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts - Imported via "csstype" from file 'node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts' - node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -221,76 +165,22 @@ watchedFiles:: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts: *new* - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/package.json: *new* - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* {"pollingInterval":2000} -watchedDirectories:: -/home/src/workspaces: *new* - {} - {} -/home/src/workspaces/project: *new* - {} - {} - watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} {} /home/src/workspaces/project: *new* {} -/home/src/workspaces/project/node_modules: *new* - {} - {} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/csstype: *new* - {} - {} /home/src/workspaces/project/node_modules/@types: *new* {} {} -/home/src/workspaces/project/node_modules/@types/react: *new* - {} - {} Projects:: /dev/null/inferredProject1* (Inferred) *new* @@ -322,16 +212,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts *new* - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts *new* - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -349,11 +229,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/index.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -377,45 +257,8 @@ watchedFiles:: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/workspaces/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts: - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts: - {"pollingInterval":500} -/home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/.pnpm/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/node_modules/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} -/home/src/workspaces/project/package.json: - {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} @@ -423,32 +266,15 @@ watchedFiles *deleted*:: /home/src/workspaces/project/index.ts: {"pollingInterval":500} -watchedDirectories:: -/home/src/workspaces: - {} - {} -/home/src/workspaces/project: - {} - {} - watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} {} /home/src/workspaces/project: {} -/home/src/workspaces/project/node_modules: - {} - {} -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/csstype: - {} - {} /home/src/workspaces/project/node_modules/@types: {} {} -/home/src/workspaces/project/node_modules/@types/react: - {} - {} Projects:: /dev/null/inferredProject1* (Inferred) @@ -481,16 +307,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json *default* -/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* -/home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts - version: Text-1 - containingProjects: 2 - /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js index bd405d9cf0e5b..0695699774161 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js @@ -34,7 +34,8 @@ declare module 'util' { "checkJs": true, "typeRoots": [ "node_modules/@types" - ] + ], + "types": ["node"] }, "include": ["**/*"], "typeAcquisition": { @@ -66,6 +67,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "typeRoots": [ "/home/src/workspaces/project/node_modules/@types" ], + "types": [ + "node" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -93,8 +97,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -114,7 +116,7 @@ Info seq [hh:mm:ss:mss] Files (5) a.js Matched by include pattern '**/*' in 'tsconfig.json' node_modules/@types/node/index.d.ts - Entry point for implicit type library 'node' + Entry point of type library 'node' specified in compilerOptions Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -147,24 +149,17 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"esnext\",\n \"allowJs\": true,\n \"checkJs\": true,\n \"typeRoots\": [\n \"node_modules/@types\"\n ]\n },\n \"include\": [\"**/*\"],\n \"typeAcquisition\": {\n \"enable\": true\n }\n}" - /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"esnext\",\n \"allowJs\": true,\n \"checkJs\": true,\n \"typeRoots\": [\n \"node_modules/@types\"\n ],\n \"types\": [\"node\"]\n },\n \"include\": [\"**/*\"],\n \"typeAcquisition\": {\n \"enable\": true\n }\n}" ../../tslibs/TS/Lib/lib.d.ts @@ -175,8 +170,6 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' tsconfig.json Root file specified for compilation - node_modules/@types/node/index.d.ts - Entry point for implicit type library 'node' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file @@ -185,7 +178,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -218,15 +211,11 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/node/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":250} /home/src/workspaces/project/tsconfig.json: *new* @@ -239,10 +228,8 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project/node_modules: *new* {} - {} /home/src/workspaces/project/node_modules/@types: *new* {} - {} Projects:: /dev/null/inferredProject1* (Inferred) *new* @@ -276,9 +263,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/@types/node/index.d.ts *new* version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -300,7 +286,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -330,15 +316,11 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/node/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":250} /home/src/workspaces/project/tsconfig.json: @@ -355,10 +337,8 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project/node_modules: {} - {} /home/src/workspaces/project/node_modules/@types: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) @@ -393,9 +373,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1035,7 +1014,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -1106,9 +1085,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1159,9 +1137,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1233,9 +1210,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1307,9 +1283,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1381,9 +1356,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1455,9 +1429,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1529,9 +1502,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1603,9 +1575,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1677,9 +1648,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1751,9 +1721,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1825,9 +1794,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1899,9 +1867,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1973,9 +1940,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2047,9 +2013,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2121,9 +2086,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2195,9 +2159,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2269,9 +2232,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2343,9 +2305,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2417,9 +2378,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2491,9 +2451,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2565,9 +2524,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2639,9 +2597,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2713,9 +2670,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2787,9 +2743,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2861,9 +2816,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2935,9 +2889,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3009,9 +2962,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3083,9 +3035,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3157,9 +3108,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3231,9 +3181,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3305,9 +3254,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3379,9 +3327,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3453,9 +3400,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3527,9 +3473,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -4213,15 +4158,11 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/node/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":250} /home/src/workspaces/project/tsconfig.json: @@ -4236,10 +4177,8 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project/node_modules: {} - {} /home/src/workspaces/project/node_modules/@types: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) @@ -4306,9 +4245,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js index 455cd73846bd3..10d41c149fbb1 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js @@ -19,6 +19,7 @@ readF { "compilerOptions": { "module": "commonjs", + "types": ["node"] }, } @@ -57,6 +58,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/jsconfig.json : { "skipLibCheck": true, "noEmit": true, "module": 1, + "types": [ + "node" + ], "configFilePath": "/home/src/workspaces/project/jsconfig.json" } } @@ -84,10 +88,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /home/src/workspaces/project/jsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /home/src/workspaces/project/jsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/jsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/jsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/jsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/jsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/jsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -107,7 +107,7 @@ Info seq [hh:mm:ss:mss] Files (5) a.js Matched by default include pattern '**/*' node_modules/@types/node/index.d.ts - Entry point for implicit type library 'node' + Entry point of type library 'node' specified in compilerOptions Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -134,24 +134,17 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/jsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n },\n}" - /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" + /home/src/workspaces/project/jsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"types\": [\"node\"]\n },\n}" ../../tslibs/TS/Lib/lib.d.ts @@ -162,8 +155,6 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' jsconfig.json Root file specified for compilation - node_modules/@types/node/index.d.ts - Entry point for implicit type library 'node' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file @@ -172,7 +163,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -205,15 +196,11 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/node/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":250} /home/src/workspaces/project/tsconfig.json: *new* @@ -222,15 +209,12 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: *new* {} - {} /home/src/workspaces/project: *new* {} /home/src/workspaces/project/node_modules: *new* {} - {} /home/src/workspaces/project/node_modules/@types: *new* {} - {} Projects:: /dev/null/inferredProject1* (Inferred) *new* @@ -268,9 +252,8 @@ ScriptInfos:: /dev/null/inferredProject1* *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts *new* version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/jsconfig.json - /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] request: { @@ -288,7 +271,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -318,15 +301,11 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/node/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: - {"pollingInterval":2000} {"pollingInterval":2000} {"pollingInterval":250} /home/src/workspaces/project/tsconfig.json: @@ -339,15 +318,12 @@ watchedFiles *deleted*:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules/@types: {} - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules: {} - {} /home/src/workspaces/project/node_modules/@types: {} - {} Projects:: /dev/null/inferredProject1* (Inferred) @@ -386,9 +362,8 @@ ScriptInfos:: /dev/null/inferredProject1* *default* /home/src/workspaces/project/node_modules/@types/node/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/jsconfig.json - /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] request: { diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js index 3323b4222a6b6..0fcd5c005993d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js @@ -62,13 +62,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution @@ -98,7 +98,6 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' node_modules/@types/react/index.d.ts Imported via 'react' from file 'a.ts' - Entry point for implicit type library 'react' a.ts Matched by default include pattern '**/*' @@ -127,25 +126,17 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\" } }" - /home/src/workspaces/project/node_modules/@types/react/index.d.ts Text-1 "export function useState(): void;" ../../tslibs/TS/Lib/lib.d.ts @@ -156,8 +147,6 @@ Info seq [hh:mm:ss:mss] Files (5) Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' tsconfig.json Root file specified for compilation - node_modules/@types/react/index.d.ts - Entry point for implicit type library 'react' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) @@ -165,7 +154,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -192,25 +181,20 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/react/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/react/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* {"pollingInterval":2000} @@ -228,7 +212,6 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project/node_modules: *new* {} - {} /home/src/workspaces/project/node_modules/@types: *new* {} {} @@ -265,9 +248,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/@types/react/index.d.ts *new* version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -289,7 +271,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -315,23 +297,18 @@ watchedFiles:: {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/react/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/react/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/node_modules/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/package.json: {"pollingInterval":2000} - {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} @@ -353,7 +330,6 @@ watchedDirectoriesRecursive:: {} /home/src/workspaces/project/node_modules: {} - {} /home/src/workspaces/project/node_modules/@types: {} {} @@ -391,9 +367,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -1966,7 +1941,7 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -2037,9 +2012,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2090,9 +2064,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2164,9 +2137,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2238,9 +2210,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2312,9 +2283,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2386,9 +2356,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2460,9 +2429,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2534,9 +2502,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2608,9 +2575,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2682,9 +2648,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2756,9 +2721,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2830,9 +2794,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2904,9 +2867,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -2978,9 +2940,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3052,9 +3013,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3126,9 +3086,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3200,9 +3159,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3274,9 +3232,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3348,9 +3305,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3422,9 +3378,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3496,9 +3451,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3570,9 +3524,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3644,9 +3597,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3718,9 +3670,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3792,9 +3743,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3866,9 +3816,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -3940,9 +3889,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -4014,9 +3962,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -4088,9 +4035,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -4162,9 +4108,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -4236,9 +4181,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -4310,9 +4254,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 @@ -4384,9 +4327,8 @@ ScriptInfos:: /home/src/workspaces/project/tsconfig.json *default* /home/src/workspaces/project/node_modules/@types/react/index.d.ts version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/workspaces/project/tsconfig.json - /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json (Open) version: SVC-1-0 containingProjects: 1 diff --git a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-excluding-node_modules-within-a-project.js b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-excluding-node_modules-within-a-project.js index 231b264c5a687..7a8271183f36f 100644 --- a/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-excluding-node_modules-within-a-project.js +++ b/tests/baselines/reference/tsserver/getMoveToRefactoringFileSuggestions/works-for-suggesting-a-list-of-files,-excluding-node_modules-within-a-project.js @@ -26,7 +26,13 @@ export const value = 0; export const value1 = 0; //// [/home/src/projects/project/tsconfig.json] -{} +{ + "compilerOptions": { + "types": [ + "node" + ] + } +} //// [/home/src/tslibs/TS/Lib/lib.d.ts] interface Boolean {} @@ -63,6 +69,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/projects/project/tsconfig.json : { "/home/src/projects/project/d/e/file3.ts" ], "options": { + "types": [ + "node" + ], "configFilePath": "/home/src/projects/project/tsconfig.json" } } @@ -95,10 +104,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/pro Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/.cache/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules/@types 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (7) @@ -159,7 +164,11 @@ Info seq [hh:mm:ss:mss] event: "deferred": 0, "deferredSize": 0 }, - "compilerOptions": {}, + "compilerOptions": { + "types": [ + "" + ] + }, "typeAcquisition": { "enable": false, "include": false, @@ -187,9 +196,27 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/home/src/projects/project/tsconfig.json", "diagnostics": [ { - "text": "Cannot find type definition file for 'node'.\n The file is in the program because:\n Entry point for implicit type library 'node'", + "text": "Cannot find type definition file for 'node'.\n The file is in the program because:\n Entry point of type library 'node' specified in compilerOptions", "code": 2688, - "category": "error" + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 4, + "offset": 7 + }, + "end": { + "line": 4, + "offset": 13 + }, + "file": "/home/src/projects/project/tsconfig.json" + }, + "message": "File is entry point of type library specified here.", + "category": "message", + "code": 1419 + } + ] } ] } @@ -217,8 +244,6 @@ After request PolledWatches:: /home/src/projects/node_modules: *new* {"pollingInterval":500} -/home/src/projects/node_modules/@types: *new* - {"pollingInterval":500} /home/src/projects/package.json: *new* {"pollingInterval":2000} /home/src/projects/project/node_modules/.cache/package.json: *new* @@ -249,8 +274,6 @@ FsWatchesRecursive:: {} /home/src/projects/project/node_modules: *new* {} -/home/src/projects/project/node_modules/@types: *new* - {} Projects:: /home/src/projects/project/tsconfig.json (Configured) *new* 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 8c57c80d1b301..3308e1b5ff736 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config-with-redirection.js @@ -290,15 +290,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/workspace/package.json' does not exist Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/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/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Project: /home/src/workspace/projects/project1/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Project: /home/src/workspace/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -368,7 +359,6 @@ Info seq [hh:mm:ss:mss] Files (10) 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] event: @@ -686,7 +676,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/workspace/package.json' does not exist Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -763,7 +752,6 @@ Info seq [hh:mm:ss:mss] Files (10) 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* @@ -1201,7 +1189,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/workspace/package.json' does not exist Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/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/workspace/projects/project1/tsconfig.json projectStateVersion: 4 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspace/projects/project1/tsconfig.json' (Configured) @@ -1236,7 +1223,6 @@ Info seq [hh:mm:ss:mss] Files (9) 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* @@ -1426,7 +1412,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/workspace/package.json' does not exist Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] File '/home/src/workspace/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/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/node_modules/package.json' does not exist according to earlier cached lookups. @@ -1471,7 +1456,6 @@ Info seq [hh:mm:ss:mss] Files (9) 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* @@ -1706,13 +1690,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/workspace/package.json' does not exist Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1,/home/src/workspace/projects/project1/typeroot2'. ======== -Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1, /home/src/workspace/projects/project1/typeroot2'. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/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/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/node_modules/@typescript/lib-dom/index.d.ts'. Info seq [hh:mm:ss:mss] File '/home/src/workspace/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/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. @@ -2002,13 +1979,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/workspace/package.json' does not exist Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/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/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -2083,7 +2053,6 @@ Info seq [hh:mm:ss:mss] Files (9) 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] event: @@ -2387,7 +2356,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/workspace/package.json' does not exist Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json 2000 undefined Project: /home/src/workspace/projects/project1/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspace/projects/project1/tsconfig.json projectStateVersion: 8 projectProgramVersion: 6 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -2423,7 +2391,6 @@ Info seq [hh:mm:ss:mss] Files (9) 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* @@ -2710,7 +2677,6 @@ Info seq [hh:mm:ss:mss] File '/home/src/workspace/package.json' does not exist Info seq [hh:mm:ss:mss] File '/home/src/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was not resolved. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json 2000 undefined Project: /home/src/workspace/projects/project1/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspace/projects/project1/tsconfig.json projectStateVersion: 9 projectProgramVersion: 7 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms @@ -2746,7 +2712,6 @@ Info seq [hh:mm:ss:mss] Files (9) 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* diff --git a/tests/baselines/reference/tsserver/libraryResolution/with-config.js b/tests/baselines/reference/tsserver/libraryResolution/with-config.js index 7fe1db288201a..f4e77bb0fe07a 100644 --- a/tests/baselines/reference/tsserver/libraryResolution/with-config.js +++ b/tests/baselines/reference/tsserver/libraryResolution/with-config.js @@ -176,15 +176,6 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.webworker.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.scripthost.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/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/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/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/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Project: /home/src/workspace/projects/project1/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Project: /home/src/workspace/projects/project1/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.dom.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Project: /home/src/workspace/projects/project1/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/typeroot1 1 undefined Project: /home/src/workspace/projects/project1/tsconfig.json WatchType: Type roots @@ -224,7 +215,6 @@ Info seq [hh:mm:ss:mss] Files (10) 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] event: @@ -644,7 +634,6 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /home/src/workspace/projects/project1/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspace/projects/project1/tsconfig.json -Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'sometype' from '/home/src/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspace/projects/project1/tsconfig.json projectStateVersion: 3 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspace/projects/project1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (9) @@ -678,7 +667,6 @@ Info seq [hh:mm:ss:mss] Files (9) 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* @@ -890,13 +878,6 @@ 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-es5' was not resolved. ======== -Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'sometype', containing file '/home/src/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1,/home/src/workspace/projects/project1/typeroot2'. ======== -Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1, /home/src/workspace/projects/project1/typeroot2'. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/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/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -1131,13 +1112,6 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-webworker' from '/home/src/workspace/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/workspace/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/workspace/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/workspace/projects/project1/__inferred type names__.ts', root directory '/home/src/workspace/projects/project1/typeroot1'. ======== -Info seq [hh:mm:ss:mss] Resolving with primary search path '/home/src/workspace/projects/project1/typeroot1'. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/projects/project1/typeroot1/sometype/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] File '/home/src/workspace/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/workspace/projects/project1/typeroot1/sometype/index.d.ts', result '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Type reference directive 'sometype' was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts', primary: true. ======== Info seq [hh:mm:ss:mss] ======== Resolving module '@typescript/lib-dom' from '/home/src/workspace/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. @@ -1203,7 +1177,6 @@ Info seq [hh:mm:ss:mss] Files (9) 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] event: @@ -1445,7 +1418,6 @@ Info seq [hh:mm:ss:mss] File '/home/package.json' does not exist according to e Info seq [hh:mm:ss:mss] File '/package.json' does not exist according to earlier cached lookups. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/workspace/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/workspace/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/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/node_modules/@typescript/lib-dom/index.d.ts'. Info seq [hh:mm:ss:mss] File '/home/src/workspace/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/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. @@ -1489,7 +1461,6 @@ Info seq [hh:mm:ss:mss] Files (9) 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* @@ -1752,7 +1723,6 @@ Info seq [hh:mm:ss:mss] Directory '/node_modules' does not exist, skipping all 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/workspace/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/workspace/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/workspace/projects/project1/__inferred type names__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts'. Info seq [hh:mm:ss:mss] Reusing resolution of module '@typescript/lib-dom' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.dom.d.ts__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/node_modules/@typescript/lib-dom/index.d.ts'. Info seq [hh:mm:ss:mss] File '/home/src/workspace/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/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups. @@ -1796,7 +1766,6 @@ Info seq [hh:mm:ss:mss] Files (9) 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* diff --git a/tests/baselines/reference/tsserver/projects/does-not-look-beyond-node_modules-folders-for-default-configured-projects.js b/tests/baselines/reference/tsserver/projects/does-not-look-beyond-node_modules-folders-for-default-configured-projects.js index c664233e272dd..6dbfca55bfd8e 100644 --- a/tests/baselines/reference/tsserver/projects/does-not-look-beyond-node_modules-folders-for-default-configured-projects.js +++ b/tests/baselines/reference/tsserver/projects/does-not-look-beyond-node_modules-folders-for-default-configured-projects.js @@ -68,11 +68,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/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/project/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:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects 0 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects 0 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project 0 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project 0 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/a/package.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: File location affecting resolution @@ -98,10 +98,8 @@ Info seq [hh:mm:ss:mss] Files (4) Default library for target 'es5' node_modules/@types/a/index.d.ts Imported via 'a' from file 'index.ts' - Entry point for implicit type library 'a' node_modules/@types/b/index.d.ts Imported via 'b' from file 'index.ts' - Entry point for implicit type library 'b' index.ts Matched by default include pattern '**/*' @@ -280,18 +278,11 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/a 1 undefined Config: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/a 1 undefined Config: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/a/node_modules 1 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/a/node_modules 1 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules 1 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/a 0 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/a 0 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/a/package.json 2000 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/package.json 2000 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/package.json 2000 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/package.json 2000 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/package.json 2000 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/b/package.json 2000 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/a/node_modules/@types 1 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/a/node_modules/@types 1 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/project/node_modules/@types/node_modules/@types 1 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Type roots @@ -304,19 +295,15 @@ 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/@types 1 undefined Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/projects/project/node_modules/@types/a/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/node_modules/@types/a/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (2) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" /home/src/projects/project/node_modules/@types/a/index.d.ts Text-1 "{}" - /home/src/projects/project/node_modules/@types/b/index.d.ts Text-1 "{}" ../../../../../tslibs/TS/Lib/lib.d.ts Default library for target 'es5' index.d.ts Matched by default include pattern '**/*' - Entry point for implicit type library 'a' - ../b/index.d.ts - Entry point for implicit type library 'b' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -346,8 +333,8 @@ Info seq [hh:mm:ss:mss] event: "tsSize": 0, "tsx": 0, "tsxSize": 0, - "dts": 3, - "dtsSize": 378, + "dts": 2, + "dtsSize": 376, "deferred": 0, "deferredSize": 0 }, @@ -385,7 +372,7 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/node_modules/@types/a/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -411,8 +398,6 @@ PolledWatches:: {"pollingInterval":500} /home/src/projects/package.json: {"pollingInterval":2000} -/home/src/projects/project/node_modules/@types/a/node_modules: *new* - {"pollingInterval":500} /home/src/projects/project/node_modules/@types/a/node_modules/@types: *new* {"pollingInterval":500} /home/src/projects/project/node_modules/@types/a/package.json: @@ -435,8 +420,6 @@ FsWatches:: {} /home/src/projects/project: {} -/home/src/projects/project/node_modules/@types/a: *new* - {} /home/src/projects/project/node_modules/@types/a/tsconfig.json: *new* {} /home/src/projects/project/tsconfig.json: @@ -474,11 +457,10 @@ ScriptInfos:: containingProjects: 2 *changed* /home/src/projects/project/tsconfig.json /home/src/projects/project/node_modules/@types/a/tsconfig.json *default* *new* -/home/src/projects/project/node_modules/@types/b/index.d.ts *changed* +/home/src/projects/project/node_modules/@types/b/index.d.ts version: Text-1 - containingProjects: 2 *changed* + containingProjects: 1 /home/src/projects/project/tsconfig.json - /home/src/projects/project/node_modules/@types/a/tsconfig.json *new* /home/src/tslibs/TS/Lib/lib.d.ts *changed* version: Text-1 containingProjects: 2 *changed* @@ -504,7 +486,7 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/node_modules/@types/a/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -513,7 +495,7 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/node_modules/@types/a/index.d.ts ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json,/home/src/projects/project/node_modules/@types/a/tsconfig.json Info seq [hh:mm:ss:mss] FileName: /home/src/projects/project/node_modules/@types/b/index.d.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json,/home/src/projects/project/node_modules/@types/a/tsconfig.json +Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] response: { "seq": 0, @@ -537,9 +519,8 @@ ScriptInfos:: /home/src/projects/project/node_modules/@types/b/index.d.ts (Open) *changed* open: true *changed* version: Text-1 - containingProjects: 2 + containingProjects: 1 /home/src/projects/project/tsconfig.json *default* - /home/src/projects/project/node_modules/@types/a/tsconfig.json /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 containingProjects: 2 diff --git a/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js b/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js index 6f8823f72db40..38f8d83d25825 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js +++ b/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js @@ -329,7 +329,6 @@ Info seq [hh:mm:ss:mss] Files (3) Default library for target 'es5' node_modules/@types/pad/index.d.ts Imported via "pad" from file 'a.ts' - Entry point for implicit type library 'pad' a.ts Root file specified for compilation diff --git a/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js b/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js index 866daecad40f6..0d4e8c5cef4a3 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js +++ b/tests/baselines/reference/tsserver/resolutionCache/works-correctly-when-typings-are-added-or-removed.js @@ -11,7 +11,12 @@ export let a: number //// [/users/username/projects/project/tsconfig.json] { - "compilerOptions": {}, + "compilerOptions": { + "types": [ + "lib1", + "lib2" + ] + }, "exclude": [ "node_modules" ] @@ -49,6 +54,10 @@ Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json "/users/username/projects/project/app.ts" ], "options": { + "types": [ + "lib1", + "lib2" + ], "configFilePath": "/users/username/projects/project/tsconfig.json" } } @@ -67,6 +76,8 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/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: /users/username/projects/project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info @@ -75,10 +86,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projec Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -92,7 +99,7 @@ Info seq [hh:mm:ss:mss] Files (3) app.ts Matched by default include pattern '**/*' node_modules/@types/lib1/index.d.ts - Entry point for implicit type library 'lib1' + Entry point of type library 'lib1' specified in compilerOptions Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -127,7 +134,12 @@ Info seq [hh:mm:ss:mss] event: "deferred": 0, "deferredSize": 0 }, - "compilerOptions": {}, + "compilerOptions": { + "types": [ + "", + "" + ] + }, "typeAcquisition": { "enable": false, "include": false, @@ -153,7 +165,31 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/users/username/projects/project/app.ts", "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] + "diagnostics": [ + { + "text": "Cannot find type definition file for 'lib2'.\n The file is in the program because:\n Entry point of type library 'lib2' specified in compilerOptions", + "code": 2688, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 5, + "offset": 7 + }, + "end": { + "line": 5, + "offset": 13 + }, + "file": "/users/username/projects/project/tsconfig.json" + }, + "message": "File is entry point of type library specified here.", + "category": "message", + "code": 1419 + } + ] + } + ] } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) @@ -177,7 +213,7 @@ Info seq [hh:mm:ss:mss] response: After request PolledWatches:: -/users/username/projects/node_modules/@types: *new* +/users/username/projects/node_modules: *new* {"pollingInterval":500} /users/username/projects/package.json: *new* {"pollingInterval":2000} @@ -201,8 +237,6 @@ FsWatchesRecursive:: {} /users/username/projects/project/node_modules: *new* {} -/users/username/projects/project/node_modules/@types: *new* - {} Projects:: /users/username/projects/project/tsconfig.json (Configured) *new* @@ -224,15 +258,12 @@ ScriptInfos:: containingProjects: 1 /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib1/index.d.ts :: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib1/index.d.ts :: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib1/index.d.ts :: WatchInfo: /users/username/projects/project/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib1/index.d.ts :: WatchInfo: /users/username/projects/project/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib1/index.d.ts :: WatchInfo: /users/username/projects/project/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: /users/username/projects/project/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/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 /users/username/projects/project/node_modules/@types/lib1/index.d.ts :: WatchInfo: /users/username/projects/project/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache @@ -240,15 +271,15 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/proje Info seq [hh:mm:ss:mss] Project: /users/username/projects/project/tsconfig.json Detected excluded file: /users/username/projects/project/node_modules/@types/lib1/index.d.ts Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib1/index.d.ts :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory Before running Timeout callback:: count: 3 -4: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation -5: /users/username/projects/project/tsconfig.json -6: *ensureProjectForOpenFiles* +1: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation +4: /users/username/projects/project/tsconfig.json +5: *ensureProjectForOpenFiles* //// [/users/username/projects/project/node_modules/@types/lib1/index.d.ts] deleted Timeout callback:: count: 3 -4: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation *new* -5: /users/username/projects/project/tsconfig.json *new* -6: *ensureProjectForOpenFiles* *new* +1: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation *new* +4: /users/username/projects/project/tsconfig.json *new* +5: *ensureProjectForOpenFiles* *new* Projects:: /users/username/projects/project/tsconfig.json (Configured) *changed* @@ -276,8 +307,6 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/project/node_modules/@types/lib1/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/project/node_modules/@types/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/username/projects/project/node_modules/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution @@ -306,9 +335,50 @@ Info seq [hh:mm:ss:mss] event: "configFile": "/users/username/projects/project/tsconfig.json", "diagnostics": [ { - "text": "Cannot find type definition file for 'lib1'.\n The file is in the program because:\n Entry point for implicit type library 'lib1'", + "text": "Cannot find type definition file for 'lib1'.\n The file is in the program because:\n Entry point of type library 'lib1' specified in compilerOptions", + "code": 2688, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 4, + "offset": 7 + }, + "end": { + "line": 4, + "offset": 13 + }, + "file": "/users/username/projects/project/tsconfig.json" + }, + "message": "File is entry point of type library specified here.", + "category": "message", + "code": 1419 + } + ] + }, + { + "text": "Cannot find type definition file for 'lib2'.\n The file is in the program because:\n Entry point of type library 'lib2' specified in compilerOptions", "code": 2688, - "category": "error" + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 5, + "offset": 7 + }, + "end": { + "line": 5, + "offset": 13 + }, + "file": "/users/username/projects/project/tsconfig.json" + }, + "message": "File is entry point of type library specified here.", + "category": "message", + "code": 1419 + } + ] } ] } @@ -345,9 +415,7 @@ Info seq [hh:mm:ss:mss] event: After running Timeout callback:: count: 0 PolledWatches:: -/users/username/projects/node_modules: *new* - {"pollingInterval":500} -/users/username/projects/node_modules/@types: +/users/username/projects/node_modules: {"pollingInterval":500} PolledWatches *deleted*:: @@ -373,8 +441,6 @@ FsWatchesRecursive:: {} /users/username/projects/project/node_modules: {} -/users/username/projects/project/node_modules/@types: - {} Projects:: /users/username/projects/project/tsconfig.json (Configured) *changed* @@ -383,24 +449,14 @@ Projects:: dirty: false *changed* autoImportProviderHost: undefined *changed* -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2 :: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2 :: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2 :: WatchInfo: /users/username/projects/project/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2 :: WatchInfo: /users/username/projects/project/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2 :: WatchInfo: /users/username/projects/project/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 /users/username/projects/project/node_modules/@types/lib2 :: WatchInfo: /users/username/projects/project/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 /users/username/projects/project/node_modules/@types/lib2 :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Project: /users/username/projects/project/tsconfig.json Detected excluded file: /users/username/projects/project/node_modules/@types/lib2 Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2 :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2/index.d.ts :: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.json, Cancelled earlier one -Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2/index.d.ts :: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2/index.d.ts :: WatchInfo: /users/username/projects/project/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation, Cancelled earlier one Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2/index.d.ts :: WatchInfo: /users/username/projects/project/node_modules 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Failed Lookup Locations @@ -409,133 +465,26 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2/index.d.ts :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Project: /users/username/projects/project/tsconfig.json Detected excluded file: /users/username/projects/project/node_modules/@types/lib2/index.d.ts Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/node_modules/@types/lib2/index.d.ts :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Before running Timeout callback:: count: 3 -11: /users/username/projects/project/tsconfig.json -12: *ensureProjectForOpenFiles* -14: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation +Before running Timeout callback:: count: 1 +7: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation //// [/users/username/projects/project/node_modules/@types/lib2/index.d.ts] export let b: number -Timeout callback:: count: 3 -11: /users/username/projects/project/tsconfig.json *new* -12: *ensureProjectForOpenFiles* *new* -14: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation *new* +Timeout callback:: count: 1 +7: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation *new* + +Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +After running Timeout callback:: count: 2 + +Timeout callback:: count: 2 +8: /users/username/projects/project/tsconfig.json *new* +9: *ensureProjectForOpenFiles* *new* Projects:: /users/username/projects/project/tsconfig.json (Configured) *changed* projectStateVersion: 3 *changed* projectProgramVersion: 2 dirty: true *changed* - -Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types/lib2/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/package.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - /users/username/projects/project/app.ts SVC-1-0 "let x = 1;" - /users/username/projects/project/node_modules/@types/lib2/index.d.ts Text-1 "export let b: number" - - - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' - app.ts - Matched by default include pattern '**/*' - node_modules/@types/lib2/index.d.ts - Entry point for implicit type library 'lib2' - -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 '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/app.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/app.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] got projects updated in background /users/username/projects/project/app.ts -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/app.ts" - ] - } - } -After running Timeout callback:: count: 0 - -PolledWatches:: -/users/username/projects/node_modules: - {"pollingInterval":500} -/users/username/projects/node_modules/@types: - {"pollingInterval":500} -/users/username/projects/package.json: *new* - {"pollingInterval":2000} -/users/username/projects/project/node_modules/@types/lib2/package.json: *new* - {"pollingInterval":2000} -/users/username/projects/project/node_modules/@types/package.json: *new* - {"pollingInterval":2000} -/users/username/projects/project/node_modules/package.json: *new* - {"pollingInterval":2000} -/users/username/projects/project/package.json: *new* - {"pollingInterval":2000} - -FsWatches:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {} -/users/username/projects/project/tsconfig.json: - {} - -FsWatchesRecursive:: -/users/username/projects/project: - {} -/users/username/projects/project/node_modules: - {} -/users/username/projects/project/node_modules/@types: - {} - -Timeout callback:: count: 0 -14: /users/username/projects/project/tsconfig.jsonFailedLookupInvalidation *deleted* - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 3 - projectProgramVersion: 3 *changed* - dirty: false *changed* - -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/app.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* -/users/username/projects/project/node_modules/@types/lib1/index.d.ts - version: Text-1 - pendingReloadFromDisk: true - deferredDelete: true - containingProjects: 0 -/users/username/projects/project/node_modules/@types/lib2/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js index 65a393e5e7e32..bff2143a6be38 100644 --- a/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js +++ b/tests/baselines/reference/tsserver/typeReferenceDirectives/when-typeReferenceDirective-contains-UpperCasePackage.js @@ -98,32 +98,6 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/test 1 undefined Config: /user/username/projects/myproject/test/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/test 1 undefined Config: /user/username/projects/myproject/test/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/test/tsconfig.json -Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'UpperCasePackage', containing file '/user/username/projects/myproject/test/__inferred type names__.ts', root directory '/user/username/projects/myproject/lib/@types,/user/username/projects/myproject/lib/@app'. ======== -Info seq [hh:mm:ss:mss] Resolving with primary search path '/user/username/projects/myproject/lib/@types, /user/username/projects/myproject/lib/@app'. -Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/lib/@types/UpperCasePackage.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/lib/@types/UpperCasePackage/package.json' does not exist. -Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts' exists - use it as a name resolution result. -Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts', result '/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Type reference directive 'UpperCasePackage' was successfully resolved to '/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts', primary: true. ======== -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib 1 undefined Project: /user/username/projects/myproject/test/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib 1 undefined Project: /user/username/projects/myproject/test/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'lib', containing file '/user/username/projects/myproject/test/__inferred type names__.ts', root directory '/user/username/projects/myproject/lib/@types,/user/username/projects/myproject/lib/@app'. ======== -Info seq [hh:mm:ss:mss] Resolving with primary search path '/user/username/projects/myproject/lib/@types, /user/username/projects/myproject/lib/@app'. -Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/lib/@types/lib.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/lib/@app/lib.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/lib/@app/lib/package.json' does not exist. -Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/lib/@app/lib/index.d.ts' exists - use it as a name resolution result. -Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/lib/@app/lib/index.d.ts', result '/user/username/projects/myproject/lib/@app/lib/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Type reference directive 'lib' was successfully resolved to '/user/username/projects/myproject/lib/@app/lib/index.d.ts', primary: true. ======== -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib/@app/lib/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] ======== Resolving type reference directive 'UpperCasePackage', containing file '/user/username/projects/myproject/lib/@app/lib/index.d.ts', root directory '/user/username/projects/myproject/lib/@types,/user/username/projects/myproject/lib/@app'. ======== -Info seq [hh:mm:ss:mss] Resolving with primary search path '/user/username/projects/myproject/lib/@types, /user/username/projects/myproject/lib/@app'. -Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/lib/@types/UpperCasePackage.d.ts' does not exist. -Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/lib/@types/UpperCasePackage/package.json' does not exist according to earlier cached lookups. -Info seq [hh:mm:ss:mss] File '/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts' exists - use it as a name resolution result. -Info seq [hh:mm:ss:mss] Resolving real path for '/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts', result '/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts'. -Info seq [hh:mm:ss:mss] ======== Type reference directive 'UpperCasePackage' was successfully resolved to '/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts', primary: true. ======== Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib/@types 1 undefined Project: /user/username/projects/myproject/test/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib/@types 1 undefined Project: /user/username/projects/myproject/test/tsconfig.json WatchType: Type roots @@ -131,22 +105,15 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/pr Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/lib/@app 1 undefined Project: /user/username/projects/myproject/test/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/test/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/test/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (2) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" /user/username/projects/myproject/test/test.ts SVC-1-0 "class TestClass1 {\n\n constructor() {\n var l = new TestLib();\n\n }\n\n public test2() {\n var x = new BrokenTest('',0,0,null);\n\n }\n}" - /user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts Text-1 "declare class BrokenTest {\n constructor(name: string, width: number, height: number, onSelect: Function);\n Name: string;\n SelectedFile: string;\n}" - /user/username/projects/myproject/lib/@app/lib/index.d.ts Text-1 "/// \ndeclare class TestLib {\n issue: BrokenTest;\n constructor();\n test(): void;\n}" ../../../../../home/src/tslibs/TS/Lib/lib.d.ts Default library for target 'es5' test.ts Matched by default include pattern '**/*' - ../lib/@types/UpperCasePackage/index.d.ts - Entry point for implicit type library 'UpperCasePackage' - Type library referenced via 'UpperCasePackage' from file '../lib/@app/lib/index.d.ts' - ../lib/@app/lib/index.d.ts - Entry point for implicit type library 'lib' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -176,8 +143,8 @@ Info seq [hh:mm:ss:mss] event: "tsSize": 153, "tsx": 0, "tsxSize": 0, - "dts": 3, - "dtsSize": 656, + "dts": 1, + "dtsSize": 374, "deferred": 0, "deferredSize": 0 }, @@ -233,7 +200,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/test/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -255,16 +222,10 @@ After request FsWatches:: /home/src/tslibs/TS/Lib/lib.d.ts: *new* {} -/user/username/projects/myproject/lib/@app/lib/index.d.ts: *new* - {} -/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts: *new* - {} /user/username/projects/myproject/test/tsconfig.json: *new* {} FsWatchesRecursive:: -/user/username/projects/myproject/lib: *new* - {} /user/username/projects/myproject/lib/@app: *new* {} /user/username/projects/myproject/lib/@types: *new* @@ -283,26 +244,12 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /user/username/projects/myproject/test/tsconfig.json -/user/username/projects/myproject/lib/@app/lib/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /user/username/projects/myproject/test/tsconfig.json -/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts *new* - version: Text-1 - containingProjects: 1 - /user/username/projects/myproject/test/tsconfig.json /user/username/projects/myproject/test/test.ts (Open) *new* version: SVC-1-0 containingProjects: 1 /user/username/projects/myproject/test/tsconfig.json *default* -Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /user/username/projects/myproject/lib/@app/lib/index.d.ts 1:: WatchInfo: /user/username/projects/myproject/lib/@app/lib/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/myproject/test/tsconfig.json -Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/lib/@app/lib/index.d.ts 1:: WatchInfo: /user/username/projects/myproject/lib/@app/lib/index.d.ts 500 undefined WatchType: Closed Script info -Before running Timeout callback:: count: 2 -1: /user/username/projects/myproject/test/tsconfig.json -2: *ensureProjectForOpenFiles* +Before running Timeout callback:: count: 0 //// [/user/username/projects/myproject/lib/@app/lib/index.d.ts] /// declare class TestLib { @@ -312,101 +259,4 @@ declare class TestLib { } -Timeout callback:: count: 2 -1: /user/username/projects/myproject/test/tsconfig.json *new* -2: *ensureProjectForOpenFiles* *new* - -Projects:: -/user/username/projects/myproject/test/tsconfig.json (Configured) *changed* - projectStateVersion: 2 *changed* - projectProgramVersion: 1 - dirty: true *changed* - autoImportProviderHost: false - -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /user/username/projects/myproject/test/tsconfig.json -/user/username/projects/myproject/lib/@app/lib/index.d.ts *changed* - version: Text-1 - pendingReloadFromDisk: true *changed* - containingProjects: 1 - /user/username/projects/myproject/test/tsconfig.json -/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts - version: Text-1 - containingProjects: 1 - /user/username/projects/myproject/test/tsconfig.json -/user/username/projects/myproject/test/test.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /user/username/projects/myproject/test/tsconfig.json *default* - -Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/test/tsconfig.json -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/test/tsconfig.json -Info seq [hh:mm:ss:mss] Reusing resolution of type reference directive 'UpperCasePackage' from '/user/username/projects/myproject/lib/@app/lib/index.d.ts' of old program, it was successfully resolved to '/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts'. -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/projects/myproject/test/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/test/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "interface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" - /user/username/projects/myproject/test/test.ts SVC-1-0 "class TestClass1 {\n\n constructor() {\n var l = new TestLib();\n\n }\n\n public test2() {\n var x = new BrokenTest('',0,0,null);\n\n }\n}" - /user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts Text-1 "declare class BrokenTest {\n constructor(name: string, width: number, height: number, onSelect: Function);\n Name: string;\n SelectedFile: string;\n}" - /user/username/projects/myproject/lib/@app/lib/index.d.ts Text-2 "/// \ndeclare class TestLib {\n issue: BrokenTest;\n constructor();\n test2(): void;\n}" - -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 '/user/username/projects/myproject/test/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /user/username/projects/myproject/test/test.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/test/tsconfig.json -Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/test/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /user/username/projects/myproject/test/test.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/test/tsconfig.json -Info seq [hh:mm:ss:mss] got projects updated in background /user/username/projects/myproject/test/test.ts -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/test/test.ts" - ] - } - } After running Timeout callback:: count: 0 - -Projects:: -/user/username/projects/myproject/test/tsconfig.json (Configured) *changed* - projectStateVersion: 2 - projectProgramVersion: 1 - dirty: false *changed* - autoImportProviderHost: false - -ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /user/username/projects/myproject/test/tsconfig.json -/user/username/projects/myproject/lib/@app/lib/index.d.ts *changed* - version: Text-2 *changed* - pendingReloadFromDisk: false *changed* - containingProjects: 1 - /user/username/projects/myproject/test/tsconfig.json -/user/username/projects/myproject/lib/@types/UpperCasePackage/index.d.ts - version: Text-1 - containingProjects: 1 - /user/username/projects/myproject/test/tsconfig.json -/user/username/projects/myproject/test/test.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /user/username/projects/myproject/test/tsconfig.json *default* diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js index bbc144f569d49..0c473886abd72 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js @@ -29,7 +29,11 @@ Info seq [hh:mm:ss:mss] request: "command": "openExternalProject", "arguments": { "projectFileName": "/home/src/projects/project/a/app/test.csproj", - "options": {}, + "options": { + "types": [ + "*" + ] + }, "rootFiles": [ { "fileName": "/home/src/projects/project/a/b/app.js" @@ -83,7 +87,7 @@ Info seq [hh:mm:ss:mss] Files (3) ../b/app.js Root file specified for compilation ../../node_modules/@types/node/index.d.ts - Entry point for implicit type library 'node' + Entry point of type library 'node' specified in compilerOptions Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: Creating typing installer @@ -180,6 +184,9 @@ TI:: [hh:mm:ss:mss] Got install request "/home/src/projects/project/a/b/app.js" ], "compilerOptions": { + "types": [ + "*" + ], "allowNonTsExtensions": true, "noEmitForJsFiles": true }, @@ -234,6 +241,9 @@ TI:: [hh:mm:ss:mss] Sending response: "exclude": [] }, "compilerOptions": { + "types": [ + "*" + ], "allowNonTsExtensions": true, "noEmitForJsFiles": true }, @@ -254,6 +264,9 @@ Info seq [hh:mm:ss:mss] event: "exclude": [] }, "compilerOptions": { + "types": [ + "*" + ], "allowNonTsExtensions": true, "noEmitForJsFiles": true }, @@ -286,7 +299,11 @@ Info seq [hh:mm:ss:mss] event: "deferred": 0, "deferredSize": 0 }, - "compilerOptions": {}, + "compilerOptions": { + "types": [ + "" + ] + }, "typeAcquisition": { "enable": true, "include": false, diff --git a/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js b/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js index 86e24b8137987..6b3164deef019 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js @@ -63,13 +63,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /wo Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /workspaces/somerepo/src/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/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: /workspaces/somerepo/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo 0 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo 0 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/src/node_modules 1 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/src/node_modules 1 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules 1 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules 1 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo 0 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo 0 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/src 0 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /workspaces/somerepo/src 0 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules/@types/random-seed/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution @@ -92,7 +92,6 @@ Info seq [hh:mm:ss:mss] Files (3) Default library for target 'es5' ../node_modules/@types/random-seed/index.d.ts Imported via "random-seed" from file 'main.ts' - Entry point for implicit type library 'random-seed' main.ts Matched by default include pattern '**/*' @@ -320,8 +319,6 @@ After running Immedidate callback:: count: 0 Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /workspaces/somerepo/node_modules/@types/random-seed :: WatchInfo: /workspaces/somerepo/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: /workspaces/somerepo/src/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Scheduled: /workspaces/somerepo/src/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 /workspaces/somerepo/node_modules/@types/random-seed :: WatchInfo: /workspaces/somerepo/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 /workspaces/somerepo/node_modules/@types/random-seed :: WatchInfo: /workspaces/somerepo/node_modules 1 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Scheduled: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation @@ -389,10 +386,10 @@ FsWatches *deleted*:: {"inode":8} Timeout callback:: count: 4 -13: /workspaces/somerepo/src/tsconfig.json *new* -14: *ensureProjectForOpenFiles* *new* -16: timerToUpdateChildWatches *new* -18: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *new* +11: /workspaces/somerepo/src/tsconfig.json *new* +12: *ensureProjectForOpenFiles* *new* +14: timerToUpdateChildWatches *new* +16: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *new* Projects:: /workspaces/somerepo/src/tsconfig.json (Configured) *changed* @@ -432,20 +429,20 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 5 -13: /workspaces/somerepo/src/tsconfig.json -14: *ensureProjectForOpenFiles* -16: timerToUpdateChildWatches -18: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation -19: checkOne *new* +11: /workspaces/somerepo/src/tsconfig.json +12: *ensureProjectForOpenFiles* +14: timerToUpdateChildWatches +16: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation +17: checkOne *new* Before running Timeout callback:: count: 5 -13: /workspaces/somerepo/src/tsconfig.json -14: *ensureProjectForOpenFiles* -16: timerToUpdateChildWatches -18: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation -19: checkOne +11: /workspaces/somerepo/src/tsconfig.json +12: *ensureProjectForOpenFiles* +14: timerToUpdateChildWatches +16: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation +17: checkOne -Invoking Timeout callback:: timeoutId:: 19:: checkOne +Invoking Timeout callback:: timeoutId:: 17:: checkOne Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /workspaces/somerepo/src/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /workspaces/somerepo/node_modules/@types/random-seed/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /workspaces/somerepo/node_modules/@types/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution @@ -507,10 +504,10 @@ FsWatches:: {"inode":4} Timeout callback:: count: 3 -18: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *deleted* -13: /workspaces/somerepo/src/tsconfig.json -14: *ensureProjectForOpenFiles* -16: timerToUpdateChildWatches +16: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *deleted* +11: /workspaces/somerepo/src/tsconfig.json +12: *ensureProjectForOpenFiles* +14: timerToUpdateChildWatches Immedidate callback:: count: 1 3: semanticCheck *new* @@ -590,9 +587,9 @@ Info seq [hh:mm:ss:mss] event: After running Immedidate callback:: count: 0 Before running Timeout callback:: count: 3 -13: /workspaces/somerepo/src/tsconfig.json -14: *ensureProjectForOpenFiles* -16: timerToUpdateChildWatches +11: /workspaces/somerepo/src/tsconfig.json +12: *ensureProjectForOpenFiles* +14: timerToUpdateChildWatches Info seq [hh:mm:ss:mss] Running: /workspaces/somerepo/src/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -655,9 +652,9 @@ Info seq [hh:mm:ss:mss] sysLog:: Elapsed:: *ms:: onTimerToUpdateChildWatches:: After running Timeout callback:: count: 3 Timeout callback:: count: 3 -26: /workspaces/somerepo/src/tsconfig.json *new* -27: *ensureProjectForOpenFiles* *new* -28: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *new* +24: /workspaces/somerepo/src/tsconfig.json *new* +25: *ensureProjectForOpenFiles* *new* +26: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *new* Projects:: /workspaces/somerepo/src/tsconfig.json (Configured) *changed* @@ -700,11 +697,11 @@ FsWatches:: {"inode":4} Timeout callback:: count: 4 -28: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *deleted* -26: /workspaces/somerepo/src/tsconfig.json -27: *ensureProjectForOpenFiles* -31: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *new* -35: timerToUpdateChildWatches *new* +26: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *deleted* +24: /workspaces/somerepo/src/tsconfig.json +25: *ensureProjectForOpenFiles* +29: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *new* +33: timerToUpdateChildWatches *new* Info seq [hh:mm:ss:mss] request: { @@ -721,20 +718,20 @@ Info seq [hh:mm:ss:mss] request: After request Timeout callback:: count: 5 -26: /workspaces/somerepo/src/tsconfig.json -27: *ensureProjectForOpenFiles* -31: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation -35: timerToUpdateChildWatches -36: checkOne *new* +24: /workspaces/somerepo/src/tsconfig.json +25: *ensureProjectForOpenFiles* +29: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation +33: timerToUpdateChildWatches +34: checkOne *new* Before running Timeout callback:: count: 5 -26: /workspaces/somerepo/src/tsconfig.json -27: *ensureProjectForOpenFiles* -31: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation -35: timerToUpdateChildWatches -36: checkOne +24: /workspaces/somerepo/src/tsconfig.json +25: *ensureProjectForOpenFiles* +29: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation +33: timerToUpdateChildWatches +34: checkOne -Invoking Timeout callback:: timeoutId:: 36:: checkOne +Invoking Timeout callback:: timeoutId:: 34:: checkOne Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /workspaces/somerepo/src/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/node_modules/@types/random-seed/package.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: File location affecting resolution @@ -753,7 +750,6 @@ Info seq [hh:mm:ss:mss] Files (3) Default library for target 'es5' ../node_modules/@types/random-seed/index.d.ts Imported via "random-seed" from file 'main.ts' - Entry point for implicit type library 'random-seed' main.ts Matched by default include pattern '**/*' @@ -799,11 +795,11 @@ FsWatches:: {"inode":4} Timeout callback:: count: 3 -27: *ensureProjectForOpenFiles* *deleted* -31: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *deleted* -26: /workspaces/somerepo/src/tsconfig.json -35: timerToUpdateChildWatches -37: *ensureProjectForOpenFiles* *new* +25: *ensureProjectForOpenFiles* *deleted* +29: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *deleted* +24: /workspaces/somerepo/src/tsconfig.json +33: timerToUpdateChildWatches +35: *ensureProjectForOpenFiles* *new* Immedidate callback:: count: 1 5: semanticCheck *new* @@ -884,9 +880,9 @@ Info seq [hh:mm:ss:mss] event: After running Immedidate callback:: count: 0 Before running Timeout callback:: count: 3 -26: /workspaces/somerepo/src/tsconfig.json -35: timerToUpdateChildWatches -37: *ensureProjectForOpenFiles* +24: /workspaces/somerepo/src/tsconfig.json +33: timerToUpdateChildWatches +35: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Running: /workspaces/somerepo/src/tsconfig.json Info seq [hh:mm:ss:mss] sysLog:: onTimerToUpdateChildWatches:: 2 @@ -935,10 +931,10 @@ FsWatches:: {"inode":4} Timeout callback:: count: 3 -37: *ensureProjectForOpenFiles* *deleted* -39: /workspaces/somerepo/src/tsconfig.json *new* -40: *ensureProjectForOpenFiles* *new* -41: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *new* +35: *ensureProjectForOpenFiles* *deleted* +37: /workspaces/somerepo/src/tsconfig.json *new* +38: *ensureProjectForOpenFiles* *new* +39: /workspaces/somerepo/src/tsconfig.jsonFailedLookupInvalidation *new* Projects:: /workspaces/somerepo/src/tsconfig.json (Configured) *changed* diff --git a/tests/baselines/reference/typeReferenceDirectives1.trace.json b/tests/baselines/reference/typeReferenceDirectives1.trace.json index c26f57d965c16..d3d582f8eb382 100644 --- a/tests/baselines/reference/typeReferenceDirectives1.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives1.trace.json @@ -5,8 +5,5 @@ "File '/types/lib/package.json' does not exist.", "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", - "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", - "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", - "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives10.trace.json b/tests/baselines/reference/typeReferenceDirectives10.trace.json index e012935dca85a..9dca874c775da 100644 --- a/tests/baselines/reference/typeReferenceDirectives10.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives10.trace.json @@ -13,8 +13,5 @@ "File '/ref.ts' does not exist.", "File '/ref.tsx' does not exist.", "File '/ref.d.ts' exists - use it as a name resolution result.", - "======== Module name './ref' was successfully resolved to '/ref.d.ts'. ========", - "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", - "Resolution for type reference directive 'lib' was found in cache from location '/'.", - "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========" + "======== Module name './ref' was successfully resolved to '/ref.d.ts'. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives12.trace.json b/tests/baselines/reference/typeReferenceDirectives12.trace.json index fe00328926225..0b27153c33968 100644 --- a/tests/baselines/reference/typeReferenceDirectives12.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives12.trace.json @@ -20,8 +20,5 @@ "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", "======== Resolving module './main' from '/mod1.ts'. ========", "Resolution for module './main' was found in cache from location '/'.", - "======== Module name './main' was successfully resolved to '/main.ts'. ========", - "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", - "Resolution for type reference directive 'lib' was found in cache from location '/'.", - "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========" + "======== Module name './main' was successfully resolved to '/main.ts'. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives3.trace.json b/tests/baselines/reference/typeReferenceDirectives3.trace.json index c26f57d965c16..d3d582f8eb382 100644 --- a/tests/baselines/reference/typeReferenceDirectives3.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives3.trace.json @@ -5,8 +5,5 @@ "File '/types/lib/package.json' does not exist.", "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", - "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", - "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", - "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives4.trace.json b/tests/baselines/reference/typeReferenceDirectives4.trace.json index c26f57d965c16..d3d582f8eb382 100644 --- a/tests/baselines/reference/typeReferenceDirectives4.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives4.trace.json @@ -5,8 +5,5 @@ "File '/types/lib/package.json' does not exist.", "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", - "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", - "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", - "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/typeReferenceDirectives7.trace.json b/tests/baselines/reference/typeReferenceDirectives7.trace.json index c26f57d965c16..d3d582f8eb382 100644 --- a/tests/baselines/reference/typeReferenceDirectives7.trace.json +++ b/tests/baselines/reference/typeReferenceDirectives7.trace.json @@ -5,8 +5,5 @@ "File '/types/lib/package.json' does not exist.", "File '/types/lib/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/types/lib/index.d.ts', result '/types/lib/index.d.ts'.", - "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========", - "======== Resolving type reference directive 'lib', containing file '/__inferred type names__.ts'. ========", - "Resolution for type reference directive 'lib' was found in cache from location '/'.", "======== Type reference directive 'lib' was successfully resolved to '/types/lib/index.d.ts', primary: true. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json b/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json index 97d7f28e7d645..0effd5a1fd693 100644 --- a/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json +++ b/tests/baselines/reference/typeRootsFromMultipleNodeModulesDirectories.trace.json @@ -71,6 +71,13 @@ "File '/node_modules/abc.js' does not exist.", "File '/node_modules/abc.jsx' does not exist.", "======== Module name 'abc' was not resolved. ========", + "======== Resolving type reference directive 'dopey', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/bar/node_modules/@types,/foo/node_modules/@types,/node_modules/@types'. ========", + "Resolving with primary search path '/foo/bar/node_modules/@types, /foo/node_modules/@types, /node_modules/@types'.", + "Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it.", + "File '/node_modules/@types/dopey/package.json' does not exist.", + "File '/node_modules/@types/dopey/index.d.ts' exists - use it as a name resolution result.", + "Resolving real path for '/node_modules/@types/dopey/index.d.ts', result '/node_modules/@types/dopey/index.d.ts'.", + "======== Type reference directive 'dopey' was successfully resolved to '/node_modules/@types/dopey/index.d.ts', primary: true. ========", "======== Resolving type reference directive 'grumpy', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/bar/node_modules/@types,/foo/node_modules/@types,/node_modules/@types'. ========", "Resolving with primary search path '/foo/bar/node_modules/@types, /foo/node_modules/@types, /node_modules/@types'.", "Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it.", @@ -85,13 +92,10 @@ "File '/foo/node_modules/@types/sneezy/index.d.ts' exists - use it as a name resolution result.", "Resolving real path for '/foo/node_modules/@types/sneezy/index.d.ts', result '/foo/node_modules/@types/sneezy/index.d.ts'.", "======== Type reference directive 'sneezy' was successfully resolved to '/foo/node_modules/@types/sneezy/index.d.ts', primary: true. ========", - "======== Resolving type reference directive 'dopey', containing file '/foo/bar/__inferred type names__.ts', root directory '/foo/bar/node_modules/@types,/foo/node_modules/@types,/node_modules/@types'. ========", - "Resolving with primary search path '/foo/bar/node_modules/@types, /foo/node_modules/@types, /node_modules/@types'.", - "Directory '/foo/bar/node_modules/@types' does not exist, skipping all lookups in it.", - "File '/node_modules/@types/dopey/package.json' does not exist.", - "File '/node_modules/@types/dopey/index.d.ts' exists - use it as a name resolution result.", - "Resolving real path for '/node_modules/@types/dopey/index.d.ts', result '/node_modules/@types/dopey/index.d.ts'.", - "======== Type reference directive 'dopey' was successfully resolved to '/node_modules/@types/dopey/index.d.ts', primary: true. ========", + "File '/node_modules/@types/dopey/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist according to earlier cached lookups.", "File '/foo/node_modules/@types/grumpy/package.json' does not exist according to earlier cached lookups.", "File '/foo/node_modules/@types/package.json' does not exist.", "File '/foo/node_modules/package.json' does not exist.", @@ -101,9 +105,5 @@ "File '/foo/node_modules/@types/package.json' does not exist according to earlier cached lookups.", "File '/foo/node_modules/package.json' does not exist according to earlier cached lookups.", "File '/foo/package.json' does not exist according to earlier cached lookups.", - "File '/package.json' does not exist according to earlier cached lookups.", - "File '/node_modules/@types/dopey/package.json' does not exist according to earlier cached lookups.", - "File '/node_modules/@types/package.json' does not exist.", - "File '/node_modules/package.json' does not exist.", "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typecheckIfCondition.errors.txt b/tests/baselines/reference/typecheckIfCondition.errors.txt index ef675fd5cbb1e..d665c469bee96 100644 --- a/tests/baselines/reference/typecheckIfCondition.errors.txt +++ b/tests/baselines/reference/typecheckIfCondition.errors.txt @@ -1,5 +1,5 @@ -typecheckIfCondition.ts(4,10): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. -typecheckIfCondition.ts(4,26): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +typecheckIfCondition.ts(4,10): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. +typecheckIfCondition.ts(4,26): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== typecheckIfCondition.ts (2 errors) ==== @@ -8,9 +8,9 @@ typecheckIfCondition.ts(4,26): error TS2580: Cannot find name 'module'. Do you n { if (!module.exports) module.exports = ""; ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. var x = null; // don't want to baseline output } \ No newline at end of file diff --git a/tests/baselines/reference/typesOptionDefaultEmpty.js b/tests/baselines/reference/typesOptionDefaultEmpty.js new file mode 100644 index 0000000000000..fd82302b500e0 --- /dev/null +++ b/tests/baselines/reference/typesOptionDefaultEmpty.js @@ -0,0 +1,18 @@ +//// [tests/cases/compiler/typesOptionDefaultEmpty.ts] //// + +//// [index.d.ts] +declare var $: { x: number }; + +//// [index.d.ts] +declare var _: { map: any }; + +//// [app.ts] +// With the new default behavior, @types packages are not automatically included +// unless explicitly listed in the types array or imported +const value = 42; + + +//// [app.js] +// With the new default behavior, @types packages are not automatically included +// unless explicitly listed in the types array or imported +var value = 42; diff --git a/tests/baselines/reference/typesOptionDefaultEmpty.symbols b/tests/baselines/reference/typesOptionDefaultEmpty.symbols new file mode 100644 index 0000000000000..0a4ebc7a8da36 --- /dev/null +++ b/tests/baselines/reference/typesOptionDefaultEmpty.symbols @@ -0,0 +1,8 @@ +//// [tests/cases/compiler/typesOptionDefaultEmpty.ts] //// + +=== /app.ts === +// With the new default behavior, @types packages are not automatically included +// unless explicitly listed in the types array or imported +const value = 42; +>value : Symbol(value, Decl(app.ts, 2, 5)) + diff --git a/tests/baselines/reference/typesOptionDefaultEmpty.trace.json b/tests/baselines/reference/typesOptionDefaultEmpty.trace.json new file mode 100644 index 0000000000000..0637a088a01e8 --- /dev/null +++ b/tests/baselines/reference/typesOptionDefaultEmpty.trace.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/baselines/reference/typesOptionDefaultEmpty.types b/tests/baselines/reference/typesOptionDefaultEmpty.types new file mode 100644 index 0000000000000..0acb268826cf9 --- /dev/null +++ b/tests/baselines/reference/typesOptionDefaultEmpty.types @@ -0,0 +1,11 @@ +//// [tests/cases/compiler/typesOptionDefaultEmpty.ts] //// + +=== /app.ts === +// With the new default behavior, @types packages are not automatically included +// unless explicitly listed in the types array or imported +const value = 42; +>value : 42 +> : ^^ +>42 : 42 +> : ^^ + diff --git a/tests/baselines/reference/typesOptionExplicitList.errors.txt b/tests/baselines/reference/typesOptionExplicitList.errors.txt new file mode 100644 index 0000000000000..a927c4e2629c9 --- /dev/null +++ b/tests/baselines/reference/typesOptionExplicitList.errors.txt @@ -0,0 +1,21 @@ +/app.ts(5,1): error TS2304: Cannot find name '_'. + + +==== /tsconfig.json (0 errors) ==== + { "compilerOptions": { "types": ["jquery"] } } + +==== /app.ts (1 errors) ==== + // With "types": ["jquery"], only jquery is included + $.x; + + // lodash is not included, so this should error + _.map; + ~ +!!! error TS2304: Cannot find name '_'. + +==== /node_modules/@types/jquery/index.d.ts (0 errors) ==== + declare var $: { x: number }; + +==== /node_modules/@types/lodash/index.d.ts (0 errors) ==== + declare var _: { map: any }; + \ No newline at end of file diff --git a/tests/baselines/reference/typesOptionExplicitList.js b/tests/baselines/reference/typesOptionExplicitList.js new file mode 100644 index 0000000000000..0afd96752bca6 --- /dev/null +++ b/tests/baselines/reference/typesOptionExplicitList.js @@ -0,0 +1,21 @@ +//// [tests/cases/compiler/typesOptionExplicitList.ts] //// + +//// [index.d.ts] +declare var $: { x: number }; + +//// [index.d.ts] +declare var _: { map: any }; + +//// [app.ts] +// With "types": ["jquery"], only jquery is included +$.x; + +// lodash is not included, so this should error +_.map; + + +//// [app.js] +// With "types": ["jquery"], only jquery is included +$.x; +// lodash is not included, so this should error +_.map; diff --git a/tests/baselines/reference/typesOptionExplicitList.symbols b/tests/baselines/reference/typesOptionExplicitList.symbols new file mode 100644 index 0000000000000..bfaa0fc5dd5a1 --- /dev/null +++ b/tests/baselines/reference/typesOptionExplicitList.symbols @@ -0,0 +1,17 @@ +//// [tests/cases/compiler/typesOptionExplicitList.ts] //// + +=== /app.ts === +// With "types": ["jquery"], only jquery is included +$.x; +>$.x : Symbol(x, Decl(index.d.ts, 0, 16)) +>$ : Symbol($, Decl(index.d.ts, 0, 11)) +>x : Symbol(x, Decl(index.d.ts, 0, 16)) + +// lodash is not included, so this should error +_.map; + +=== /node_modules/@types/jquery/index.d.ts === +declare var $: { x: number }; +>$ : Symbol($, Decl(index.d.ts, 0, 11)) +>x : Symbol(x, Decl(index.d.ts, 0, 16)) + diff --git a/tests/baselines/reference/typesOptionExplicitList.trace.json b/tests/baselines/reference/typesOptionExplicitList.trace.json new file mode 100644 index 0000000000000..53227101f7da7 --- /dev/null +++ b/tests/baselines/reference/typesOptionExplicitList.trace.json @@ -0,0 +1,12 @@ +[ + "======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", + "Resolving with primary search path '/node_modules/@types'.", + "File '/node_modules/@types/jquery/package.json' does not exist.", + "File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result.", + "Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'.", + "======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ========", + "File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist." +] \ No newline at end of file diff --git a/tests/baselines/reference/typesOptionExplicitList.types b/tests/baselines/reference/typesOptionExplicitList.types new file mode 100644 index 0000000000000..3379d52c791ca --- /dev/null +++ b/tests/baselines/reference/typesOptionExplicitList.types @@ -0,0 +1,28 @@ +//// [tests/cases/compiler/typesOptionExplicitList.ts] //// + +=== /app.ts === +// With "types": ["jquery"], only jquery is included +$.x; +>$.x : number +> : ^^^^^^ +>$ : { x: number; } +> : ^^^^^ ^^^ +>x : number +> : ^^^^^^ + +// lodash is not included, so this should error +_.map; +>_.map : any +> : ^^^ +>_ : any +> : ^^^ +>map : any +> : ^^^ + +=== /node_modules/@types/jquery/index.d.ts === +declare var $: { x: number }; +>$ : { x: number; } +> : ^^^^^ ^^^ +>x : number +> : ^^^^^^ + diff --git a/tests/baselines/reference/typesOptionWildcard.js b/tests/baselines/reference/typesOptionWildcard.js new file mode 100644 index 0000000000000..3c9ceef04b35c --- /dev/null +++ b/tests/baselines/reference/typesOptionWildcard.js @@ -0,0 +1,20 @@ +//// [tests/cases/compiler/typesOptionWildcard.ts] //// + +//// [index.d.ts] +declare var $: { x: number }; + +//// [index.d.ts] +declare var _: { map: any }; + +//// [app.ts] +// With "types": ["*"], all @types packages are automatically included +// This is the opt-in to the old behavior +$.x; +_.map; + + +//// [app.js] +// With "types": ["*"], all @types packages are automatically included +// This is the opt-in to the old behavior +$.x; +_.map; diff --git a/tests/baselines/reference/typesOptionWildcard.symbols b/tests/baselines/reference/typesOptionWildcard.symbols new file mode 100644 index 0000000000000..4d31a30ec7d95 --- /dev/null +++ b/tests/baselines/reference/typesOptionWildcard.symbols @@ -0,0 +1,25 @@ +//// [tests/cases/compiler/typesOptionWildcard.ts] //// + +=== /app.ts === +// With "types": ["*"], all @types packages are automatically included +// This is the opt-in to the old behavior +$.x; +>$.x : Symbol(x, Decl(index.d.ts, 0, 16)) +>$ : Symbol($, Decl(index.d.ts, 0, 11)) +>x : Symbol(x, Decl(index.d.ts, 0, 16)) + +_.map; +>_.map : Symbol(map, Decl(index.d.ts, 0, 16)) +>_ : Symbol(_, Decl(index.d.ts, 0, 11)) +>map : Symbol(map, Decl(index.d.ts, 0, 16)) + +=== /node_modules/@types/jquery/index.d.ts === +declare var $: { x: number }; +>$ : Symbol($, Decl(index.d.ts, 0, 11)) +>x : Symbol(x, Decl(index.d.ts, 0, 16)) + +=== /node_modules/@types/lodash/index.d.ts === +declare var _: { map: any }; +>_ : Symbol(_, Decl(index.d.ts, 0, 11)) +>map : Symbol(map, Decl(index.d.ts, 0, 16)) + diff --git a/tests/baselines/reference/typesOptionWildcard.trace.json b/tests/baselines/reference/typesOptionWildcard.trace.json new file mode 100644 index 0000000000000..1934501dac3cf --- /dev/null +++ b/tests/baselines/reference/typesOptionWildcard.trace.json @@ -0,0 +1,22 @@ +[ + "======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", + "Resolving with primary search path '/node_modules/@types'.", + "File '/node_modules/@types/jquery/package.json' does not exist.", + "File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result.", + "Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'.", + "======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ========", + "======== Resolving type reference directive 'lodash', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", + "Resolving with primary search path '/node_modules/@types'.", + "File '/node_modules/@types/lodash/package.json' does not exist.", + "File '/node_modules/@types/lodash/index.d.ts' exists - use it as a name resolution result.", + "Resolving real path for '/node_modules/@types/lodash/index.d.ts', result '/node_modules/@types/lodash/index.d.ts'.", + "======== Type reference directive 'lodash' was successfully resolved to '/node_modules/@types/lodash/index.d.ts', primary: true. ========", + "File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/node_modules/@types/lodash/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." +] \ No newline at end of file diff --git a/tests/baselines/reference/typesOptionWildcard.types b/tests/baselines/reference/typesOptionWildcard.types new file mode 100644 index 0000000000000..37fcf5c0d96d5 --- /dev/null +++ b/tests/baselines/reference/typesOptionWildcard.types @@ -0,0 +1,33 @@ +//// [tests/cases/compiler/typesOptionWildcard.ts] //// + +=== /app.ts === +// With "types": ["*"], all @types packages are automatically included +// This is the opt-in to the old behavior +$.x; +>$.x : number +> : ^^^^^^ +>$ : { x: number; } +> : ^^^^^ ^^^ +>x : number +> : ^^^^^^ + +_.map; +>_.map : any +>_ : { map: any; } +> : ^^^^^^^ ^^^ +>map : any +> : ^^^ + +=== /node_modules/@types/jquery/index.d.ts === +declare var $: { x: number }; +>$ : { x: number; } +> : ^^^^^ ^^^ +>x : number +> : ^^^^^^ + +=== /node_modules/@types/lodash/index.d.ts === +declare var _: { map: any }; +>_ : { map: any; } +> : ^^^^^^^ ^^^ +>map : any + diff --git a/tests/baselines/reference/typesOptionWildcardWithExplicit.errors.txt b/tests/baselines/reference/typesOptionWildcardWithExplicit.errors.txt new file mode 100644 index 0000000000000..4da554078f594 --- /dev/null +++ b/tests/baselines/reference/typesOptionWildcardWithExplicit.errors.txt @@ -0,0 +1,25 @@ +error TS2688: Cannot find type definition file for 'extra'. + The file is in the program because: + Entry point of type library 'extra' specified in compilerOptions + + +!!! error TS2688: Cannot find type definition file for 'extra'. +!!! error TS2688: The file is in the program because: +!!! error TS2688: Entry point of type library 'extra' specified in compilerOptions +!!! related TS1419 /tsconfig.json:1:39: File is entry point of type library specified here. +==== /tsconfig.json (0 errors) ==== + { "compilerOptions": { "types": ["*", "extra"] } } + +==== /app.ts (0 errors) ==== + // With "types": ["*", "extra"], all @types packages are automatically included + // plus any explicitly listed types (even if they don't exist in @types) + // This is useful for gradual migration + $.x; + _.map; + +==== /node_modules/@types/jquery/index.d.ts (0 errors) ==== + declare var $: { x: number }; + +==== /node_modules/@types/lodash/index.d.ts (0 errors) ==== + declare var _: { map: any }; + \ No newline at end of file diff --git a/tests/baselines/reference/typesOptionWildcardWithExplicit.js b/tests/baselines/reference/typesOptionWildcardWithExplicit.js new file mode 100644 index 0000000000000..dcdd300cfcb6d --- /dev/null +++ b/tests/baselines/reference/typesOptionWildcardWithExplicit.js @@ -0,0 +1,22 @@ +//// [tests/cases/compiler/typesOptionWildcardWithExplicit.ts] //// + +//// [index.d.ts] +declare var $: { x: number }; + +//// [index.d.ts] +declare var _: { map: any }; + +//// [app.ts] +// With "types": ["*", "extra"], all @types packages are automatically included +// plus any explicitly listed types (even if they don't exist in @types) +// This is useful for gradual migration +$.x; +_.map; + + +//// [app.js] +// With "types": ["*", "extra"], all @types packages are automatically included +// plus any explicitly listed types (even if they don't exist in @types) +// This is useful for gradual migration +$.x; +_.map; diff --git a/tests/baselines/reference/typesOptionWildcardWithExplicit.symbols b/tests/baselines/reference/typesOptionWildcardWithExplicit.symbols new file mode 100644 index 0000000000000..509d17f328aea --- /dev/null +++ b/tests/baselines/reference/typesOptionWildcardWithExplicit.symbols @@ -0,0 +1,26 @@ +//// [tests/cases/compiler/typesOptionWildcardWithExplicit.ts] //// + +=== /app.ts === +// With "types": ["*", "extra"], all @types packages are automatically included +// plus any explicitly listed types (even if they don't exist in @types) +// This is useful for gradual migration +$.x; +>$.x : Symbol(x, Decl(index.d.ts, 0, 16)) +>$ : Symbol($, Decl(index.d.ts, 0, 11)) +>x : Symbol(x, Decl(index.d.ts, 0, 16)) + +_.map; +>_.map : Symbol(map, Decl(index.d.ts, 0, 16)) +>_ : Symbol(_, Decl(index.d.ts, 0, 11)) +>map : Symbol(map, Decl(index.d.ts, 0, 16)) + +=== /node_modules/@types/jquery/index.d.ts === +declare var $: { x: number }; +>$ : Symbol($, Decl(index.d.ts, 0, 11)) +>x : Symbol(x, Decl(index.d.ts, 0, 16)) + +=== /node_modules/@types/lodash/index.d.ts === +declare var _: { map: any }; +>_ : Symbol(_, Decl(index.d.ts, 0, 11)) +>map : Symbol(map, Decl(index.d.ts, 0, 16)) + diff --git a/tests/baselines/reference/typesOptionWildcardWithExplicit.trace.json b/tests/baselines/reference/typesOptionWildcardWithExplicit.trace.json new file mode 100644 index 0000000000000..01094f97ac3a7 --- /dev/null +++ b/tests/baselines/reference/typesOptionWildcardWithExplicit.trace.json @@ -0,0 +1,29 @@ +[ + "======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", + "Resolving with primary search path '/node_modules/@types'.", + "File '/node_modules/@types/jquery/package.json' does not exist.", + "File '/node_modules/@types/jquery/index.d.ts' exists - use it as a name resolution result.", + "Resolving real path for '/node_modules/@types/jquery/index.d.ts', result '/node_modules/@types/jquery/index.d.ts'.", + "======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ========", + "======== Resolving type reference directive 'lodash', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", + "Resolving with primary search path '/node_modules/@types'.", + "File '/node_modules/@types/lodash/package.json' does not exist.", + "File '/node_modules/@types/lodash/index.d.ts' exists - use it as a name resolution result.", + "Resolving real path for '/node_modules/@types/lodash/index.d.ts', result '/node_modules/@types/lodash/index.d.ts'.", + "======== Type reference directive 'lodash' was successfully resolved to '/node_modules/@types/lodash/index.d.ts', primary: true. ========", + "======== Resolving type reference directive 'extra', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", + "Resolving with primary search path '/node_modules/@types'.", + "Looking up in 'node_modules' folder, initial location '/'.", + "Searching all ancestor node_modules directories for preferred extensions: Declaration.", + "File '/node_modules/extra.d.ts' does not exist.", + "File '/node_modules/@types/extra.d.ts' does not exist.", + "======== Type reference directive 'extra' was not resolved. ========", + "File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist.", + "File '/node_modules/package.json' does not exist.", + "File '/package.json' does not exist.", + "File '/node_modules/@types/lodash/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/@types/package.json' does not exist according to earlier cached lookups.", + "File '/node_modules/package.json' does not exist according to earlier cached lookups.", + "File '/package.json' does not exist according to earlier cached lookups." +] \ No newline at end of file diff --git a/tests/baselines/reference/typesOptionWildcardWithExplicit.types b/tests/baselines/reference/typesOptionWildcardWithExplicit.types new file mode 100644 index 0000000000000..495b8184e5b2e --- /dev/null +++ b/tests/baselines/reference/typesOptionWildcardWithExplicit.types @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/typesOptionWildcardWithExplicit.ts] //// + +=== /app.ts === +// With "types": ["*", "extra"], all @types packages are automatically included +// plus any explicitly listed types (even if they don't exist in @types) +// This is useful for gradual migration +$.x; +>$.x : number +> : ^^^^^^ +>$ : { x: number; } +> : ^^^^^ ^^^ +>x : number +> : ^^^^^^ + +_.map; +>_.map : any +> : ^^^ +>_ : { map: any; } +> : ^^^^^^^ ^^^ +>map : any +> : ^^^ + +=== /node_modules/@types/jquery/index.d.ts === +declare var $: { x: number }; +>$ : { x: number; } +> : ^^^^^ ^^^ +>x : number +> : ^^^^^^ + +=== /node_modules/@types/lodash/index.d.ts === +declare var _: { map: any }; +>_ : { map: any; } +> : ^^^^^^^ ^^^ +>map : any +> : ^^^ + diff --git a/tests/baselines/reference/typingsLookup1.trace.json b/tests/baselines/reference/typingsLookup1.trace.json index ef7b5ed7141b9..d54a0e28bb4ae 100644 --- a/tests/baselines/reference/typingsLookup1.trace.json +++ b/tests/baselines/reference/typingsLookup1.trace.json @@ -8,8 +8,5 @@ "File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups.", "File '/node_modules/@types/package.json' does not exist.", "File '/node_modules/package.json' does not exist.", - "File '/package.json' does not exist.", - "======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts'. ========", - "Resolution for type reference directive 'jquery' was found in cache from location '/'.", - "======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/index.d.ts', primary: true. ========" + "File '/package.json' does not exist." ] \ No newline at end of file diff --git a/tests/baselines/reference/typingsLookup3.errors.txt b/tests/baselines/reference/typingsLookup3.errors.txt index 5073cb549393c..699d5375bc071 100644 --- a/tests/baselines/reference/typingsLookup3.errors.txt +++ b/tests/baselines/reference/typingsLookup3.errors.txt @@ -2,7 +2,7 @@ ==== /tsconfig.json (0 errors) ==== - { "files": "a.ts" } + { "files": "a.ts", "compilerOptions": { "types": ["jquery"] } } ==== /a.ts (1 errors) ==== /// diff --git a/tests/baselines/reference/typingsLookup4.trace.json b/tests/baselines/reference/typingsLookup4.trace.json index 23c9c5c1ede55..98e5097c83591 100644 --- a/tests/baselines/reference/typingsLookup4.trace.json +++ b/tests/baselines/reference/typingsLookup4.trace.json @@ -76,42 +76,5 @@ "File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups.", "File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups.", "File '/node_modules/@types/mquery/mquery/package.json' does not exist.", - "File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups.", - "======== Resolving type reference directive 'jquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", - "Resolving with primary search path '/node_modules/@types'.", - "File '/node_modules/@types/jquery/package.json' exists according to earlier cached lookups.", - "'package.json' has 'typings' field 'jquery.d.ts' that references '/node_modules/@types/jquery/jquery.d.ts'.", - "File '/node_modules/@types/jquery/jquery.d.ts' exists - use it as a name resolution result.", - "Resolving real path for '/node_modules/@types/jquery/jquery.d.ts', result '/node_modules/@types/jquery/jquery.d.ts'.", - "======== Type reference directive 'jquery' was successfully resolved to '/node_modules/@types/jquery/jquery.d.ts', primary: true. ========", - "======== Resolving type reference directive 'kquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", - "Resolving with primary search path '/node_modules/@types'.", - "File '/node_modules/@types/kquery/package.json' exists according to earlier cached lookups.", - "'package.json' has 'typings' field 'kquery' that references '/node_modules/@types/kquery/kquery'.", - "Loading module as file / folder, candidate module location '/node_modules/@types/kquery/kquery', target file types: TypeScript, Declaration.", - "File '/node_modules/@types/kquery/kquery.ts' does not exist.", - "File '/node_modules/@types/kquery/kquery.tsx' does not exist.", - "File '/node_modules/@types/kquery/kquery.d.ts' exists - use it as a name resolution result.", - "Resolving real path for '/node_modules/@types/kquery/kquery.d.ts', result '/node_modules/@types/kquery/kquery.d.ts'.", - "======== Type reference directive 'kquery' was successfully resolved to '/node_modules/@types/kquery/kquery.d.ts', primary: true. ========", - "======== Resolving type reference directive 'lquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", - "Resolving with primary search path '/node_modules/@types'.", - "File '/node_modules/@types/lquery/package.json' exists according to earlier cached lookups.", - "'package.json' has 'typings' field 'lquery' that references '/node_modules/@types/lquery/lquery'.", - "Loading module as file / folder, candidate module location '/node_modules/@types/lquery/lquery', target file types: TypeScript, Declaration.", - "File '/node_modules/@types/lquery/lquery.ts' exists - use it as a name resolution result.", - "Resolving real path for '/node_modules/@types/lquery/lquery.ts', result '/node_modules/@types/lquery/lquery.ts'.", - "======== Type reference directive 'lquery' was successfully resolved to '/node_modules/@types/lquery/lquery.ts', primary: true. ========", - "======== Resolving type reference directive 'mquery', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", - "Resolving with primary search path '/node_modules/@types'.", - "File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups.", - "'package.json' has 'typings' field 'mquery' that references '/node_modules/@types/mquery/mquery'.", - "Loading module as file / folder, candidate module location '/node_modules/@types/mquery/mquery', target file types: TypeScript, Declaration.", - "File '/node_modules/@types/mquery/mquery.ts' does not exist.", - "File '/node_modules/@types/mquery/mquery.tsx' does not exist.", - "File '/node_modules/@types/mquery/mquery.d.ts' does not exist.", - "File '/node_modules/@types/mquery/mquery/index.ts' does not exist.", - "File '/node_modules/@types/mquery/mquery/index.tsx' exists - use it as a name resolution result.", - "Resolving real path for '/node_modules/@types/mquery/mquery/index.tsx', result '/node_modules/@types/mquery/mquery/index.tsx'.", - "======== Type reference directive 'mquery' was successfully resolved to '/node_modules/@types/mquery/mquery/index.tsx', primary: true. ========" + "File '/node_modules/@types/mquery/package.json' exists according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typingsLookupAmd.trace.json b/tests/baselines/reference/typingsLookupAmd.trace.json index f266972bda70c..1c0b47797a16b 100644 --- a/tests/baselines/reference/typingsLookupAmd.trace.json +++ b/tests/baselines/reference/typingsLookupAmd.trace.json @@ -51,11 +51,5 @@ "File '/node_modules/@types/a/package.json' does not exist according to earlier cached lookups.", "File '/node_modules/@types/package.json' does not exist.", "File '/node_modules/package.json' does not exist.", - "File '/package.json' does not exist according to earlier cached lookups.", - "======== Resolving type reference directive 'a', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========", - "Resolving with primary search path '/node_modules/@types'.", - "File '/node_modules/@types/a/package.json' does not exist according to earlier cached lookups.", - "File '/node_modules/@types/a/index.d.ts' exists - use it as a name resolution result.", - "Resolving real path for '/node_modules/@types/a/index.d.ts', result '/node_modules/@types/a/index.d.ts'.", - "======== Type reference directive 'a' was successfully resolved to '/node_modules/@types/a/index.d.ts', primary: true. ========" + "File '/package.json' does not exist according to earlier cached lookups." ] \ No newline at end of file diff --git a/tests/baselines/reference/typingsSuggestion2.errors.txt b/tests/baselines/reference/typingsSuggestion2.errors.txt index c166630f3d507..0e77b57554200 100644 --- a/tests/baselines/reference/typingsSuggestion2.errors.txt +++ b/tests/baselines/reference/typingsSuggestion2.errors.txt @@ -1,4 +1,4 @@ -a.ts(1,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +a.ts(1,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== tsconfig.json (0 errors) ==== @@ -7,5 +7,5 @@ a.ts(1,1): error TS2580: Cannot find name 'module'. Do you need to install type ==== a.ts (1 errors) ==== module.exports = 1; ~~~~~~ -!!! error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. +!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. \ No newline at end of file diff --git a/tests/baselines/reference/typingsSuggestionBun2.errors.txt b/tests/baselines/reference/typingsSuggestionBun2.errors.txt index 309dc7e05b313..ff8eedab8ab3a 100644 --- a/tests/baselines/reference/typingsSuggestionBun2.errors.txt +++ b/tests/baselines/reference/typingsSuggestionBun2.errors.txt @@ -1,4 +1,4 @@ -a.ts(1,14): error TS2867: Cannot find name 'Bun'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`. +a.ts(1,14): error TS2868: Cannot find name 'Bun'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig. ==== tsconfig.json (0 errors) ==== @@ -7,5 +7,5 @@ a.ts(1,14): error TS2867: Cannot find name 'Bun'. Do you need to install type de ==== a.ts (1 errors) ==== const file = Bun.file("/a.ts"); ~~~ -!!! error TS2867: Cannot find name 'Bun'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`. +!!! error TS2868: Cannot find name 'Bun'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig. \ No newline at end of file diff --git a/tests/cases/compiler/moduleResolution_automaticTypeDirectiveNames.ts b/tests/cases/compiler/moduleResolution_automaticTypeDirectiveNames.ts index b5baa1bbe1643..b4343dbaf4db9 100644 --- a/tests/cases/compiler/moduleResolution_automaticTypeDirectiveNames.ts +++ b/tests/cases/compiler/moduleResolution_automaticTypeDirectiveNames.ts @@ -1,4 +1,5 @@ // @noImplicitReferences: true +// @types: a // @Filename: /node_modules/@types/.a/index.d.ts declare const a: number; diff --git a/tests/cases/compiler/referenceTypesPreferedToPathIfPossible.ts b/tests/cases/compiler/referenceTypesPreferedToPathIfPossible.ts index deabc4d0ac44e..47a1e5fbc4f30 100644 --- a/tests/cases/compiler/referenceTypesPreferedToPathIfPossible.ts +++ b/tests/cases/compiler/referenceTypesPreferedToPathIfPossible.ts @@ -1,5 +1,6 @@ // @declaration: true // @noImplicitReferences: true +// @types: node // @filename: /.src/node_modules/@types/node/index.d.ts declare module "url" { export class Url {} diff --git a/tests/cases/compiler/typeReferenceDirectives13.ts b/tests/cases/compiler/typeReferenceDirectives13.ts index c8a0d40df5cfc..b37dd50e143aa 100644 --- a/tests/cases/compiler/typeReferenceDirectives13.ts +++ b/tests/cases/compiler/typeReferenceDirectives13.ts @@ -4,6 +4,7 @@ // @typeRoots: /types // @traceResolution: true // @currentDirectory: / +// @types: lib // @filename: /ref.d.ts export interface $ { x } diff --git a/tests/cases/compiler/typeReferenceDirectives5.ts b/tests/cases/compiler/typeReferenceDirectives5.ts index dad75ff02f17c..0051a29552f13 100644 --- a/tests/cases/compiler/typeReferenceDirectives5.ts +++ b/tests/cases/compiler/typeReferenceDirectives5.ts @@ -4,6 +4,7 @@ // @declaration: true // @typeRoots: /types // @currentDirectory: / +// @types: lib // @filename: /ref.d.ts export interface $ { x } diff --git a/tests/cases/compiler/typeReferenceDirectives6.ts b/tests/cases/compiler/typeReferenceDirectives6.ts index eb759e2923263..6b0820c44f1f9 100644 --- a/tests/cases/compiler/typeReferenceDirectives6.ts +++ b/tests/cases/compiler/typeReferenceDirectives6.ts @@ -4,6 +4,7 @@ // @declaration: true // @typeRoots: /types // @currentDirectory: / +// @types: lib // $ comes from type declaration file - type reference directive should be added diff --git a/tests/cases/compiler/typeReferenceDirectives9.ts b/tests/cases/compiler/typeReferenceDirectives9.ts index e497e0af2ee68..c71b66a08be90 100644 --- a/tests/cases/compiler/typeReferenceDirectives9.ts +++ b/tests/cases/compiler/typeReferenceDirectives9.ts @@ -4,6 +4,7 @@ // @typeRoots: /types // @traceResolution: true // @currentDirectory: / +// @types: lib // @filename: /types/lib/index.d.ts diff --git a/tests/cases/compiler/typeRootsFromMultipleNodeModulesDirectories.ts b/tests/cases/compiler/typeRootsFromMultipleNodeModulesDirectories.ts index b7f194706a8bd..fbdfcbedd9661 100644 --- a/tests/cases/compiler/typeRootsFromMultipleNodeModulesDirectories.ts +++ b/tests/cases/compiler/typeRootsFromMultipleNodeModulesDirectories.ts @@ -24,4 +24,4 @@ import { z } from "abc"; x + y + z; // @Filename: /foo/bar/tsconfig.json -{} +{ "compilerOptions": { "types": ["dopey", "grumpy", "sneezy"] } } diff --git a/tests/cases/compiler/typeRootsFromNodeModulesInParentDirectory.ts b/tests/cases/compiler/typeRootsFromNodeModulesInParentDirectory.ts index 59b7d6a3188cb..e05d2be1da7ae 100644 --- a/tests/cases/compiler/typeRootsFromNodeModulesInParentDirectory.ts +++ b/tests/cases/compiler/typeRootsFromNodeModulesInParentDirectory.ts @@ -12,4 +12,4 @@ import { x } from "xyz"; x; // @Filename: /src/tsconfig.json -{} +{ "compilerOptions": { "types": ["foo"] } } diff --git a/tests/cases/compiler/typesOptionDefaultEmpty.ts b/tests/cases/compiler/typesOptionDefaultEmpty.ts new file mode 100644 index 0000000000000..9e49215bd9bc6 --- /dev/null +++ b/tests/cases/compiler/typesOptionDefaultEmpty.ts @@ -0,0 +1,17 @@ +// @traceResolution: true +// @noImplicitReferences: true +// @currentDirectory: / + +// @filename: /tsconfig.json +{} + +// @filename: /node_modules/@types/jquery/index.d.ts +declare var $: { x: number }; + +// @filename: /node_modules/@types/lodash/index.d.ts +declare var _: { map: any }; + +// @filename: /app.ts +// With the new default behavior, @types packages are not automatically included +// unless explicitly listed in the types array or imported +const value = 42; diff --git a/tests/cases/compiler/typesOptionExplicitList.ts b/tests/cases/compiler/typesOptionExplicitList.ts new file mode 100644 index 0000000000000..3a699bb8fafcc --- /dev/null +++ b/tests/cases/compiler/typesOptionExplicitList.ts @@ -0,0 +1,19 @@ +// @traceResolution: true +// @noImplicitReferences: true +// @currentDirectory: / + +// @filename: /tsconfig.json +{ "compilerOptions": { "types": ["jquery"] } } + +// @filename: /node_modules/@types/jquery/index.d.ts +declare var $: { x: number }; + +// @filename: /node_modules/@types/lodash/index.d.ts +declare var _: { map: any }; + +// @filename: /app.ts +// With "types": ["jquery"], only jquery is included +$.x; + +// lodash is not included, so this should error +_.map; diff --git a/tests/cases/compiler/typesOptionWildcard.ts b/tests/cases/compiler/typesOptionWildcard.ts new file mode 100644 index 0000000000000..165b6e30f0321 --- /dev/null +++ b/tests/cases/compiler/typesOptionWildcard.ts @@ -0,0 +1,18 @@ +// @traceResolution: true +// @noImplicitReferences: true +// @currentDirectory: / + +// @filename: /tsconfig.json +{ "compilerOptions": { "types": ["*"] } } + +// @filename: /node_modules/@types/jquery/index.d.ts +declare var $: { x: number }; + +// @filename: /node_modules/@types/lodash/index.d.ts +declare var _: { map: any }; + +// @filename: /app.ts +// With "types": ["*"], all @types packages are automatically included +// This is the opt-in to the old behavior +$.x; +_.map; diff --git a/tests/cases/compiler/typesOptionWildcardWithExplicit.ts b/tests/cases/compiler/typesOptionWildcardWithExplicit.ts new file mode 100644 index 0000000000000..6a122b1ec1c9b --- /dev/null +++ b/tests/cases/compiler/typesOptionWildcardWithExplicit.ts @@ -0,0 +1,19 @@ +// @traceResolution: true +// @noImplicitReferences: true +// @currentDirectory: / + +// @filename: /tsconfig.json +{ "compilerOptions": { "types": ["*", "extra"] } } + +// @filename: /node_modules/@types/jquery/index.d.ts +declare var $: { x: number }; + +// @filename: /node_modules/@types/lodash/index.d.ts +declare var _: { map: any }; + +// @filename: /app.ts +// With "types": ["*", "extra"], all @types packages are automatically included +// plus any explicitly listed types (even if they don't exist in @types) +// This is useful for gradual migration +$.x; +_.map; diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts index 5d96e640242e4..c73ec827f327d 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences.ts @@ -3,6 +3,7 @@ // @target: es5 // @outDir: tests/cases/conformance/jsdoc/declarations/out // @declaration: true +// @types: node // @filename: node_modules/@types/node/index.d.ts declare module "fs" { export class Something {} diff --git a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts index a78ca90d3b728..826d554cc6d08 100644 --- a/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts +++ b/tests/cases/conformance/jsdoc/declarations/jsDeclarationsTypeReferences3.ts @@ -3,6 +3,7 @@ // @target: es5 // @outDir: tests/cases/conformance/jsdoc/declarations/out // @declaration: true +// @types: node // @filename: node_modules/@types/node/index.d.ts declare module "fs" { export class Something {} diff --git a/tests/cases/conformance/typings/typingsLookup3.ts b/tests/cases/conformance/typings/typingsLookup3.ts index 62ac683ba2a45..52be6a82337cd 100644 --- a/tests/cases/conformance/typings/typingsLookup3.ts +++ b/tests/cases/conformance/typings/typingsLookup3.ts @@ -4,7 +4,7 @@ // This tests that `types` references are not lowercased. // @filename: /tsconfig.json -{ "files": "a.ts" } +{ "files": "a.ts", "compilerOptions": { "types": ["jquery"] } } // @filename: /node_modules/@types/jquery/index.d.ts declare var $: { x: any }; diff --git a/tests/cases/fourslash/completionsImport_umdModules1_globalAccess.ts b/tests/cases/fourslash/completionsImport_umdModules1_globalAccess.ts index 3e2225ec8c12a..6a54a3daa14a9 100644 --- a/tests/cases/fourslash/completionsImport_umdModules1_globalAccess.ts +++ b/tests/cases/fourslash/completionsImport_umdModules1_globalAccess.ts @@ -4,7 +4,7 @@ //// { "dependencies": { "@types/classnames": "*" } } // @filename: /tsconfig.json -//// { "compilerOptions": { "allowUmdGlobalAccess": true } } +//// { "compilerOptions": { "allowUmdGlobalAccess": true, "types": ["classnames"] } } // @filename: /node_modules/@types/classnames/package.json //// { "name": "@types/classnames", "types": "index.d.ts" } diff --git a/tests/cases/fourslash/completionsImport_umdModules2_moduleExports.ts b/tests/cases/fourslash/completionsImport_umdModules2_moduleExports.ts index c4a12dd453981..6f06ec6b721fb 100644 --- a/tests/cases/fourslash/completionsImport_umdModules2_moduleExports.ts +++ b/tests/cases/fourslash/completionsImport_umdModules2_moduleExports.ts @@ -4,7 +4,7 @@ //// { "dependencies": { "@types/classnames": "*" } } // @filename: /tsconfig.json -//// {} +//// { "compilerOptions": { "types": ["classnames"] } } // @filename: /node_modules/@types/classnames/package.json //// { "name": "@types/classnames", "types": "index.d.ts" } diff --git a/tests/cases/fourslash/completionsImport_umdModules3_script.ts b/tests/cases/fourslash/completionsImport_umdModules3_script.ts index cdcf6da2287ea..ff817d81358ae 100644 --- a/tests/cases/fourslash/completionsImport_umdModules3_script.ts +++ b/tests/cases/fourslash/completionsImport_umdModules3_script.ts @@ -4,7 +4,7 @@ //// { "dependencies": { "@types/classnames": "*" } } // @filename: /tsconfig.json -//// { "compilerOptions": { "module": "es2015" }} +//// { "compilerOptions": { "module": "es2015", "types": ["classnames"] }} // @filename: /node_modules/@types/classnames/package.json //// { "name": "@types/classnames", "types": "index.d.ts" } diff --git a/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport3.ts b/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport3.ts index 5b71a495d5196..7e2419eefba62 100644 --- a/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport3.ts +++ b/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport3.ts @@ -1,6 +1,7 @@ /// -// @module: preserve +// @Filename: /home/src/workspaces/project/tsconfig.json +//// { "compilerOptions": { "types": ["node"], "module": "preserve" } } // @Filename: /home/src/workspaces/project/node_modules/@types/node/index.d.ts //// declare module "node:fs" { diff --git a/tests/cases/fourslash/server/autoImportProvider6.ts b/tests/cases/fourslash/server/autoImportProvider6.ts index 1e78cd44e858c..737047ad5e1d3 100644 --- a/tests/cases/fourslash/server/autoImportProvider6.ts +++ b/tests/cases/fourslash/server/autoImportProvider6.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs", "lib": ["es2019"] } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es2019"], "types": ["react"] } } // @Filename: /home/src/workspaces/project/package.json //// { "dependencies": { "antd": "*", "react": "*" } } diff --git a/tests/cases/fourslash/server/autoImportReExportFromAmbientModule.ts b/tests/cases/fourslash/server/autoImportReExportFromAmbientModule.ts index 281f4eb8d33a3..18ae68cd6d1b7 100644 --- a/tests/cases/fourslash/server/autoImportReExportFromAmbientModule.ts +++ b/tests/cases/fourslash/server/autoImportReExportFromAmbientModule.ts @@ -3,7 +3,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "commonjs" +//// "module": "commonjs", +//// "types": ["node", "fs-extra"] //// } //// } diff --git a/tests/cases/fourslash/server/importNameCodeFix_pnpm1.ts b/tests/cases/fourslash/server/importNameCodeFix_pnpm1.ts index a412649767e16..0bf1d0730fb3f 100644 --- a/tests/cases/fourslash/server/importNameCodeFix_pnpm1.ts +++ b/tests/cases/fourslash/server/importNameCodeFix_pnpm1.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "types": ["react"] } } // @Filename: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts //// export declare function Component(): void; diff --git a/tests/cases/fourslash/server/importStatementCompletions_pnpm1.ts b/tests/cases/fourslash/server/importStatementCompletions_pnpm1.ts index 7e6a498959509..b433d987f0d41 100644 --- a/tests/cases/fourslash/server/importStatementCompletions_pnpm1.ts +++ b/tests/cases/fourslash/server/importStatementCompletions_pnpm1.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "types": ["react"] } } // @Filename: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts //// export declare function Component(): void; diff --git a/tests/cases/fourslash/server/importSuggestionsCache_coreNodeModules.ts b/tests/cases/fourslash/server/importSuggestionsCache_coreNodeModules.ts index a636e93f0e89c..aae01a6a721f3 100644 --- a/tests/cases/fourslash/server/importSuggestionsCache_coreNodeModules.ts +++ b/tests/cases/fourslash/server/importSuggestionsCache_coreNodeModules.ts @@ -8,7 +8,8 @@ //// "checkJs": true, //// "typeRoots": [ //// "node_modules/@types" -//// ] +//// ], +//// "types": ["node"] //// }, //// "include": ["**/*"], //// "typeAcquisition": { diff --git a/tests/cases/fourslash/server/importSuggestionsCache_invalidPackageJson.ts b/tests/cases/fourslash/server/importSuggestionsCache_invalidPackageJson.ts index 0f313a071ff87..a89394d8856fb 100644 --- a/tests/cases/fourslash/server/importSuggestionsCache_invalidPackageJson.ts +++ b/tests/cases/fourslash/server/importSuggestionsCache_invalidPackageJson.ts @@ -4,6 +4,7 @@ ////{ //// "compilerOptions": { //// "module": "commonjs", +//// "types": ["node"] //// }, ////}