diff --git a/src/compiler/resolutionCache.ts b/src/compiler/resolutionCache.ts index 902f34a39be01..1f36465f810fe 100644 --- a/src/compiler/resolutionCache.ts +++ b/src/compiler/resolutionCache.ts @@ -15,7 +15,6 @@ import { emptyArray, endsWith, Extension, - extensionIsTS, fileExtensionIs, FileReference, FileWatcher, @@ -82,6 +81,14 @@ export interface HasInvalidatedFromResolutionCache { hasInvalidatedResolutions: HasInvalidatedResolutions; hasInvalidatedLibResolutions: HasInvalidatedLibResolutions; } +/** @internal */ +export type CallbackOnNewResolution = ( + existing: T | undefined, + current: T, + path: Path, + name: string, + mode: ResolutionMode, +) => void; /** * This is the cache of module/typedirectives resolution that can be retained across program * @@ -99,8 +106,8 @@ export interface ResolutionCache { fileWatchesOfAffectingLocations: Map; packageDirWatchers: Map; dirPathToSymlinkPackageRefCount: Map; - startRecordingFilesWithChangedResolutions(): void; - finishRecordingFilesWithChangedResolutions(): Path[] | undefined; + countResolutionsResolvedWithGlobalCache(): number; + countResolutionsResolvedWithoutGlobalCache(): number; watchFailedLookupLocationsOfExternalModuleResolutions( name: string, @@ -117,6 +124,7 @@ export interface ResolutionCache { options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined, + onNewResolution?: CallbackOnNewResolution, ): readonly ResolvedModuleWithFailedLookupLocations[]; resolveTypeReferenceDirectiveReferences( typeDirectiveReferences: readonly T[], @@ -138,16 +146,17 @@ export interface ResolutionCache { ): ResolvedModuleWithFailedLookupLocations; invalidateResolutionsOfFailedLookupLocations(): boolean; + invalidateResolutionsWithGlobalCachePass(): void; + invalidateResolutionsWithoutGlobalCachePass(): void; + invalidateUnresolvedResolutionsWithGlobalCachePass(): void; invalidateResolutionOfFile(filePath: Path): void; removeResolutionsOfFile(filePath: Path): void; removeResolutionsFromProjectReferenceRedirects(filePath: Path): void; - setFilesWithInvalidatedNonRelativeUnresolvedImports(filesWithUnresolvedImports: Map): void; createHasInvalidatedResolutions( customHasInvalidatedResolutions: HasInvalidatedResolutions, customHasInvalidatedLibResolutions: HasInvalidatedLibResolutions, ): HasInvalidatedFromResolutionCache; hasChangedAutomaticTypeDirectiveNames(): boolean; - isFileWithInvalidatedNonRelativeUnresolvedImports(path: Path): boolean; startCachingPerDirectoryResolution(): void; finishCachingPerDirectoryResolution(newProgram: Program | undefined, oldProgram: Program | undefined): void; @@ -169,6 +178,7 @@ export interface ResolutionWithFailedLookupLocations { // Files that have this resolution using files?: Set; alternateResult?: string; + globalCacheResolution?: ResolvedModuleWithFailedLookupLocations | false; } /** @internal */ @@ -525,6 +535,16 @@ export function createModuleResolutionLoaderUsingGlobalCache( }; } +/** @internal */ +export function needsResolutionFromGlobalCache(moduleName: string, resolution: ResolvedModuleWithFailedLookupLocations): boolean { + return !isExternalModuleNameRelative(moduleName) && isUnresolvedOrResolvedToJs(resolution); +} + +/** @internal */ +export function isUnresolvedOrResolvedToJs(resolution: ResolvedModuleWithFailedLookupLocations): boolean { + return !resolution.resolvedModule || !resolutionExtensionIsTSOrJson(resolution.resolvedModule.extension); +} + function resolveModuleNameUsingGlobalCache( resolutionHost: ResolutionCacheHost, moduleResolutionCache: ModuleResolutionCache, @@ -537,16 +557,20 @@ function resolveModuleNameUsingGlobalCache( const host = getModuleResolutionHost(resolutionHost); const primaryResult = ts_resolveModuleName(moduleName, containingFile, compilerOptions, host, moduleResolutionCache, redirectedReference, mode); // return result immediately only if global cache support is not enabled or if it is .ts, .tsx or .d.ts - if (!resolutionHost.getGlobalTypingsCacheLocation) { + if (!resolutionHost.getGlobalTypingsCacheLocation || primaryResult.globalCacheResolution !== undefined) { return primaryResult; } // otherwise try to load typings from @types const globalCache = resolutionHost.getGlobalTypingsCacheLocation(); - if (globalCache !== undefined && !isExternalModuleNameRelative(moduleName) && !(primaryResult.resolvedModule && extensionIsTS(primaryResult.resolvedModule.extension))) { + if (needsResolutionFromGlobalCache(moduleName, primaryResult)) { + if (globalCache === undefined) { + primaryResult.globalCacheResolution = false; + return primaryResult; + } // create different collection of failed lookup locations for second pass // if it will fail and we've already found something during the first pass - we don't want to pollute its results - const { resolvedModule, failedLookupLocations, affectingLocations, resolutionDiagnostics } = loadModuleFromGlobalCache( + primaryResult.globalCacheResolution = loadModuleFromGlobalCache( Debug.checkDefined(resolutionHost.globalCacheResolutionModuleName)(moduleName), resolutionHost.projectName, compilerOptions, @@ -554,12 +578,12 @@ function resolveModuleNameUsingGlobalCache( globalCache, moduleResolutionCache, ); - if (resolvedModule) { + if (primaryResult.globalCacheResolution.resolvedModule) { // Modify existing resolution so its saved in the directory cache as well - (primaryResult.resolvedModule as any) = resolvedModule; - primaryResult.failedLookupLocations = updateResolutionField(primaryResult.failedLookupLocations, failedLookupLocations); - primaryResult.affectingLocations = updateResolutionField(primaryResult.affectingLocations, affectingLocations); - primaryResult.resolutionDiagnostics = updateResolutionField(primaryResult.resolutionDiagnostics, resolutionDiagnostics); + (primaryResult.resolvedModule as any) = primaryResult.globalCacheResolution.resolvedModule; + primaryResult.failedLookupLocations = updateResolutionField(primaryResult.failedLookupLocations, primaryResult.globalCacheResolution.failedLookupLocations); + primaryResult.affectingLocations = updateResolutionField(primaryResult.affectingLocations, primaryResult.globalCacheResolution.affectingLocations); + primaryResult.resolutionDiagnostics = updateResolutionField(primaryResult.resolutionDiagnostics, primaryResult.globalCacheResolution.resolutionDiagnostics); return primaryResult; } } @@ -572,10 +596,11 @@ function resolveModuleNameUsingGlobalCache( export type GetResolutionWithResolvedFileName = (resolution: T) => R | undefined; /** @internal */ -export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootDirForResolution: string, logChangesWhenResolvingModule: boolean): ResolutionCache { - let filesWithChangedSetOfUnresolvedImports: Path[] | undefined; +export function createResolutionCache( + resolutionHost: ResolutionCacheHost, + rootDirForResolution: string, +): ResolutionCache { let filesWithInvalidatedResolutions: Set | undefined; - let filesWithInvalidatedNonRelativeUnresolvedImports: ReadonlyMap | undefined; const nonRelativeExternalModuleResolutions = new Set(); const resolutionsWithFailedLookups = new Set(); @@ -590,6 +615,9 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD let startsWithPathChecks: Set | undefined; let isInDirectoryChecks: Set | undefined; let allModuleAndTypeResolutionsAreInvalidated = false; + let resolutionsWithGlobalCachePassAreInvalidated = false; + let resolutionsWithoutGlobalCachePassAreInvalidated = false; + let unresolvedResolutionsWithGlobalCachePassAreInvalidated = false; const getCurrentDirectory = memoize(() => resolutionHost.getCurrentDirectory!()); const cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost(); @@ -621,6 +649,9 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD moduleResolutionCache.getPackageJsonInfoCache(), ); + let resolutionsResolvedWithGlobalCache = 0; + let resolutionsResolvedWithoutGlobalCache = 0; + const directoryWatchesOfFailedLookups = new Map(); const fileWatchesOfAffectingLocations = new Map(); const rootDir = getRootDirectoryOfResolutionCache(rootDirForResolution, getCurrentDirectory); @@ -647,10 +678,10 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD fileWatchesOfAffectingLocations, packageDirWatchers, dirPathToSymlinkPackageRefCount, + countResolutionsResolvedWithGlobalCache: () => resolutionsResolvedWithGlobalCache, + countResolutionsResolvedWithoutGlobalCache: () => resolutionsResolvedWithoutGlobalCache, watchFailedLookupLocationsOfExternalModuleResolutions, getModuleResolutionCache: () => moduleResolutionCache, - startRecordingFilesWithChangedResolutions, - finishRecordingFilesWithChangedResolutions, // perDirectoryResolvedModuleNames and perDirectoryResolvedTypeReferenceDirectives could be non empty if there was exception during program update // (between startCachingPerDirectoryResolution and finishCachingPerDirectoryResolution) startCachingPerDirectoryResolution, @@ -664,9 +695,10 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD hasChangedAutomaticTypeDirectiveNames: () => hasChangedAutomaticTypeDirectiveNames, invalidateResolutionOfFile, invalidateResolutionsOfFailedLookupLocations, - setFilesWithInvalidatedNonRelativeUnresolvedImports, + invalidateResolutionsWithGlobalCachePass, + invalidateResolutionsWithoutGlobalCachePass, + invalidateUnresolvedResolutionsWithGlobalCachePass, createHasInvalidatedResolutions, - isFileWithInvalidatedNonRelativeUnresolvedImports, updateTypeRootsWatch, closeTypeRootsWatch, clear, @@ -686,12 +718,17 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD resolvedFileToResolution.clear(); resolutionsWithFailedLookups.clear(); resolutionsWithOnlyAffectingLocations.clear(); + resolutionsResolvedWithGlobalCache = 0; + resolutionsResolvedWithoutGlobalCache = 0; failedLookupChecks = undefined; startsWithPathChecks = undefined; isInDirectoryChecks = undefined; affectingPathChecks = undefined; affectingPathChecksForFile = undefined; allModuleAndTypeResolutionsAreInvalidated = false; + resolutionsWithGlobalCachePassAreInvalidated = false; + resolutionsWithoutGlobalCachePassAreInvalidated = false; + unresolvedResolutionsWithGlobalCachePassAreInvalidated = false; moduleResolutionCache.clear(); typeReferenceDirectiveResolutionCache.clear(); moduleResolutionCache.update(resolutionHost.getCompilationSettings()); @@ -710,26 +747,6 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD typeReferenceDirectiveResolutionCache.update(resolutionHost.getCompilationSettings()); } - function startRecordingFilesWithChangedResolutions() { - filesWithChangedSetOfUnresolvedImports = []; - } - - function finishRecordingFilesWithChangedResolutions() { - const collected = filesWithChangedSetOfUnresolvedImports; - filesWithChangedSetOfUnresolvedImports = undefined; - return collected; - } - - function isFileWithInvalidatedNonRelativeUnresolvedImports(path: Path): boolean { - if (!filesWithInvalidatedNonRelativeUnresolvedImports) { - return false; - } - - // Invalidated if file has unresolved imports - const value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path); - return !!value && !!value.length; - } - function createHasInvalidatedResolutions( customHasInvalidatedResolutions: HasInvalidatedResolutions, customHasInvalidatedLibResolutions: HasInvalidatedLibResolutions, @@ -742,8 +759,10 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD hasInvalidatedResolutions: path => customHasInvalidatedResolutions(path) || allModuleAndTypeResolutionsAreInvalidated || - !!collected?.has(path) || - isFileWithInvalidatedNonRelativeUnresolvedImports(path), + resolutionsWithGlobalCachePassAreInvalidated || + resolutionsWithoutGlobalCachePassAreInvalidated || + unresolvedResolutionsWithGlobalCachePassAreInvalidated || + !!collected?.has(path), hasInvalidatedLibResolutions: libFileName => customHasInvalidatedLibResolutions(libFileName) || !!resolvedLibraries?.get(libFileName)?.isInvalidated, @@ -778,8 +797,10 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD } function finishCachingPerDirectoryResolution(newProgram: Program | undefined, oldProgram: Program | undefined) { - filesWithInvalidatedNonRelativeUnresolvedImports = undefined; allModuleAndTypeResolutionsAreInvalidated = false; + resolutionsWithGlobalCachePassAreInvalidated = false; + resolutionsWithoutGlobalCachePassAreInvalidated = false; + unresolvedResolutionsWithGlobalCachePassAreInvalidated = false; watchFailedLookupLocationOfNonRelativeModuleResolutions(); // Update file watches if (newProgram !== oldProgram) { @@ -837,6 +858,13 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD } } + function isResolutionInvalidatedPerGlobalCacheOptions(resolution: ResolutionWithFailedLookupLocations) { + if (resolutionsWithGlobalCachePassAreInvalidated && resolution.globalCacheResolution) return true; + if (resolutionsWithoutGlobalCachePassAreInvalidated && resolution.globalCacheResolution === false) return true; + if (unresolvedResolutionsWithGlobalCachePassAreInvalidated && resolution.globalCacheResolution && isUnresolvedOrResolvedToJs(resolution as ResolvedModuleWithFailedLookupLocations)) return true; + return false; + } + interface ResolveNamesWithLocalCacheInput { entries: readonly Entry[]; containingFile: string; @@ -847,9 +875,8 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD perFileCache: Map>; loader: ResolutionLoader; getResolutionWithResolvedFileName: GetResolutionWithResolvedFileName; - shouldRetryResolution: (t: T) => boolean; - logChanges?: boolean; deferWatchingNonRelativeResolution: boolean; + onNewResolution?: CallbackOnNewResolution; } function resolveNamesWithLocalCache({ entries, @@ -862,13 +889,11 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD loader, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution, - shouldRetryResolution, - logChanges, + onNewResolution, }: ResolveNamesWithLocalCacheInput): readonly T[] { const path = resolutionHost.toPath(containingFile); const resolutionsInFile = perFileCache.get(path) || perFileCache.set(path, createModeAwareCache()).get(path)!; const resolvedModules: T[] = []; - const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path); // All the resolutions in this file are invalidated if this file wasn't resolved using same redirect const program = resolutionHost.getCurrentProgram(); @@ -885,9 +910,13 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD // Resolution is valid if it is present and not invalidated if ( !seenNamesInFile.has(name, mode) && - (allModuleAndTypeResolutionsAreInvalidated || unmatchedRedirects || !resolution || resolution.isInvalidated || - // If the name is unresolved import that was invalidated, recalculate - (hasInvalidatedNonRelativeUnresolvedImport && !isExternalModuleNameRelative(name) && shouldRetryResolution(resolution))) + ( + allModuleAndTypeResolutionsAreInvalidated || + unmatchedRedirects || + !resolution || + resolution.isInvalidated || + isResolutionInvalidatedPerGlobalCacheOptions(resolution) + ) ) { const existingResolution = resolution; resolution = loader.resolve(name, mode); @@ -901,12 +930,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName); } } - - if (logChanges && filesWithChangedSetOfUnresolvedImports && !resolutionIsEqualTo(existingResolution, resolution)) { - filesWithChangedSetOfUnresolvedImports.push(path); - // reset log changes to avoid recording the same file multiple times - logChanges = false; - } + onNewResolution?.(existingResolution, resolution, path, name, mode); } else { const host = getModuleResolutionHost(resolutionHost); @@ -953,24 +977,6 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD }); } return resolvedModules; - - function resolutionIsEqualTo(oldResolution: T | undefined, newResolution: T | undefined): boolean { - if (oldResolution === newResolution) { - return true; - } - if (!oldResolution || !newResolution) { - return false; - } - const oldResult = getResolutionWithResolvedFileName(oldResolution); - const newResult = getResolutionWithResolvedFileName(newResolution); - if (oldResult === newResult) { - return true; - } - if (!oldResult || !newResult) { - return false; - } - return oldResult.resolvedFileName === newResult.resolvedFileName; - } } function resolveTypeReferenceDirectiveReferences( @@ -997,7 +1003,6 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD typeReferenceDirectiveResolutionCache, ), getResolutionWithResolvedFileName: getResolvedTypeReferenceDirectiveFromResolution, - shouldRetryResolution: resolution => resolution.resolvedTypeReferenceDirective === undefined, deferWatchingNonRelativeResolution: false, }); } @@ -1009,6 +1014,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined, + onNewResolution?: CallbackOnNewResolution, ): readonly ResolvedModuleWithFailedLookupLocations[] { return resolveNamesWithLocalCache({ entries: moduleLiterals, @@ -1026,9 +1032,8 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD moduleResolutionCache, ), getResolutionWithResolvedFileName: getResolvedModuleFromResolution, - shouldRetryResolution: resolution => !resolution.resolvedModule || !resolutionExtensionIsTSOrJson(resolution.resolvedModule.extension), - logChanges: logChangesWhenResolvingModule, deferWatchingNonRelativeResolution: true, // Defer non relative resolution watch because we could be using ambient modules + onNewResolution, }); } @@ -1102,6 +1107,8 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD ) { (resolution.files ??= new Set()).add(filePath); if (resolution.files.size !== 1) return; + if (resolution.globalCacheResolution) resolutionsResolvedWithGlobalCache++; + else if (resolution.globalCacheResolution === false) resolutionsResolvedWithoutGlobalCache++; if (!deferWatchingNonRelativeResolution || isExternalModuleNameRelative(name)) { watchFailedLookupLocationOfResolution(resolution); } @@ -1378,6 +1385,8 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD Debug.checkDefined(resolution.files).delete(filePath); if (resolution.files!.size) return; resolution.files = undefined; + if (resolution.globalCacheResolution) resolutionsResolvedWithGlobalCache--; + if (resolution.globalCacheResolution === false) resolutionsResolvedWithoutGlobalCache--; const resolved = getResolutionWithResolvedFileName(resolution); if (resolved && resolved.resolvedFileName) { const key = resolutionHost.toPath(resolved.resolvedFileName); @@ -1492,11 +1501,6 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD } } - function setFilesWithInvalidatedNonRelativeUnresolvedImports(filesMap: ReadonlyMap) { - Debug.assert(filesWithInvalidatedNonRelativeUnresolvedImports === filesMap || filesWithInvalidatedNonRelativeUnresolvedImports === undefined); - filesWithInvalidatedNonRelativeUnresolvedImports = filesMap; - } - function scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath: Path, isCreatingWatchedDirectory: boolean) { if (isCreatingWatchedDirectory) { // Watching directory is created @@ -1558,6 +1562,16 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD } } + function invalidateResolutionsWithGlobalCachePass() { + if (resolutionsResolvedWithGlobalCache) resolutionsWithGlobalCachePassAreInvalidated = true; + } + function invalidateResolutionsWithoutGlobalCachePass() { + if (resolutionsResolvedWithoutGlobalCache) resolutionsWithoutGlobalCachePassAreInvalidated = true; + } + function invalidateUnresolvedResolutionsWithGlobalCachePass() { + if (resolutionsResolvedWithGlobalCache) unresolvedResolutionsWithGlobalCachePassAreInvalidated = true; + } + function invalidateResolutionsOfFailedLookupLocations() { if (allModuleAndTypeResolutionsAreInvalidated) { affectingPathChecksForFile = undefined; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 232605341b592..c1fe132b0b95a 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -8063,6 +8063,8 @@ export interface ResolvedModuleWithFailedLookupLocations { * have been resolvable under different module resolution settings. */ alternateResult?: string; + /** @internal */ + globalCacheResolution?: ResolvedModuleWithFailedLookupLocations | false; } export interface ResolvedTypeReferenceDirective { diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index 4bcedabb7eb0f..69e864af9711f 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -523,7 +523,6 @@ export function createWatchProgram(host: WatchCompiler configFileName ? getDirectoryPath(getNormalizedAbsolutePath(configFileName, currentDirectory)) : currentDirectory, - /*logChangesWhenResolvingModule*/ false, ); // Resolve module using host module resolution strategy if provided otherwise use resolution cache to resolve module names compilerHost.resolveModuleNameLiterals = maybeBind(host, host.resolveModuleNameLiterals); diff --git a/src/harness/incrementalUtils.ts b/src/harness/incrementalUtils.ts index 47114c88d5151..10112563ace21 100644 --- a/src/harness/incrementalUtils.ts +++ b/src/harness/incrementalUtils.ts @@ -206,7 +206,7 @@ export function verifyResolutionCache( projectName: string, ): void { const currentDirectory = resolutionHostCacheHost.getCurrentDirectory!(); - const expected = ts.createResolutionCache(resolutionHostCacheHost, actual.rootDirForResolution, /*logChangesWhenResolvingModule*/ false); + const expected = ts.createResolutionCache(resolutionHostCacheHost, actual.rootDirForResolution); expected.startCachingPerDirectoryResolution(); type ExpectedResolution = ts.CachedResolvedModuleWithFailedLookupLocations & ts.CachedResolvedTypeReferenceDirectiveWithFailedLookupLocations; @@ -269,6 +269,14 @@ export function verifyResolutionCache( verifyFileWatchesOfAffectingLocations(expected.fileWatchesOfAffectingLocations, actual.fileWatchesOfAffectingLocations); verifyPackageDirWatchers(expected.packageDirWatchers, actual.packageDirWatchers); verifyDirPathToSymlinkPackageRefCount(expected.dirPathToSymlinkPackageRefCount, actual.dirPathToSymlinkPackageRefCount); + ts.Debug.assert( + expected.countResolutionsResolvedWithGlobalCache() === actual.countResolutionsResolvedWithGlobalCache(), + `${projectName}:: Expected ResolutionsResolvedWithGlobalCache count ${expected.countResolutionsResolvedWithGlobalCache()} but got ${actual.countResolutionsResolvedWithGlobalCache()}`, + ); + ts.Debug.assert( + expected.countResolutionsResolvedWithoutGlobalCache() === actual.countResolutionsResolvedWithoutGlobalCache(), + `${projectName}:: Expected ResolutionsResolvedWithoutGlobalCache count ${expected.countResolutionsResolvedWithoutGlobalCache()} but got ${actual.countResolutionsResolvedWithoutGlobalCache()}`, + ); // Stop watching resolutions to verify everything gets closed. expected.startCachingPerDirectoryResolution(); @@ -284,6 +292,8 @@ export function verifyResolutionCache( ts.Debug.assert(expected.resolutionsWithOnlyAffectingLocations.size === 0, `${projectName}:: resolutionsWithOnlyAffectingLocations should be released`); ts.Debug.assert(expected.directoryWatchesOfFailedLookups.size === 0, `${projectName}:: directoryWatchesOfFailedLookups should be released`); ts.Debug.assert(expected.fileWatchesOfAffectingLocations.size === 0, `${projectName}:: fileWatchesOfAffectingLocations should be released`); + ts.Debug.assert(expected.countResolutionsResolvedWithGlobalCache() === 0, `${projectName}:: ResolutionsResolvedWithGlobalCache should be cleared`); + ts.Debug.assert(expected.countResolutionsResolvedWithoutGlobalCache() === 0, `${projectName}:: ResolutionsResolvedWithoutGlobalCache should be cleared`); function collectResolutionToRefFromCache( cacheType: string, @@ -329,6 +339,7 @@ export function verifyResolutionCache( failedLookupLocations: resolved.failedLookupLocations, affectingLocations: resolved.affectingLocations, alternateResult: resolved.alternateResult, + globalCacheResolution: resolved.globalCacheResolution, }; expectedToResolution.set(expectedResolution, resolved); resolutionToExpected.set(resolved, expectedResolution); @@ -448,17 +459,25 @@ function verifySet( expected?.forEach(expected => ts.Debug.assert( actual?.has(expected), - `${caption}:: Expected should be present in actual`, + `${caption}:: ${expected} should be present in actual`, ) ); actual?.forEach(actual => ts.Debug.assert( expected?.has(actual), - `${caption}:: Actual should be present in expected`, + `${caption}:: ${actual} should be present in expected`, ) ); } +function verifyArray( + expected: readonly string[] | undefined, + actual: readonly string[] | undefined, + caption: string, +) { + return verifySet(expected && new Set(expected), actual && new Set(actual), caption); +} + function verifyProgram(service: ts.server.ProjectService, project: ts.server.Project) { if (service.serverMode === ts.LanguageServiceMode.Syntactic) return; const options = project.getCompilerOptions(); @@ -572,6 +591,24 @@ function verifyProgram(service: ts.server.ProjectService, project: ts.server.Pro verifyResolutionCache(project.resolutionCache, project.getCurrentProgram()!, resolutionHostCacheHost, project.projectName); } +function verifyUnresolvedImports(_service: ts.server.ProjectService, project: ts.server.Project) { + const cachedUnresolvedImportsPerFile = new Map(); + const lastCachedUnresolvedImportsList = project.useTypingsFromGlobalCache() ? + ts.server.getUnresolvedImports(project.getCurrentProgram()!, cachedUnresolvedImportsPerFile) : + undefined; + verifyArray( + lastCachedUnresolvedImportsList, + project.lastCachedUnresolvedImportsList, + `${project.getProjectName()}:: lastCachedUnresolvedImportsList`, + ); + verifyMap( + cachedUnresolvedImportsPerFile, + project.cachedUnresolvedImportsPerFile, + (expected, actual, caption) => verifyArray(expected, actual, caption), + `${project.getProjectName()}:: cachedUnresolvedImportsPerFile`, + ); +} + interface ResolveSingleModuleNameWithoutWatchingData { resolutionToData: Map>; packageJsonMap: Map | undefined; @@ -648,6 +685,7 @@ export interface IncrementalVerifierCallbacks { export function incrementalVerifier(service: ts.server.ProjectService): void { service.verifyDocumentRegistry = withIncrementalVerifierCallbacks(service, verifyDocumentRegistry); service.verifyProgram = withIncrementalVerifierCallbacks(service, verifyProgram); + service.verifyUnresovedImports = withIncrementalVerifierCallbacks(service, verifyUnresolvedImports); service.onProjectCreation = onProjectCreation; } diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 23f8d844c9856..7f63bc9ef2831 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -1424,6 +1424,7 @@ export class ProjectService { /** @internal */ baseline: (title?: string) => void = noop; /** @internal */ verifyDocumentRegistry: typeof noop = noop; /** @internal */ verifyProgram: (project: Project) => void = noop; + /** @internal */ verifyUnresovedImports: (project: Project) => void = noop; /** @internal */ onProjectCreation: (project: Project) => void = noop; /** @internal */ canUseWatchEvents: boolean; @@ -1594,12 +1595,7 @@ export class ProjectService { switch (response.kind) { case ActionSet: // Update the typing files and update the project - project.updateTypingFiles( - response.compilerOptions, - response.typeAcquisition, - response.unresolvedImports, - response.typings, - ); + project.updateTypingFiles(response); return; case ActionInvalidate: // Do not clear resolution cache, there was changes detected in typings, so enque typing request and let it get us correct results diff --git a/src/server/project.ts b/src/server/project.ts index 90205d695015c..17076a920fa73 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -33,6 +33,8 @@ import { DocumentPositionMapper, ensureTrailingDirectorySeparator, enumerateInsertsAndDeletes, + equateStringsCaseInsensitive, + equateStringsCaseSensitive, every, explainFiles, ExportInfoMap, @@ -76,6 +78,7 @@ import { isDeclarationFileName, isExternalModuleNameRelative, isInsideNodeModules, + isUnresolvedOrResolvedToJs, JSDocParsingMode, JsTyping, LanguageService, @@ -88,7 +91,7 @@ import { ModuleResolutionCache, ModuleResolutionHost, ModuleSpecifierCache, - noop, + needsResolutionFromGlobalCache, noopFileWatcher, normalizePath, normalizeSlashes, @@ -106,7 +109,6 @@ import { ProjectReference, removeFileExtension, ResolutionCache, - resolutionExtensionIsTSOrJson, ResolvedModuleWithFailedLookupLocations, ResolvedProjectReference, ResolvedTypeReferenceDirectiveWithFailedLookupLocations, @@ -156,6 +158,7 @@ import { ScriptInfo, ServerHost, Session, + SetTypings, toNormalizedPath, updateProjectIfDirty, } from "./_namespaces/ts.server.js"; @@ -359,11 +362,17 @@ function compilerOptionsChanged(opt1: CompilerOptions, opt2: CompilerOptions): b } function unresolvedImportsChanged(imports1: SortedReadonlyArray | undefined, imports2: SortedReadonlyArray | undefined): boolean { - if (imports1 === imports2) { - return false; - } + if (imports1 === imports2) return false; + // undefined and 0 length array are same + if (!imports1?.length === !imports2?.length) return false; return !arrayIsEqualTo(imports1, imports2); } +const disabledTypeAcquisition: TypeAcquisition = {}; +const enabledTypeAcquisition: TypeAcquisition = { + enable: true, + include: ts.emptyArray, + exclude: ts.emptyArray, +}; export abstract class Project implements LanguageServiceHost, ModuleResolutionHost { private rootFilesMap = new Map(); @@ -383,6 +392,7 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo * @internal */ cachedUnresolvedImportsPerFile: Map = new Map(); + private recordChangesToUnresolvedImports = false; /** @internal */ lastCachedUnresolvedImportsList: SortedReadonlyArray | undefined; @@ -628,7 +638,6 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo this.resolutionCache = createResolutionCache( this, this.currentDirectory, - /*logChangesWhenResolvingModule*/ true, ); this.languageService = createLanguageService( this, @@ -706,7 +715,6 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo (result || (result = [])).push(value.fileName); } }); - return addRange(result, this.typingFiles) || ts.emptyArray; } @@ -791,7 +799,23 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo /** @internal */ resolveModuleNameLiterals(moduleLiterals: readonly StringLiteralLike[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile: SourceFile, reusedNames: readonly StringLiteralLike[] | undefined): readonly ResolvedModuleWithFailedLookupLocations[] { - return this.resolutionCache.resolveModuleNameLiterals(moduleLiterals, containingFile, redirectedReference, options, containingSourceFile, reusedNames); + let invalidated = false; + return this.resolutionCache.resolveModuleNameLiterals( + moduleLiterals, + containingFile, + redirectedReference, + options, + containingSourceFile, + reusedNames, + this.recordChangesToUnresolvedImports ? (existing, current, path, name) => { + if (invalidated || isExternalModuleNameRelative(name)) return; + // If only unresolved flag is changed, update + if ((existing && isUnresolvedOrResolvedToJs(existing)) === isUnresolvedOrResolvedToJs(current)) return; + invalidated = true; + this.cachedUnresolvedImportsPerFile.delete(path); + this.lastCachedUnresolvedImportsList = undefined; + } : undefined, + ); } /** @internal */ @@ -1418,44 +1442,45 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo updateProjectIfDirty(this); } + /** @internal */ + useTypingsFromGlobalCache(): boolean { + return !this.isOrphan() && + !!this.languageServiceEnabled && + this.projectService.serverMode === LanguageServiceMode.Semantic && + this.projectService.typingsInstaller !== nullTypingsInstaller && + !!this.getTypeAcquisition().enable; + } + /** * Updates set of files that contribute to this project * @returns: true if set of files in the project stays the same and false - otherwise. */ updateGraph(): boolean { tracing?.push(tracing.Phase.Session, "updateGraph", { name: this.projectName, kind: ProjectKind[this.projectKind] }); - this.resolutionCache.startRecordingFilesWithChangedResolutions(); + const useTypingsFromGlobalCache = this.useTypingsFromGlobalCache(); + if (!useTypingsFromGlobalCache) this.resolutionCache.invalidateResolutionsWithGlobalCachePass(); + else this.resolutionCache.invalidateResolutionsWithoutGlobalCachePass(); + if (useTypingsFromGlobalCache && this.cachedUnresolvedImportsPerFile.size) this.recordChangesToUnresolvedImports = true; const hasNewProgram = this.updateGraphWorker(); const hasAddedorRemovedFiles = this.hasAddedorRemovedFiles; this.hasAddedorRemovedFiles = false; this.hasAddedOrRemovedSymlinks = false; + this.recordChangesToUnresolvedImports = false; - const changedFiles: readonly Path[] = this.resolutionCache.finishRecordingFilesWithChangedResolutions() || emptyArray; - - for (const file of changedFiles) { - // delete cached information for changed files - this.cachedUnresolvedImportsPerFile.delete(file); - } - - // update builder only if language service is enabled - // otherwise tell it to drop its internal state - if (this.languageServiceEnabled && this.projectService.serverMode === LanguageServiceMode.Semantic && !this.isOrphan()) { - // 1. no changes in structure, no changes in unresolved imports - do nothing - // 2. no changes in structure, unresolved imports were changed - collect unresolved imports for all files - // (can reuse cached imports for files that were not changed) - // 3. new files were added/removed, but compilation settings stays the same - collect unresolved imports for all new/modified files - // (can reuse cached imports for files that were not changed) - // 4. compilation settings were changed in the way that might affect module resolution - drop all caches and collect all data from the scratch - if (hasNewProgram || changedFiles.length) { - this.lastCachedUnresolvedImportsList = getUnresolvedImports(this.program!, this.cachedUnresolvedImportsPerFile); - } - + if (useTypingsFromGlobalCache) { + this.lastCachedUnresolvedImportsList ??= getUnresolvedImports( + this.program!, + this.cachedUnresolvedImportsPerFile, + ); this.enqueueInstallTypingsForProject(hasAddedorRemovedFiles); } else { this.lastCachedUnresolvedImportsList = undefined; + this.cachedUnresolvedImportsPerFile.clear(); + this.typingsCache = undefined; } + this.projectService.verifyUnresovedImports(this); const isFirstProgramLoad = this.projectProgramVersion === 0 && hasNewProgram; if (hasNewProgram) { @@ -1493,26 +1518,47 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo this.typingsCache = { compilerOptions: this.getCompilationSettings(), typeAcquisition, - unresolvedImports: this.lastCachedUnresolvedImportsList, + unresolvedImports: this.lastCachedUnresolvedImportsList?.length ? this.lastCachedUnresolvedImportsList : undefined, }; // something has been changed, issue a request to update typings - this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this, typeAcquisition, this.lastCachedUnresolvedImportsList); + this.projectService.typingsInstaller.enqueueInstallTypingsRequest( + this, + typeAcquisition, + this.typingsCache.unresolvedImports, + ); } } /** @internal */ - updateTypingFiles(compilerOptions: CompilerOptions, typeAcquisition: TypeAcquisition, unresolvedImports: SortedReadonlyArray, newTypings: string[]): void { + updateTypingFiles({ compilerOptions, typeAcquisition, unresolvedImports, typings }: SetTypings): void { + if (!this.getTypeAcquisition().enable) return; this.typingsCache = { compilerOptions, typeAcquisition, unresolvedImports, }; - const typingFiles = !typeAcquisition || !typeAcquisition.enable ? emptyArray : toSorted(newTypings); - if (enumerateInsertsAndDeletes(typingFiles, this.typingFiles, getStringComparer(!this.useCaseSensitiveFileNames()), /*inserted*/ noop, removed => this.detachScriptInfoFromProject(removed))) { + const typingFiles = typings.length ? toSorted(typings) : emptyArray; + // The typings files are result of types acquired based on unresolved imports and other structure + // With respect to unresolved imports: + // The first time we see unresolved import the TI will fetch the typing into cache and return it as part of typings file + // This makes typings file set as files to be included as root + // Program update on this will resolve the unresolved imports from the previous pass + // Because resolution has changed, this will enqueue TI request without the previously unresolved imports + // As a result TI will send new Typings files that does not contain the typing files we got before + // So our root files will change as part of that but we dont want to detach the typing files that are no more typings file + // but rather let program update do that + // This ensures that if nothing else changes, program will still have that file and the update doesnt mark file as added or removed unncessarily + if ( + !arrayIsEqualTo( + typingFiles, + this.typingFiles, + this.useCaseSensitiveFileNames() ? equateStringsCaseSensitive : equateStringsCaseInsensitive, + ) + ) { // If typing files changed, then only schedule project update this.typingFiles = typingFiles; // Invalidate files with unresolved imports - this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile); + if (this.typingFiles.length) this.resolutionCache.invalidateUnresolvedResolutionsWithGlobalCachePass(); this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this); } } @@ -1979,10 +2025,21 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo if (newTypeAcquisition) { this.typeAcquisition = this.removeLocalTypingsFromTypeAcquisition(newTypeAcquisition); } + else { + this.typeAcquisition = undefined; + } + // If the typeAcquition is disabled, dont use typing files as root and close existing watchers from TI + if (!this.getTypeAcquisition().enable) { + this.typingFiles = emptyArray; + if (this.typingsCache) { + this.typingsCache = undefined; + this.projectService.typingsInstaller.onProjectClosed(this); + } + } } getTypeAcquisition(): TypeAcquisition { - return this.typeAcquisition || {}; + return this.typeAcquisition ??= disabledTypeAcquisition; } /** @internal */ @@ -2357,7 +2414,11 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo } } -function getUnresolvedImports(program: Program, cachedUnresolvedImportsPerFile: Map): SortedReadonlyArray { +/** @internal */ +export function getUnresolvedImports( + program: Program, + cachedUnresolvedImportsPerFile: Map, +): SortedReadonlyArray { const sourceFiles = program.getSourceFiles(); tracing?.push(tracing.Phase.Session, "getUnresolvedImports", { count: sourceFiles.length }); const ambientModules = program.getTypeChecker().getAmbientModules().map(mod => stripQuotes(mod.getName())); @@ -2379,11 +2440,10 @@ function extractUnresolvedImportsFromSourceFile( ): readonly string[] { return getOrUpdate(cachedUnresolvedImportsPerFile, file.path, () => { let unresolvedImports: string[] | undefined; - program.forEachResolvedModule(({ resolvedModule }, name) => { + program.forEachResolvedModule((resolution, name) => { // pick unresolved non-relative names if ( - (!resolvedModule || !resolutionExtensionIsTSOrJson(resolvedModule.extension)) && - !isExternalModuleNameRelative(name) && + needsResolutionFromGlobalCache(name, resolution) && !ambientModules.some(m => m === name) ) { unresolvedImports = append(unresolvedImports, parsePackageName(name).packageName); @@ -2399,6 +2459,7 @@ function extractUnresolvedImportsFromSourceFile( */ export class InferredProject extends Project { private _isJsInferredProject = false; + private inferredTypeAcquisition: TypeAcquisition | undefined; toggleJsInferredProject(isJsInferredProject: boolean): void { if (isJsInferredProject !== this._isJsInferredProject) { @@ -2471,11 +2532,13 @@ export class InferredProject extends Project { else if (this.isOrphan() && this._isJsInferredProject && !info.isJavaScript()) { this.toggleJsInferredProject(/*isJsInferredProject*/ false); } + this.inferredTypeAcquisition = undefined; super.addRoot(info); } override removeRoot(info: ScriptInfo): void { this.projectService.stopWatchingConfigFilesForScriptInfo(info); + this.inferredTypeAcquisition = undefined; super.removeRoot(info); // Delay toggling to isJsInferredProject = false till we actually need it again if (!this.isOrphan() && this._isJsInferredProject && info.isJavaScript()) { @@ -2503,12 +2566,13 @@ export class InferredProject extends Project { super.close(); } + override setTypeAcquisition(newTypeAcquisition: ts.TypeAcquisition | undefined): void { + this.inferredTypeAcquisition = undefined; + super.setTypeAcquisition(newTypeAcquisition); + } + override getTypeAcquisition(): TypeAcquisition { - return this.typeAcquisition || { - enable: allRootFilesAreJsOrDts(this), - include: ts.emptyArray, - exclude: ts.emptyArray, - }; + return this.typeAcquisition || (this.inferredTypeAcquisition ??= allRootFilesAreJsOrDts(this) ? enabledTypeAcquisition : disabledTypeAcquisition); } } diff --git a/src/testRunner/unittests/tsserver/typeAquisition.ts b/src/testRunner/unittests/tsserver/typeAquisition.ts index 64c992d4e15c9..752b663413e6f 100644 --- a/src/testRunner/unittests/tsserver/typeAquisition.ts +++ b/src/testRunner/unittests/tsserver/typeAquisition.ts @@ -1,3 +1,4 @@ +import { emptyArray } from "../../_namespaces/ts.js"; import { jsonToReadableText } from "../helpers.js"; import { getPathForTypeScriptTypingInstallerCacheTest } from "../helpers/contents.js"; import { @@ -7,6 +8,7 @@ import { TestSession, toExternalFile, } from "../helpers/tsserver.js"; +import { FileWithPackageName } from "../helpers/typingsInstaller.js"; import { TestServerHost } from "../helpers/virtualFileSystemWithWatch.js"; describe("unittests:: tsserver:: typeAquisition:: autoDiscovery", () => { @@ -58,3 +60,183 @@ describe("unittests:: tsserver:: typeAquisition:: prefer typings to js", () => { baselineTsserverLogs("typeAquisition", "prefer typings in second pass", session); }); }); + +describe("unittests:: tsserver:: typeAquisition:: changes", () => { + enum TestType { + Single = "", + MultiProject = " multiple projects", + ProjectWithSharedResolution = " multiple projects with shared resolution", + } + [TestType.Single, TestType.MultiProject, TestType.ProjectWithSharedResolution].forEach(testType => { + it(scenario("changes to typeAquisition with already aquired typing", testType), () => { + const { session, verifyTypeAcquisition } = setup( + testType, + /*hostHasBarTyping*/ true, + /*enabledTypeAquisition*/ true, + ); + verifyTypeAcquisition(/*enable*/ false); + verifyTypeAcquisition(/*enable*/ true); + baselineTsserverLogs("typeAquisition", scenario("changes to typeAquisition with already aquired typing", testType), session); + }); + + it(scenario("changes to typeAquisition when typing installer installs typing", testType), () => { + const { session, verifyTypeAcquisition, verifyPendingInstalls } = setup( + testType, + /*hostHasBarTyping*/ false, + /*enabledTypeAquisition*/ true, + ); + verifyPendingInstalls(); + verifyTypeAcquisition(/*enable*/ false); + verifyTypeAcquisition(/*enable*/ true); + baselineTsserverLogs("typeAquisition", scenario("changes to typeAquisition when typing installer installs typing", testType), session); + }); + + it(scenario("midway changes to typeAquisition when typing installer installs typing", testType), () => { + const { host, session, verifyTypeAcquisition } = setup( + testType, + /*hostHasBarTyping*/ false, + /*enabledTypeAquisition*/ true, + ); + host.runPendingInstalls(); + verifyTypeAcquisition(/*enable*/ false); + verifyTypeAcquisition(/*enable*/ true); + baselineTsserverLogs("typeAquisition", scenario("midway changes to typeAquisition when typing installer installs typing", testType), session); + }); + + it(scenario("receives update of typings after project changes", testType), () => { + const { session, verifyTypeAcquisition, verifyPendingInstalls } = setup( + testType, + /*hostHasBarTyping*/ false, + /*enabledTypeAquisition*/ true, + ); + verifyTypeAcquisition(/*enable*/ false); + verifyPendingInstalls(); + verifyTypeAcquisition(/*enable*/ true); + baselineTsserverLogs("typeAquisition", scenario("receives update of typings after project changes", testType), session); + }); + + it(scenario("change after enabling typeAquisition", testType), () => { + const { session, verifyTypeAcquisition, verifyPendingInstalls } = setup( + testType, + /*hostHasBarTyping*/ true, + /*enabledTypeAquisition*/ false, + ); + verifyTypeAcquisition(/*enable*/ true); + verifyPendingInstalls(); + baselineTsserverLogs("typeAquisition", scenario("change after enabling typeAquisition", testType), session); + }); + + it(scenario("enabled typeAquisition", testType), () => { + const { session, verifyPendingInstalls } = setup( + testType, + /*hostHasBarTyping*/ false, + /*enabledTypeAquisition*/ true, + ); + verifyPendingInstalls(); + baselineTsserverLogs("typeAquisition", scenario("enabled typeAquisition", testType), session); + }); + + it(scenario("disabled typeAquisition", testType), () => { + const { session, verifyPendingInstalls } = setup( + testType, + /*hostHasBarTyping*/ false, + /*enabledTypeAquisition*/ false, + ); + verifyPendingInstalls(); + baselineTsserverLogs("typeAquisition", scenario("disabled typeAquisition", testType), session); + }); + }); + + function scenario(name: string, testType: TestType) { + return `${name}${testType}`; + } + + function setup( + testType: TestType, + hostHasBarTyping: boolean, + enabledTypeAquisition: boolean, + ) { + const host = TestServerHost.createServerHost({ + "/users/user/projects/project1/app.js": `var x = require('bar');`, + [ + testType !== TestType.ProjectWithSharedResolution ? + "/users/user/projects/project1/node_modules/bar/index.js" : + "/users/user/projects/node_modules/bar/index.js" + ]: "export const x = 1", + ...( + testType ? + { + "/users/user/projects/project2/app.js": `var x = require('bar');`, + "/users/user/projects/project2/app2.js": `var x = require('foo');`, + "/users/user/projects/project2/jsconfig.json": config(/*enabledTypeAquisition*/ true), + "/users/user/projects/project3/app.js": `var x = require('bar');`, + "/users/user/projects/project3/app2.js": `var x = require('foo');`, + "/users/user/projects/project3/jsconfig.json": config(/*enabledTypeAquisition*/ false), + [getPathForTypeScriptTypingInstallerCacheTest("/node_modules/@types/foo/index.d.ts")]: "export const foo = 1;", + } : + {} + ), + ...( + testType === TestType.MultiProject ? + { + "/users/user/projects/project2/node_modules/bar/index.js": "export const x = 1", + "/users/user/projects/project3/node_modules/bar/index.js": "export const x = 1", + } : + {} + ), + }, { typingsInstallerTypesRegistry: testType ? ["bar", "foo"] : "bar" }); + typeAcquisition(enabledTypeAquisition); + const barTyping: FileWithPackageName = { + path: getPathForTypeScriptTypingInstallerCacheTest("/node_modules/@types/bar/index.d.ts"), + content: "export const x = 1;", + package: "bar", + }; + if (hostHasBarTyping) host.ensureFileOrFolder(barTyping); + const session = new TestSession({ + host, + installAction: [barTyping], + }); + openFilesForSession([ + "/users/user/projects/project1/app.js", + ...( + testType ? + [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js", + ] : + emptyArray + ), + ], session); + return { host, session, verifyTypeAcquisition, verifyPendingInstalls }; + + function typeAcquisition(enable: boolean) { + host.writeFile("/users/user/projects/project1/jsconfig.json", config(enable)); + } + + function config(enabledTypeAquisition: boolean) { + return jsonToReadableText({ + compilerOptions: { + allowJs: true, + traceResolution: true, + }, + typeAcquisition: enabledTypeAquisition ? undefined : { enable: false }, + }); + } + + function verifyTypeAcquisition(enable: boolean) { + typeAcquisition(enable); + timeouts(); + } + + function verifyPendingInstalls() { + host.runPendingInstalls(); + timeouts(); + } + + function timeouts() { + host.runQueuedTimeoutCallbacks(); + host.runQueuedTimeoutCallbacks(); + host.runQueuedTimeoutCallbacks(); + } + } +}); diff --git a/src/testRunner/unittests/tsserver/typingsInstaller.ts b/src/testRunner/unittests/tsserver/typingsInstaller.ts index 743d5d9c071d2..5d0af0132cfca 100644 --- a/src/testRunner/unittests/tsserver/typingsInstaller.ts +++ b/src/testRunner/unittests/tsserver/typingsInstaller.ts @@ -2410,8 +2410,6 @@ describe("unittests:: tsserver:: typingsInstaller:: recomputing resolutions of u }, }); host.runQueuedTimeoutCallbacks(); // Update the graph - // Update the typing - assert.isFalse(proj.resolutionCache.isFileWithInvalidatedNonRelativeUnresolvedImports(app.path as ts.Path)); baselineTsserverLogs("typingsInstaller", scenario, session); } @@ -2515,9 +2513,7 @@ declare module "stream" { }, }); proj.updateGraph(); // Update the graph - // Update the typing session.host.baselineHost("After program update"); - assert.isFalse(proj.resolutionCache.isFileWithInvalidatedNonRelativeUnresolvedImports(file.path as ts.Path)); baselineTsserverLogs("typingsInstaller", "should handle node core modules", session); }); }); diff --git a/src/typingsInstallerCore/typingsInstaller.ts b/src/typingsInstallerCore/typingsInstaller.ts index ce9c607b83c02..f6fc608fd714f 100644 --- a/src/typingsInstallerCore/typingsInstaller.ts +++ b/src/typingsInstallerCore/typingsInstaller.ts @@ -487,7 +487,7 @@ export abstract class TypingsInstaller { const existing = this.projectWatchers.get(projectName); const newSet = new Set(files); - if (!existing || forEachKey(newSet, s => !existing.has(s)) || forEachKey(existing, s => !newSet.has(s))) { + if (!existing || newSet.size !== existing.size || forEachKey(newSet, s => !existing.has(s)) || forEachKey(existing, s => !newSet.has(s))) { this.projectWatchers.set(projectName, newSet); this.sendResponse({ kind: ActionWatchTypingLocations, projectName, files }); } diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 9264a82e4b0a3..c2a6a5f1706d8 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -2862,6 +2862,7 @@ declare namespace ts { private externalFiles; private missingFilesMap; private generatedFilesMap; + private recordChangesToUnresolvedImports; private hasAddedorRemovedFiles; private hasAddedOrRemovedSymlinks; protected languageService: LanguageService; @@ -2982,6 +2983,7 @@ declare namespace ts { */ class InferredProject extends Project { private _isJsInferredProject; + private inferredTypeAcquisition; toggleJsInferredProject(isJsInferredProject: boolean): void; setCompilerOptions(options?: CompilerOptions): void; /** this is canonical project root path */ @@ -2990,6 +2992,7 @@ declare namespace ts { removeRoot(info: ScriptInfo): void; isProjectWithSingleRoot(): boolean; close(): void; + setTypeAcquisition(newTypeAcquisition: ts.TypeAcquisition | undefined): void; getTypeAcquisition(): TypeAcquisition; } class AutoImportProviderProject extends Project { diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js b/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js index 5928dbcafd4f6..50de8df21ade0 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Auto-importable-file-is-in-inferred-project-until-imported.js @@ -186,14 +186,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/node_modules/@angular/forms", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/node_modules/@angular/forms/package.json' dependencies: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -235,7 +233,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -258,7 +255,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js index 3156d65bfe221..f4586769655cc 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/Responds-to-manual-changes-in-node_modules.js @@ -435,14 +435,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/node_modules/@angular/forms", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/node_modules/@angular/forms/package.json' dependencies: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -484,7 +482,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -507,7 +504,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js b/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js index 542e67c272a8c..1476f5f592ff6 100644 --- a/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js +++ b/tests/baselines/reference/tsserver/autoImportProvider/projects-already-inside-node_modules.js @@ -183,14 +183,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/node_modules/@angular/forms", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/node_modules/@angular/forms/package.json' dependencies: ["@angular/core"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -237,7 +235,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -260,7 +257,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js b/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js index fc367f39f2872..3fb521e8ac667 100644 --- a/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js +++ b/tests/baselines/reference/tsserver/auxiliaryProject/does-not-remove-scrips-from-InferredProject.js @@ -374,13 +374,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -420,7 +418,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -444,7 +441,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } 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 461f59ae7845b..026ed3f2755fa 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 @@ -299,13 +299,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "e:/solution/myproject/src", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -345,7 +343,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -369,7 +366,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/configFileSearch/when-projectRootPath-is-not-present.js b/tests/baselines/reference/tsserver/configFileSearch/when-projectRootPath-is-not-present.js index 46c9d088a9d30..561f80a22cb41 100644 --- a/tests/baselines/reference/tsserver/configFileSearch/when-projectRootPath-is-not-present.js +++ b/tests/baselines/reference/tsserver/configFileSearch/when-projectRootPath-is-not-present.js @@ -144,13 +144,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/root/teams/VSCode68/Shared Documents/General/jt-ts-test-workspace", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -190,7 +188,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -214,7 +211,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/configFileSearch/when-projectRootPath-is-present-but-file-is-not-from-project-root.js b/tests/baselines/reference/tsserver/configFileSearch/when-projectRootPath-is-present-but-file-is-not-from-project-root.js index 5e50061b43a9b..f36f6c4b48e60 100644 --- a/tests/baselines/reference/tsserver/configFileSearch/when-projectRootPath-is-present-but-file-is-not-from-project-root.js +++ b/tests/baselines/reference/tsserver/configFileSearch/when-projectRootPath-is-present-but-file-is-not-from-project-root.js @@ -145,13 +145,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/root/teams/VSCode68/Shared Documents/General/jt-ts-test-workspace", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -191,7 +189,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -215,7 +212,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js b/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js index 4805fbd826e41..8d08e03f0cfc1 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js +++ b/tests/baselines/reference/tsserver/configuredProjects/files-are-properly-detached-when-language-service-is-disabled.js @@ -427,13 +427,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -473,7 +471,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -497,7 +494,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-not-close-configured-project-after-closing-last-open-file,-but-should-be-closed-on-next-file-open-if-its-not-the-file-from-same-project.js b/tests/baselines/reference/tsserver/configuredProjects/should-not-close-configured-project-after-closing-last-open-file,-but-should-be-closed-on-next-file-open-if-its-not-the-file-from-same-project.js index c35041d7c5aa0..d85cd8ff2fe12 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-not-close-configured-project-after-closing-last-open-file,-but-should-be-closed-on-next-file-open-if-its-not-the-file-from-same-project.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-not-close-configured-project-after-closing-last-open-file,-but-should-be-closed-on-next-file-open-if-its-not-the-file-from-same-project.js @@ -379,13 +379,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -424,7 +422,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -447,7 +444,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-fails-when-useInferredProjectPerProjectRoot-is-false.js b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-fails-when-useInferredProjectPerProjectRoot-is-false.js index 5629ba21ed2d7..4cfd2f88efda6 100644 --- a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-fails-when-useInferredProjectPerProjectRoot-is-false.js +++ b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-fails-when-useInferredProjectPerProjectRoot-is-false.js @@ -142,13 +142,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -194,7 +192,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -218,7 +215,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js index ab41801119cf0..63c31d46b4e5a 100644 --- a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js +++ b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-projectRootPath-with-useInferredProjectPerProjectRoot.js @@ -122,13 +122,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -174,7 +172,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -198,7 +195,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -317,12 +313,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -368,7 +362,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -392,7 +385,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-reference-paths-without-external-project.js b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-reference-paths-without-external-project.js index f0caa377af25a..d0fece9572c4d 100644 --- a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-reference-paths-without-external-project.js +++ b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-with-reference-paths-without-external-project.js @@ -126,13 +126,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -178,7 +176,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -202,7 +199,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js index b168e904d9ca1..d693476d2edf1 100644 --- a/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js +++ b/tests/baselines/reference/tsserver/dynamicFiles/dynamic-file-without-external-project.js @@ -143,13 +143,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -195,7 +193,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -219,7 +216,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/dynamicFiles/opening-and-closing-untitled-files-when-projectRootPath-is-different-from-currentDirectory.js b/tests/baselines/reference/tsserver/dynamicFiles/opening-and-closing-untitled-files-when-projectRootPath-is-different-from-currentDirectory.js index 6d4a8eaba92bf..6452683ac0d65 100644 --- a/tests/baselines/reference/tsserver/dynamicFiles/opening-and-closing-untitled-files-when-projectRootPath-is-different-from-currentDirectory.js +++ b/tests/baselines/reference/tsserver/dynamicFiles/opening-and-closing-untitled-files-when-projectRootPath-is-different-from-currentDirectory.js @@ -122,13 +122,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -167,7 +165,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -190,7 +187,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/dynamicFiles/opening-untitled-files.js b/tests/baselines/reference/tsserver/dynamicFiles/opening-untitled-files.js index 47d526fe35efd..44f97a94d029c 100644 --- a/tests/baselines/reference/tsserver/dynamicFiles/opening-untitled-files.js +++ b/tests/baselines/reference/tsserver/dynamicFiles/opening-untitled-files.js @@ -119,13 +119,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -164,7 +162,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -187,7 +184,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -528,12 +524,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -564,7 +558,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -587,7 +580,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/externalProjects/deleting-config-file-opened-from-the-external-project-works-with-lazyConfiguredProjectsFromExternalProject.js b/tests/baselines/reference/tsserver/externalProjects/deleting-config-file-opened-from-the-external-project-works-with-lazyConfiguredProjectsFromExternalProject.js index 2eed6f0e7d45f..fe1d0f29ab2b6 100644 --- a/tests/baselines/reference/tsserver/externalProjects/deleting-config-file-opened-from-the-external-project-works-with-lazyConfiguredProjectsFromExternalProject.js +++ b/tests/baselines/reference/tsserver/externalProjects/deleting-config-file-opened-from-the-external-project-works-with-lazyConfiguredProjectsFromExternalProject.js @@ -290,13 +290,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/someuser/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -339,7 +337,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -360,7 +357,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/externalProjects/deleting-config-file-opened-from-the-external-project-works.js b/tests/baselines/reference/tsserver/externalProjects/deleting-config-file-opened-from-the-external-project-works.js index 07fc4a74acf4f..5f534f922a1db 100644 --- a/tests/baselines/reference/tsserver/externalProjects/deleting-config-file-opened-from-the-external-project-works.js +++ b/tests/baselines/reference/tsserver/externalProjects/deleting-config-file-opened-from-the-external-project-works.js @@ -413,13 +413,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/someuser/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -462,7 +460,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -483,7 +480,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/externalProjects/handles-creation-of-external-project-with-jsconfig-before-jsconfig-creation-watcher-is-invoked.js b/tests/baselines/reference/tsserver/externalProjects/handles-creation-of-external-project-with-jsconfig-before-jsconfig-creation-watcher-is-invoked.js index 0d09647ae0c7f..d4aed44cd0254 100644 --- a/tests/baselines/reference/tsserver/externalProjects/handles-creation-of-external-project-with-jsconfig-before-jsconfig-creation-watcher-is-invoked.js +++ b/tests/baselines/reference/tsserver/externalProjects/handles-creation-of-external-project-with-jsconfig-before-jsconfig-creation-watcher-is-invoked.js @@ -354,13 +354,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -400,7 +398,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -424,7 +421,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -578,12 +574,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -624,7 +618,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -649,7 +642,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/externalProjects/language-service-disabled-state-is-updated-in-external-projects.js b/tests/baselines/reference/tsserver/externalProjects/language-service-disabled-state-is-updated-in-external-projects.js index 429f334a6f95e..55df86e810843 100644 --- a/tests/baselines/reference/tsserver/externalProjects/language-service-disabled-state-is-updated-in-external-projects.js +++ b/tests/baselines/reference/tsserver/externalProjects/language-service-disabled-state-is-updated-in-external-projects.js @@ -270,13 +270,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -312,7 +310,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -332,7 +329,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/importHelpers/import-helpers-successfully.js b/tests/baselines/reference/tsserver/importHelpers/import-helpers-successfully.js index 8025b01876796..3d5b013a2d3ce 100644 --- a/tests/baselines/reference/tsserver/importHelpers/import-helpers-successfully.js +++ b/tests/baselines/reference/tsserver/importHelpers/import-helpers-successfully.js @@ -298,13 +298,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/workspace/projects", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -344,7 +342,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -368,7 +365,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js index 916c29cffa605..4ab931c588f90 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js +++ b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-insensitive-system.js @@ -184,13 +184,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -229,7 +227,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -252,7 +249,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -355,12 +351,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -391,7 +385,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -414,7 +407,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -519,12 +511,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -563,7 +553,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -586,7 +575,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -742,12 +730,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -786,7 +772,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -809,7 +794,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -1544,12 +1528,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -1580,7 +1562,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -1603,7 +1584,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -1846,12 +1826,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -1882,7 +1860,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -1905,7 +1882,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -2009,12 +1985,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -2053,7 +2027,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -2076,7 +2049,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -2230,12 +2202,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -2274,7 +2244,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -2297,7 +2266,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -3059,12 +3027,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -3095,7 +3061,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -3118,7 +3083,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -3370,12 +3334,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -3406,7 +3368,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -3429,7 +3390,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -3533,12 +3493,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -3577,7 +3535,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -3600,7 +3557,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -3754,12 +3710,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -3798,7 +3752,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -3821,7 +3774,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -4556,12 +4508,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -4592,7 +4542,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -4615,7 +4564,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -4858,12 +4806,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -4894,7 +4840,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -4917,7 +4862,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -5021,12 +4965,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -5065,7 +5007,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -5088,7 +5029,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -5242,12 +5182,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -5286,7 +5224,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -5309,7 +5246,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js index 4c5518ca6d211..541fe0c39d430 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js +++ b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root-with-case-sensitive-system.js @@ -184,13 +184,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -229,7 +227,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -252,7 +249,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -359,12 +355,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -395,7 +389,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -418,7 +411,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -551,12 +543,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -595,7 +585,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -618,7 +607,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -780,12 +768,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -824,7 +810,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -847,7 +832,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -1594,12 +1578,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -1630,7 +1612,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -1653,7 +1634,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -1902,12 +1882,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/A", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -1946,7 +1924,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -1969,7 +1946,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -2116,12 +2092,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -2160,7 +2134,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -2183,7 +2156,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -2356,12 +2328,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -2400,7 +2370,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -2423,7 +2392,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -3267,12 +3235,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -3303,7 +3269,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -3326,7 +3291,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -3618,12 +3582,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -3654,7 +3616,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -3677,7 +3638,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -3809,12 +3769,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -3853,7 +3811,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -3876,7 +3833,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -4036,12 +3992,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -4080,7 +4034,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -4103,7 +4056,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -4850,12 +4802,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -4886,7 +4836,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -4909,7 +4858,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -5158,12 +5106,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/A", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -5202,7 +5148,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -5225,7 +5170,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -5375,12 +5319,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -5419,7 +5361,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -5442,7 +5383,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -5620,12 +5560,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -5664,7 +5602,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -5687,7 +5624,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js index f3c67290fd42c..5ce6ee016be62 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js +++ b/tests/baselines/reference/tsserver/inferredProjects/inferred-projects-per-project-root.js @@ -184,13 +184,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -229,7 +227,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -252,7 +249,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -355,12 +351,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -391,7 +385,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -414,7 +407,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -519,12 +511,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -563,7 +553,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -586,7 +575,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -742,12 +730,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -786,7 +772,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -809,7 +794,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js b/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js index 43b1d95ef8eb9..1c6401eb2a9dd 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js +++ b/tests/baselines/reference/tsserver/inferredProjects/regression-test---should-infer-typeAcquisition-for-inferred-projects-when-set-undefined.js @@ -134,13 +134,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -180,7 +178,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -204,7 +201,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js b/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js index d3b7034bb95bf..5570f9d96f5b3 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js +++ b/tests/baselines/reference/tsserver/inferredProjects/should-still-retain-configured-project-created-while-opening-the-file.js @@ -250,13 +250,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -296,7 +294,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -320,7 +317,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -532,12 +528,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -569,7 +563,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -593,7 +586,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -746,12 +738,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -791,7 +781,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -815,7 +804,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js b/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js index 0219ae42cf216..14fc370349818 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js +++ b/tests/baselines/reference/tsserver/inferredProjects/should-support-files-without-extensions.js @@ -144,13 +144,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -188,7 +186,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -210,7 +207,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js b/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js index cf9a433921586..e9bbd90fbd215 100644 --- a/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js +++ b/tests/baselines/reference/tsserver/inferredProjects/when-existing-inferred-project-has-no-root-files.js @@ -418,7 +418,6 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } @@ -426,7 +425,6 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslib TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/myproject/node_modules; all files: ["/user/username/projects/myproject/node_modules/module3/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["module3"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -470,7 +468,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -493,7 +490,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js b/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js index 1118b19a8dd5f..fb625e7235040 100644 --- a/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js +++ b/tests/baselines/reference/tsserver/navTo/should-not-include-type-symbols.js @@ -162,13 +162,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -209,7 +207,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -234,7 +231,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js b/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js index b70826970df66..465d2bf5a36e4 100644 --- a/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js +++ b/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js @@ -163,13 +163,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -210,7 +208,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -235,7 +232,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js b/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js index e80668d0270e2..0e2395ce347e8 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/detects-new-package.json-files-that-are-added,-caches-them,-and-watches-them.js @@ -228,13 +228,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -273,7 +271,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -296,7 +293,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js b/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js index 9749756908657..7a7e77ce19f68 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/finds-multiple-package.json-files-when-present.js @@ -244,14 +244,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["redux","webpack","typescript","react"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -304,7 +302,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -327,7 +324,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js b/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js index 78c579e97bff6..0015330abc7cc 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/finds-package.json-on-demand,-watches-for-deletion,-and-removes-them-from-cache.js @@ -244,14 +244,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["redux","webpack","typescript","react"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -304,7 +302,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -327,7 +324,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -423,12 +419,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -464,7 +458,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -487,7 +480,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js b/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js index a6888e12c7a42..46ae886495156 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js @@ -231,14 +231,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -280,7 +278,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -303,7 +300,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -396,13 +392,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["redux","webpack","typescript","react"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -445,7 +439,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -468,7 +461,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js b/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js index 7ccbffb367bb6..6e97099ac5cdc 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/handles-errors-in-json-parsing-of-package.json.js @@ -231,14 +231,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -280,7 +278,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -303,7 +300,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -396,13 +392,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["redux","webpack","typescript","react"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -445,7 +439,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -468,7 +461,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projectErrors/for-external-project.js b/tests/baselines/reference/tsserver/projectErrors/for-external-project.js index 46d6072d5d63f..9f0265b25f9b7 100644 --- a/tests/baselines/reference/tsserver/projectErrors/for-external-project.js +++ b/tests/baselines/reference/tsserver/projectErrors/for-external-project.js @@ -130,13 +130,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -172,7 +170,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -192,7 +189,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js b/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js index 10ddbe3976ae1..85c691da9726d 100644 --- a/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js +++ b/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js @@ -144,13 +144,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -190,7 +188,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -214,7 +211,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js b/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js index c8f7d3af5e68d..af0909e50ed9c 100644 --- a/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js +++ b/tests/baselines/reference/tsserver/projectErrors/reports-errors-correctly-when-file-referenced-by-inferred-project-root,-is-opened-right-after-closing-the-root-file.js @@ -143,13 +143,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -195,7 +193,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -219,7 +216,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -342,12 +338,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -397,7 +391,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -421,7 +414,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -818,12 +810,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -865,7 +855,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -889,7 +878,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -934,12 +922,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/myproject", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -983,7 +969,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -1007,7 +992,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projectReferences/with-dts-file-next-to-ts-file.js b/tests/baselines/reference/tsserver/projectReferences/with-dts-file-next-to-ts-file.js index 4cfa521a2dedc..b646aa07cdaaa 100644 --- a/tests/baselines/reference/tsserver/projectReferences/with-dts-file-next-to-ts-file.js +++ b/tests/baselines/reference/tsserver/projectReferences/with-dts-file-next-to-ts-file.js @@ -305,13 +305,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/src", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -350,7 +348,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -373,7 +370,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projects/files-with-mixed-content-are-handled-correctly.js b/tests/baselines/reference/tsserver/projects/files-with-mixed-content-are-handled-correctly.js index 914375adce1fc..e8e9598412a42 100644 --- a/tests/baselines/reference/tsserver/projects/files-with-mixed-content-are-handled-correctly.js +++ b/tests/baselines/reference/tsserver/projects/files-with-mixed-content-are-handled-correctly.js @@ -125,13 +125,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -167,7 +165,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -187,7 +184,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js index 937cefe832171..79c7d20f9f8b4 100644 --- a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js +++ b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-custom-safe-type-list.js @@ -161,13 +161,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["duck-types"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -226,7 +224,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -248,7 +245,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-legacy-safe-type-list.js b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-legacy-safe-type-list.js index 36c877fe38483..2f23f35541bc4 100644 --- a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-legacy-safe-type-list.js +++ b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-a-legacy-safe-type-list.js @@ -167,14 +167,12 @@ TI:: [hh:mm:ss:mss] Got install request ], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["blissfuljs"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["blissfuljs"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -225,7 +223,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -247,7 +244,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js index a03fa64fcc121..1b25d1a317eae 100644 --- a/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js +++ b/tests/baselines/reference/tsserver/projects/ignores-files-excluded-by-the-default-type-list.js @@ -174,13 +174,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["kendo-ui","office"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -266,7 +264,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -289,7 +286,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js b/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js index e2712530662b7..43df6015859c2 100644 --- a/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js +++ b/tests/baselines/reference/tsserver/projects/loading-files-with-correct-priority.js @@ -451,13 +451,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -497,7 +495,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -521,7 +518,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -741,12 +737,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -786,7 +780,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -810,7 +803,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projects/regression-test-for-crash-in-acquireOrUpdateDocument.js b/tests/baselines/reference/tsserver/projects/regression-test-for-crash-in-acquireOrUpdateDocument.js index acd5a855c2148..9ef68dc60e17d 100644 --- a/tests/baselines/reference/tsserver/projects/regression-test-for-crash-in-acquireOrUpdateDocument.js +++ b/tests/baselines/reference/tsserver/projects/regression-test-for-crash-in-acquireOrUpdateDocument.js @@ -324,13 +324,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -370,7 +368,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -394,7 +391,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js b/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js index 7327480fd331a..d36656ff53ef2 100644 --- a/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js +++ b/tests/baselines/reference/tsserver/projects/should-disable-features-when-the-files-are-too-large.js @@ -144,13 +144,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -194,7 +192,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -214,7 +211,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -365,12 +361,10 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -414,7 +408,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -434,7 +427,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js index ee370fcb9e0cf..ed368b88fe5ba 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js +++ b/tests/baselines/reference/tsserver/resolutionCache/can-load-typings-that-are-proper-modules.js @@ -205,13 +205,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -250,7 +248,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -273,7 +270,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js b/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js index bd7c9b5a93112..ecfd2f61d43a7 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js +++ b/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js @@ -125,13 +125,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -171,7 +169,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -195,7 +192,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-import-from-the-cache-file-with-currentDirectory-at-root.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-import-from-the-cache-file-with-currentDirectory-at-root.js index 8e73b011c67fa..fb40d6ef9de1a 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-import-from-the-cache-file-with-currentDirectory-at-root.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-import-from-the-cache-file-with-currentDirectory-at-root.js @@ -225,13 +225,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -271,7 +269,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowJs": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -297,7 +294,6 @@ Info seq [hh:mm:ss:mss] event: "allowJs": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-import-from-the-cache-file.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-import-from-the-cache-file.js index 745a39d77e997..3dee5e559aa20 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-import-from-the-cache-file.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-import-from-the-cache-file.js @@ -280,13 +280,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -328,7 +326,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowJs": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -354,7 +351,6 @@ Info seq [hh:mm:ss:mss] event: "allowJs": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-relative-import-from-the-cache-file-with-currentDirectory-at-root.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-relative-import-from-the-cache-file-with-currentDirectory-at-root.js index f9421a749fbd7..5cb7015eeb1e8 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-relative-import-from-the-cache-file-with-currentDirectory-at-root.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-relative-import-from-the-cache-file-with-currentDirectory-at-root.js @@ -212,13 +212,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -258,7 +256,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowJs": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -284,7 +281,6 @@ Info seq [hh:mm:ss:mss] event: "allowJs": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-relative-import-from-the-cache-file.js b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-relative-import-from-the-cache-file.js index 152a4dbbfc7ea..4de8cc974a141 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-relative-import-from-the-cache-file.js +++ b/tests/baselines/reference/tsserver/resolutionCache/when-resolution-is-succeeds-in-global-typings-location-with-relative-import-from-the-cache-file.js @@ -267,13 +267,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -315,7 +313,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowJs": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -341,7 +338,6 @@ Info seq [hh:mm:ss:mss] event: "allowJs": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js index fc5cdef20849a..c3f396f7fed0d 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project-with-skipLibCheck-as-false.js @@ -152,13 +152,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -203,7 +201,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -224,7 +221,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js index 38230f04df1a0..0a0136ffed7d0 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js @@ -149,13 +149,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -199,7 +197,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -219,7 +216,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js index bbd6e2c2eac3e..4551c67a84909 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js @@ -166,13 +166,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -212,7 +210,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -236,7 +233,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -454,12 +450,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -490,7 +484,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -513,7 +506,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -729,12 +721,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -774,7 +764,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -798,7 +787,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js index 1654e01f23da7..c5660f0cd343f 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-js-project-with-tscheck.js @@ -166,13 +166,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -214,7 +212,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -240,7 +237,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js index 7ba4f8db7e449..5479310dc227b 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-in-configured-project-with-tscheck.js @@ -161,13 +161,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -208,7 +206,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -233,7 +230,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js index ffae6347b2a95..1406681336776 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/reports-semantic-error-with-tscheck.js @@ -137,13 +137,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -183,7 +181,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -207,7 +204,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js b/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js index b10c7b21e2450..b1b0a64b423ae 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/should-not-report-bind-errors-for-declaration-files-with-skipLibCheck=true.js @@ -190,13 +190,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -237,7 +235,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -262,7 +259,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js b/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js index 2298c65961c56..b84af2624b6be 100644 --- a/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js +++ b/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js @@ -132,13 +132,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -178,7 +176,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -202,7 +199,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js b/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js index 85ac0ea7d9539..dbfe3934930c9 100644 --- a/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js +++ b/tests/baselines/reference/tsserver/telemetry/does-nothing-for-inferred-project.js @@ -124,13 +124,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -170,7 +168,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -194,7 +191,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js b/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js index 78d34f5e188ad..af4a7bca491bf 100644 --- a/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js +++ b/tests/baselines/reference/tsserver/telemetry/even-for-project-with-ts-check-in-config.js @@ -160,13 +160,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -208,7 +206,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -234,7 +231,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js b/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js index 32ed70192ad59..51dc4d9856d51 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-event-for-inferred-project.js @@ -128,13 +128,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -174,7 +172,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -198,7 +195,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -298,12 +294,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -343,7 +337,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -367,7 +360,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js index 33d8ece2d14fb..46a0af9370129 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-file-sizes.js @@ -177,13 +177,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -224,7 +222,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -249,7 +246,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js index 062c777402704..53ca24a3eb9d8 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-typeAcquisition-settings.js @@ -167,13 +167,11 @@ TI:: [hh:mm:ss:mss] Got install request ], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["hunter2","hunter3"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -224,7 +222,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -252,7 +249,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/textStorage/should-be-able-to-return-the-file-size-when-a-JS-file-is-too-large-to-load-into-text.js b/tests/baselines/reference/tsserver/textStorage/should-be-able-to-return-the-file-size-when-a-JS-file-is-too-large-to-load-into-text.js index 795f4502d7858..d066b46f3f0dd 100644 --- a/tests/baselines/reference/tsserver/textStorage/should-be-able-to-return-the-file-size-when-a-JS-file-is-too-large-to-load-into-text.js +++ b/tests/baselines/reference/tsserver/textStorage/should-be-able-to-return-the-file-size-when-a-JS-file-is-too-large-to-load-into-text.js @@ -146,13 +146,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -192,7 +190,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -216,7 +213,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typeAquisition/change-after-enabling-typeAquisition-multiple-projects-with-shared-resolution.js b/tests/baselines/reference/tsserver/typeAquisition/change-after-enabling-typeAquisition-multiple-projects-with-shared-resolution.js new file mode 100644 index 0000000000000..7e91b96744844 --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/change-after-enabling-typeAquisition-multiple-projects-with-shared-resolution.js @@ -0,0 +1,1617 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] 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/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/node_modules: *new* + {} +/users/user/projects/project1: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 2, + "jsSize": 46, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 453, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json +2: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project3/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running PendingInstalls callback:: count: 0 + +After running PendingInstalls callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/change-after-enabling-typeAquisition-multiple-projects.js b/tests/baselines/reference/tsserver/typeAquisition/change-after-enabling-typeAquisition-multiple-projects.js new file mode 100644 index 0000000000000..91f6a31793dcb --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/change-after-enabling-typeAquisition-multiple-projects.js @@ -0,0 +1,1661 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/users/user/projects/project2/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project3/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: *new* + {} +/users/user/projects/project2/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 2, + "jsSize": 46, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 453, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project3/node_modules/bar/index.js', result '/users/user/projects/project3/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project3/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/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/user/projects/project3/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project3/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: *new* + {} +/users/user/projects/project3/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json +2: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running PendingInstalls callback:: count: 0 + +After running PendingInstalls callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/change-after-enabling-typeAquisition.js b/tests/baselines/reference/tsserver/typeAquisition/change-after-enabling-typeAquisition.js new file mode 100644 index 0000000000000..a0799762b7794 --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/change-after-enabling-typeAquisition.js @@ -0,0 +1,780 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json +2: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: undefined *changed* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: false *changed* + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Npm config file: '/home/src/Library/Caches/typescript/package.json' is missing, creating new one... +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/Library/Caches/typescript/package.json 0:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/Library/Caches/typescript/package.json 0:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/Library/Caches/typescript/package.json 0:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/Library/Caches/typescript/package.json 0:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/types-registry :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/types-registry :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/types-registry/index.json :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/types-registry/index.json :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/home/src/Library/Caches/typescript/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Timeout callback:: count: 2 +2: *ensureProjectForOpenFiles* +6: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project1/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +After running Timeout callback:: count: 1 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Timeout callback:: count: 1 +2: *ensureProjectForOpenFiles* *deleted* +6: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation *deleted* +7: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + +Before running Timeout callback:: count: 1 +7: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running PendingInstalls callback:: count: 0 + +After running PendingInstalls callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects-with-shared-resolution.js b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects-with-shared-resolution.js new file mode 100644 index 0000000000000..a026cfdc2642f --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects-with-shared-resolution.js @@ -0,0 +1,2762 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] 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/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/node_modules: *new* + {} +/users/user/projects/project1: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 2 + } + } +TI:: [hh:mm:ss:mss] #2 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 434, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: *new* + {} + +PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Timeout callback:: count: 1 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +TI:: Installation #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true + +Timeout callback:: count: 3 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 2, + "projectName": "/users/user/projects/project2/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 2, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 4 +4: *ensureProjectForOpenFiles* *deleted* +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json +5: /users/user/projects/project2/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Before running Timeout callback:: count: 4 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json +5: /users/user/projects/project2/jsconfig.json +6: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project1/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project2/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +After running Timeout callback:: count: 3 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Timeout callback:: count: 3 +6: *ensureProjectForOpenFiles* *deleted* +7: /users/user/projects/project1/jsconfig.json *new* +9: /users/user/projects/project2/jsconfig.json *new* +10: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 2 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project3/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* + /users/user/projects/project2/jsconfig.json *deleted* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 3 +7: /users/user/projects/project1/jsconfig.json +9: /users/user/projects/project2/jsconfig.json +10: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +11: /users/user/projects/project1/jsconfig.json +12: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 2 +11: /users/user/projects/project1/jsconfig.json *new* +12: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 4 *changed* + projectProgramVersion: 3 + dirty: true *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 4 projectProgramVersion: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 4 + projectProgramVersion: 4 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project3/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +13: /users/user/projects/project1/jsconfig.json +14: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +13: /users/user/projects/project1/jsconfig.json *new* +14: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 5 *changed* + projectProgramVersion: 4 + dirty: true *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 5 projectProgramVersion: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 5 + projectProgramVersion: 5 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project3/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects.js b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects.js new file mode 100644 index 0000000000000..f61752e506a8d --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects.js @@ -0,0 +1,2874 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/users/user/projects/project2/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project3/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/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/user/projects/project2/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project2/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 2 + } + } +TI:: [hh:mm:ss:mss] #2 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 434, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: *new* + {} +/users/user/projects/project2/node_modules: *new* + {} + +PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project3/node_modules/bar/index.js', result '/users/user/projects/project3/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project3/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/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/user/projects/project3/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project3/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: *new* + {} +/users/user/projects/project3/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Timeout callback:: count: 1 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +TI:: Installation #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true + +Timeout callback:: count: 3 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 2, + "projectName": "/users/user/projects/project2/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 2, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 4 +4: *ensureProjectForOpenFiles* *deleted* +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json +5: /users/user/projects/project2/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Before running Timeout callback:: count: 4 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json +5: /users/user/projects/project2/jsconfig.json +6: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project1/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project2/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +After running Timeout callback:: count: 3 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Timeout callback:: count: 3 +6: *ensureProjectForOpenFiles* *deleted* +7: /users/user/projects/project1/jsconfig.json *new* +9: /users/user/projects/project2/jsconfig.json *new* +10: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 2 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project2/jsconfig.json *deleted* +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 3 +7: /users/user/projects/project1/jsconfig.json +9: /users/user/projects/project2/jsconfig.json +10: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +11: /users/user/projects/project1/jsconfig.json +12: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 2 +11: /users/user/projects/project1/jsconfig.json *new* +12: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 4 *changed* + projectProgramVersion: 3 + dirty: true *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 4 projectProgramVersion: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 4 + projectProgramVersion: 4 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project1/jsconfig.json *new* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js + version: Text-1 + containingProjects: 0 +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +13: /users/user/projects/project1/jsconfig.json +14: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +13: /users/user/projects/project1/jsconfig.json *new* +14: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 5 *changed* + projectProgramVersion: 4 + dirty: true *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 5 projectProgramVersion: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 5 + projectProgramVersion: 5 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js + version: Text-1 + containingProjects: 0 +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-when-typing-installer-installs-typing.js b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-when-typing-installer-installs-typing.js new file mode 100644 index 0000000000000..0e16540aaaeeb --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-when-typing-installer-installs-typing.js @@ -0,0 +1,1421 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] Directory '/home/src/Library/Caches/typescript/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Npm config file: '/home/src/Library/Caches/typescript/package.json' is missing, creating new one... +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before running PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false + +Before running Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json +2: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project1/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +After running Timeout callback:: count: 2 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Timeout callback:: count: 2 +2: *ensureProjectForOpenFiles* *deleted* +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* + +Before running Timeout callback:: count: 2 +3: /users/user/projects/project1/jsconfig.json +4: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +5: /users/user/projects/project1/jsconfig.json +6: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 2 +5: /users/user/projects/project1/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 4 *changed* + projectProgramVersion: 3 + dirty: true *changed* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 4 projectProgramVersion: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatches *deleted*:: +/home/src/Library/Caches/typescript/package.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +FsWatchesRecursive *deleted*:: +/home/src/Library/Caches/typescript/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 4 + projectProgramVersion: 4 *changed* + dirty: false *changed* + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project1/jsconfig.json *new* + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +7: /users/user/projects/project1/jsconfig.json +8: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +7: /users/user/projects/project1/jsconfig.json *new* +8: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 5 *changed* + projectProgramVersion: 4 + dirty: true *changed* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 5 projectProgramVersion: 4 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 5 + projectProgramVersion: 5 *changed* + dirty: false *changed* + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project1/jsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-with-already-aquired-typing-multiple-projects-with-shared-resolution.js b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-with-already-aquired-typing-multiple-projects-with-shared-resolution.js new file mode 100644 index 0000000000000..95e577e41fa3b --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-with-already-aquired-typing-multiple-projects-with-shared-resolution.js @@ -0,0 +1,2020 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +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/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/node_modules: *new* + {} +/users/user/projects/project1: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 1, + "jsSize": 23, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 432, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 2, + "jsSize": 46, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 453, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + version: Text-1 + containingProjects: 2 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json +2: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project3/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +3: /users/user/projects/project1/jsconfig.json +4: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 2 + dirty: true *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 + projectProgramVersion: 3 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project3/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-with-already-aquired-typing-multiple-projects.js b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-with-already-aquired-typing-multiple-projects.js new file mode 100644 index 0000000000000..0abfe0b5bf035 --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-with-already-aquired-typing-multiple-projects.js @@ -0,0 +1,2061 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/users/user/projects/project2/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project3/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +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/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 1, + "jsSize": 23, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 432, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 2, + "jsSize": 46, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 453, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: *new* + {} +/users/user/projects/project2/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project3/node_modules/bar/index.js', result '/users/user/projects/project3/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project3/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/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/user/projects/project3/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project3/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: *new* + {} +/users/user/projects/project3/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + version: Text-1 + containingProjects: 2 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json +2: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +3: /users/user/projects/project1/jsconfig.json +4: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 2 + dirty: true *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 + projectProgramVersion: 3 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-with-already-aquired-typing.js b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-with-already-aquired-typing.js new file mode 100644 index 0000000000000..9edbce2dd1f8b --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/changes-to-typeAquisition-with-already-aquired-typing.js @@ -0,0 +1,1123 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' does not exist. +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/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Npm config file: '/home/src/Library/Caches/typescript/package.json' is missing, creating new one... +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/Library/Caches/typescript/package.json 0:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/Library/Caches/typescript/package.json 0:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /home/src/Library/Caches/typescript/package.json 0:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /home/src/Library/Caches/typescript/package.json 0:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/types-registry :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/types-registry :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/types-registry/index.json :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/types-registry/index.json :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/home/src/Library/Caches/typescript/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Timeout callback:: count: 1 +4: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 1, + "jsSize": 23, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 432, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project1/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Timeout callback:: count: 1 +4: /users/user/projects/project1/jsconfig.jsonFailedLookupInvalidation *deleted* +5: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 2 *changed* + autoImportProviderHost: false *changed* + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +6: /users/user/projects/project1/jsconfig.json +7: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 2 +5: *ensureProjectForOpenFiles* *deleted* +6: /users/user/projects/project1/jsconfig.json *new* +7: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 2 + dirty: true *changed* + autoImportProviderHost: undefined *changed* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatches *deleted*:: +/home/src/Library/Caches/typescript/package.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +FsWatchesRecursive *deleted*:: +/home/src/Library/Caches/typescript/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 + projectProgramVersion: 3 *changed* + dirty: false *changed* + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +8: /users/user/projects/project1/jsconfig.json +9: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +8: /users/user/projects/project1/jsconfig.json *new* +9: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 4 *changed* + projectProgramVersion: 3 + dirty: true *changed* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 4 projectProgramVersion: 3 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 4 + projectProgramVersion: 4 *changed* + dirty: false *changed* + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project1/jsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/disabled-typeAquisition-multiple-projects-with-shared-resolution.js b/tests/baselines/reference/tsserver/typeAquisition/disabled-typeAquisition-multiple-projects-with-shared-resolution.js new file mode 100644 index 0000000000000..690af18bbaf23 --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/disabled-typeAquisition-multiple-projects-with-shared-resolution.js @@ -0,0 +1,1651 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] 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/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/node_modules: *new* + {} +/users/user/projects/project1: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 434, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Timeout callback:: count: 1 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project2/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 3 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project2/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Before running Timeout callback:: count: 3 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project2/jsconfig.json +4: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project2/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +After running Timeout callback:: count: 2 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Timeout callback:: count: 2 +4: *ensureProjectForOpenFiles* *deleted* +5: /users/user/projects/project2/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project3/jsconfig.json + /users/user/projects/project2/jsconfig.json *deleted* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 2 +5: /users/user/projects/project2/jsconfig.json +6: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/disabled-typeAquisition-multiple-projects.js b/tests/baselines/reference/tsserver/typeAquisition/disabled-typeAquisition-multiple-projects.js new file mode 100644 index 0000000000000..906f9a8e7dbde --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/disabled-typeAquisition-multiple-projects.js @@ -0,0 +1,1731 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/users/user/projects/project2/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project3/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/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/user/projects/project2/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project2/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: *new* + {} +/users/user/projects/project2/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 434, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project3/node_modules/bar/index.js', result '/users/user/projects/project3/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project3/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/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/user/projects/project3/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project3/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: *new* + {} +/users/user/projects/project3/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Timeout callback:: count: 1 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project2/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 3 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project2/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Before running Timeout callback:: count: 3 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project2/jsconfig.json +4: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project2/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +After running Timeout callback:: count: 2 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Timeout callback:: count: 2 +4: *ensureProjectForOpenFiles* *deleted* +5: /users/user/projects/project2/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project2/jsconfig.json *deleted* +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 2 +5: /users/user/projects/project2/jsconfig.json +6: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/disabled-typeAquisition.js b/tests/baselines/reference/tsserver/typeAquisition/disabled-typeAquisition.js new file mode 100644 index 0000000000000..f7f55dd038f3a --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/disabled-typeAquisition.js @@ -0,0 +1,290 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +Before running PendingInstalls callback:: count: 0 + +After running PendingInstalls callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/does-not-depend-on-extension.js b/tests/baselines/reference/tsserver/typeAquisition/does-not-depend-on-extension.js index fd5a50bb7958b..ff67c617d6e9e 100644 --- a/tests/baselines/reference/tsserver/typeAquisition/does-not-depend-on-extension.js +++ b/tests/baselines/reference/tsserver/typeAquisition/does-not-depend-on-extension.js @@ -138,13 +138,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -180,7 +178,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -200,7 +197,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typeAquisition/enabled-typeAquisition-multiple-projects-with-shared-resolution.js b/tests/baselines/reference/tsserver/typeAquisition/enabled-typeAquisition-multiple-projects-with-shared-resolution.js new file mode 100644 index 0000000000000..0a573fb328d8e --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/enabled-typeAquisition-multiple-projects-with-shared-resolution.js @@ -0,0 +1,2003 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] 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/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/node_modules: *new* + {} +/users/user/projects/project1: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 2 + } + } +TI:: [hh:mm:ss:mss] #2 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 434, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: *new* + {} + +PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Timeout callback:: count: 1 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +TI:: Installation #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true + +Timeout callback:: count: 3 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 2, + "projectName": "/users/user/projects/project2/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 2, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 4 +4: *ensureProjectForOpenFiles* *deleted* +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json +5: /users/user/projects/project2/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Before running Timeout callback:: count: 4 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json +5: /users/user/projects/project2/jsconfig.json +6: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project1/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project2/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +After running Timeout callback:: count: 3 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Timeout callback:: count: 3 +6: *ensureProjectForOpenFiles* *deleted* +7: /users/user/projects/project1/jsconfig.json *new* +9: /users/user/projects/project2/jsconfig.json *new* +10: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 2 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project3/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* + /users/user/projects/project2/jsconfig.json *deleted* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 3 +7: /users/user/projects/project1/jsconfig.json +9: /users/user/projects/project2/jsconfig.json +10: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/enabled-typeAquisition-multiple-projects.js b/tests/baselines/reference/tsserver/typeAquisition/enabled-typeAquisition-multiple-projects.js new file mode 100644 index 0000000000000..ba126aa18e1c1 --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/enabled-typeAquisition-multiple-projects.js @@ -0,0 +1,2081 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/users/user/projects/project2/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project3/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/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/user/projects/project2/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project2/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 2 + } + } +TI:: [hh:mm:ss:mss] #2 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 434, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: *new* + {} +/users/user/projects/project2/node_modules: *new* + {} + +PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project3/node_modules/bar/index.js', result '/users/user/projects/project3/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project3/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/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/user/projects/project3/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project3/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: *new* + {} +/users/user/projects/project3/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Timeout callback:: count: 1 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +TI:: Installation #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true + +Timeout callback:: count: 3 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 2, + "projectName": "/users/user/projects/project2/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 2, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 4 +4: *ensureProjectForOpenFiles* *deleted* +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json +5: /users/user/projects/project2/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Before running Timeout callback:: count: 4 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json +5: /users/user/projects/project2/jsconfig.json +6: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project1/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project2/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +After running Timeout callback:: count: 3 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Timeout callback:: count: 3 +6: *ensureProjectForOpenFiles* *deleted* +7: /users/user/projects/project1/jsconfig.json *new* +9: /users/user/projects/project2/jsconfig.json *new* +10: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 2 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project2/jsconfig.json *deleted* +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 3 +7: /users/user/projects/project1/jsconfig.json +9: /users/user/projects/project2/jsconfig.json +10: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/enabled-typeAquisition.js b/tests/baselines/reference/tsserver/typeAquisition/enabled-typeAquisition.js new file mode 100644 index 0000000000000..c711fd87da7a0 --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/enabled-typeAquisition.js @@ -0,0 +1,821 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] Directory '/home/src/Library/Caches/typescript/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Npm config file: '/home/src/Library/Caches/typescript/package.json' is missing, creating new one... +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before running PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false + +Before running Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json +2: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project1/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +After running Timeout callback:: count: 2 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Timeout callback:: count: 2 +2: *ensureProjectForOpenFiles* *deleted* +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* + +Before running Timeout callback:: count: 2 +3: /users/user/projects/project1/jsconfig.json +4: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/midway-changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects-with-shared-resolution.js b/tests/baselines/reference/tsserver/typeAquisition/midway-changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects-with-shared-resolution.js new file mode 100644 index 0000000000000..99b2be15440d2 --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/midway-changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects-with-shared-resolution.js @@ -0,0 +1,2400 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] 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/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/node_modules: *new* + {} +/users/user/projects/project1: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 2 + } + } +TI:: [hh:mm:ss:mss] #2 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 434, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: *new* + {} + +PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Timeout callback:: count: 1 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +TI:: Installation #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true + +Timeout callback:: count: 3 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 2, + "projectName": "/users/user/projects/project2/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 2, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 4 +4: *ensureProjectForOpenFiles* *deleted* +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json +5: /users/user/projects/project2/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json, Cancelled earlier one +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 4 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +5: /users/user/projects/project2/jsconfig.json +7: /users/user/projects/project1/jsconfig.json +8: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 4 +3: /users/user/projects/project1/jsconfig.json *deleted* +6: *ensureProjectForOpenFiles* *deleted* +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +5: /users/user/projects/project2/jsconfig.json +7: /users/user/projects/project1/jsconfig.json *new* +8: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project2/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +After running Timeout callback:: count: 2 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Timeout callback:: count: 2 +8: *ensureProjectForOpenFiles* *deleted* +9: /users/user/projects/project2/jsconfig.json *new* +10: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project3/jsconfig.json + /users/user/projects/project2/jsconfig.json *deleted* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 2 +9: /users/user/projects/project2/jsconfig.json +10: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +11: /users/user/projects/project1/jsconfig.json +12: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +11: /users/user/projects/project1/jsconfig.json *new* +12: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 2 + dirty: true *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 + projectProgramVersion: 3 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project3/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/midway-changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects.js b/tests/baselines/reference/tsserver/typeAquisition/midway-changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects.js new file mode 100644 index 0000000000000..664c9be0fda2e --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/midway-changes-to-typeAquisition-when-typing-installer-installs-typing-multiple-projects.js @@ -0,0 +1,2494 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/users/user/projects/project2/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project3/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/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/user/projects/project2/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project2/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 2 + } + } +TI:: [hh:mm:ss:mss] #2 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 434, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: *new* + {} +/users/user/projects/project2/node_modules: *new* + {} + +PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project3/node_modules/bar/index.js', result '/users/user/projects/project3/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project3/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/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/user/projects/project3/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project3/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: *new* + {} +/users/user/projects/project3/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Timeout callback:: count: 1 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +TI:: Installation #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true + +Timeout callback:: count: 3 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 2, + "projectName": "/users/user/projects/project2/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 2, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 4 +4: *ensureProjectForOpenFiles* *deleted* +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +3: /users/user/projects/project1/jsconfig.json +5: /users/user/projects/project2/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json, Cancelled earlier one +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 4 +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +5: /users/user/projects/project2/jsconfig.json +7: /users/user/projects/project1/jsconfig.json +8: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 4 +3: /users/user/projects/project1/jsconfig.json *deleted* +6: *ensureProjectForOpenFiles* *deleted* +2: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +5: /users/user/projects/project2/jsconfig.json +7: /users/user/projects/project1/jsconfig.json *new* +8: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project2/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +After running Timeout callback:: count: 2 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Timeout callback:: count: 2 +8: *ensureProjectForOpenFiles* *deleted* +9: /users/user/projects/project2/jsconfig.json *new* +10: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project2/jsconfig.json *deleted* +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 2 +9: /users/user/projects/project2/jsconfig.json +10: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +11: /users/user/projects/project1/jsconfig.json +12: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +11: /users/user/projects/project1/jsconfig.json *new* +12: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 2 + dirty: true *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 + projectProgramVersion: 3 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js + version: Text-1 + containingProjects: 0 +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/midway-changes-to-typeAquisition-when-typing-installer-installs-typing.js b/tests/baselines/reference/tsserver/typeAquisition/midway-changes-to-typeAquisition-when-typing-installer-installs-typing.js new file mode 100644 index 0000000000000..766010e427185 --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/midway-changes-to-typeAquisition-when-typing-installer-installs-typing.js @@ -0,0 +1,1090 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] Directory '/home/src/Library/Caches/typescript/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Npm config file: '/home/src/Library/Caches/typescript/package.json' is missing, creating new one... +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before running PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json, Cancelled earlier one +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +3: /users/user/projects/project1/jsconfig.json +4: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *deleted* +2: *ensureProjectForOpenFiles* *deleted* +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: true + autoImportProviderHost: undefined *changed* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 *changed* + dirty: false *changed* + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +5: /users/user/projects/project1/jsconfig.json +6: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +5: /users/user/projects/project1/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 2 + dirty: true *changed* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 + projectProgramVersion: 3 *changed* + dirty: false *changed* + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js b/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js index 48c118e081288..3cbac6cb77531 100644 --- a/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js +++ b/tests/baselines/reference/tsserver/typeAquisition/prefer-typings-in-second-pass.js @@ -197,7 +197,6 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } @@ -205,7 +204,6 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslib TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/project/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -246,7 +244,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -271,7 +268,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typeAquisition/receives-update-of-typings-after-project-changes-multiple-projects-with-shared-resolution.js b/tests/baselines/reference/tsserver/typeAquisition/receives-update-of-typings-after-project-changes-multiple-projects-with-shared-resolution.js new file mode 100644 index 0000000000000..240b3a2db9fef --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/receives-update-of-typings-after-project-changes-multiple-projects-with-shared-resolution.js @@ -0,0 +1,2508 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] 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/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/node_modules: *new* + {} +/users/user/projects/project1: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 2 + } + } +TI:: [hh:mm:ss:mss] #2 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 434, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: *new* + {} + +PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json +2: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Timeout callback:: count: 1 +4: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +TI:: Installation #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 2, + "projectName": "/users/user/projects/project2/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 2, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 3 +4: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +5: /users/user/projects/project2/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 2 +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Before running Timeout callback:: count: 3 +4: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +5: /users/user/projects/project2/jsconfig.json +6: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project2/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +After running Timeout callback:: count: 2 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Timeout callback:: count: 2 +6: *ensureProjectForOpenFiles* *deleted* +7: /users/user/projects/project2/jsconfig.json *new* +8: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 2 +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project3/jsconfig.json + /users/user/projects/project2/jsconfig.json *deleted* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 2 +7: /users/user/projects/project2/jsconfig.json +8: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +9: /users/user/projects/project1/jsconfig.json +10: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +9: /users/user/projects/project1/jsconfig.json *new* +10: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 2 + dirty: true *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/node_modules/bar/index.js', result '/users/user/projects/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project2: + {} +/users/user/projects/project3: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 + projectProgramVersion: 3 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 1 *changed* + /users/user/projects/project3/jsconfig.json + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/receives-update-of-typings-after-project-changes-multiple-projects.js b/tests/baselines/reference/tsserver/typeAquisition/receives-update-of-typings-after-project-changes-multiple-projects.js new file mode 100644 index 0000000000000..7f6bf8df9886a --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/receives-update-of-typings-after-project-changes-multiple-projects.js @@ -0,0 +1,2618 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project2/app.js] +var x = require('bar'); + +//// [/users/user/projects/project2/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project2/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + +//// [/users/user/projects/project3/app.js] +var x = require('bar'); + +//// [/users/user/projects/project3/app2.js] +var x = require('foo'); + +//// [/users/user/projects/project3/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + +//// [/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts] +export const foo = 1; + +//// [/users/user/projects/project2/node_modules/bar/index.js] +export const x = 1 + +//// [/users/user/projects/project3/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + }, + "foo": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project2/app.js" + }, + "seq": 2, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project2/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project2/jsconfig.json, currentDirectory: /users/user/projects/project2 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/jsconfig.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project2/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project2/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2 1 undefined Config: /users/user/projects/project2/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/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/user/projects/project2/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project2/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'foo' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json 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: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project2/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/foo/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project2/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json", + "files": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/bower_components 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project2/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 2 + } + } +TI:: [hh:mm:ss:mss] #2 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "318b0b83fbc7be458819ec932b0b673d12709d07882bd4b96f96985c09b696c4", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 434, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project2/app.js", + "configFile": "/users/user/projects/project2/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project2/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: *new* + {} +/users/user/projects/project2/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: *new* + {} +/users/user/projects/project2/node_modules: *new* + {} + +PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json + +Before request + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project3/app.js" + }, + "seq": 3, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project3/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project3/jsconfig.json, currentDirectory: /users/user/projects/project3 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/jsconfig.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project3/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project3/app.js", + "/users/user/projects/project3/app2.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project3/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project3/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3 1 undefined Config: /users/user/projects/project3/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/app2.js 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project3/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project3/node_modules/bar/index.js', result '/users/user/projects/project3/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project3/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/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/user/projects/project3/node_modules 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache +Info seq [hh:mm:ss:mss] ======== Resolving module 'foo' from '/users/user/projects/project3/app2.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project3/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'foo' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project3/node_modules/foo.jsx' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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 'foo' was not resolved. ======== +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project3/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project3/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project3/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project3/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project3/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project3/app.js SVC-1-0 "var x = require('bar');" + /users/user/projects/project3/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project3/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "b03a661e323d76898c84af369d25377a0a5531270f5a2f1e243ca14104fd96c1", + "fileStats": { + "js": 3, + "jsSize": 64, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project3/app.js", + "configFile": "/users/user/projects/project3/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project3/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: *new* + {} +/users/user/projects/project3/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: *new* + {} +/users/user/projects/project3/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts *changed* + version: Text-1 + containingProjects: 3 *changed* + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json *new* +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project3/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json +2: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running PendingInstalls callback:: count: 2 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] +2: #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation, Cancelled earlier one +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts :: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: Failed Lookup Locations +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +Timeout callback:: count: 1 +4: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation *new* + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +TI:: Installation #2 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 2, + "projectName": "/users/user/projects/project2/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 2, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Timeout callback:: count: 3 +4: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +5: /users/user/projects/project2/jsconfig.json *new* +6: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 2 +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Before running Timeout callback:: count: 3 +4: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +5: /users/user/projects/project2/jsconfig.json +6: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.jsonFailedLookupInvalidation +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project2/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project2/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project2/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project2/node_modules/bar/index.js', result '/users/user/projects/project2/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project2/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project2/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/node_modules/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project2/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project2/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + Matched by default include pattern '**/*' + app.js + Matched by default include pattern '**/*' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + Imported via 'foo' from file 'app2.js' + app2.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts", + "/users/user/projects/project2/app.js", + "/users/user/projects/project2/app2.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project2", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project2/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project2/bower_components", + "/users/user/projects/project2/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project2/jsconfig.json" + } +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project2/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project2/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Reusing resolution of module 'bar' from '/users/user/projects/project2/app.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Reusing resolution of module 'foo' from '/users/user/projects/project2/app2.js' of old program, it was successfully resolved to '/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/package.json' exists according to earlier cached lookups. +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project2/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project2/app.js SVC-1-0 "var x = require('bar');" + /home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts Text-1 "export const foo = 1;" + /users/user/projects/project2/app2.js Text-1 "var x = require('foo');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +After running Timeout callback:: count: 2 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project2/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project2/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Timeout callback:: count: 2 +6: *ensureProjectForOpenFiles* *deleted* +7: /users/user/projects/project2/jsconfig.json *new* +8: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) + projectStateVersion: 2 + projectProgramVersion: 2 +/users/user/projects/project2/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 3 *changed* + dirty: false *changed* + autoImportProviderHost: undefined *changed* +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project2/jsconfig.json *deleted* +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 2 +7: /users/user/projects/project2/jsconfig.json +8: *ensureProjectForOpenFiles* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +9: /users/user/projects/project1/jsconfig.json +10: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +9: /users/user/projects/project1/jsconfig.json *new* +10: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 2 + dirty: true *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project2/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (5) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project3/jsconfig.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: /users/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project2/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project2/jsconfig.json +Info seq [hh:mm:ss:mss] FileName: /users/user/projects/project3/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project3/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js,/users/user/projects/project2/app.js,/users/user/projects/project3/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js", + "/users/user/projects/project2/app.js", + "/users/user/projects/project3/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/foo/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project2/bower_components: + {"pollingInterval":500} +/users/user/projects/project2/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project3/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project3/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} +/users/user/projects/project2/app2.js: + {} +/users/user/projects/project2/jsconfig.json: + {} +/users/user/projects/project3/app2.js: + {} +/users/user/projects/project3/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} +/users/user/projects/project2: + {} +/users/user/projects/project2/node_modules: + {} +/users/user/projects/project3: + {} +/users/user/projects/project3/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 + projectProgramVersion: 3 *changed* + dirty: false *changed* +/users/user/projects/project2/jsconfig.json (Configured) + projectStateVersion: 3 + projectProgramVersion: 3 +/users/user/projects/project3/jsconfig.json (Configured) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *changed* + version: Text-1 + containingProjects: 2 *changed* + /users/user/projects/project2/jsconfig.json + /users/user/projects/project1/jsconfig.json *new* +/home/src/Library/Caches/typescript/node_modules/@types/foo/index.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 3 + /users/user/projects/project1/jsconfig.json + /users/user/projects/project2/jsconfig.json + /users/user/projects/project3/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* +/users/user/projects/project2/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json *default* +/users/user/projects/project2/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project2/jsconfig.json +/users/user/projects/project2/node_modules/bar/index.js + version: Text-1 + containingProjects: 0 +/users/user/projects/project3/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json *default* +/users/user/projects/project3/app2.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json +/users/user/projects/project3/node_modules/bar/index.js + version: Text-1 + containingProjects: 1 + /users/user/projects/project3/jsconfig.json + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typeAquisition/receives-update-of-typings-after-project-changes.js b/tests/baselines/reference/tsserver/typeAquisition/receives-update-of-typings-after-project-changes.js new file mode 100644 index 0000000000000..a897d978a4a87 --- /dev/null +++ b/tests/baselines/reference/tsserver/typeAquisition/receives-update-of-typings-after-project-changes.js @@ -0,0 +1,1087 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Before request +//// [/users/user/projects/project1/app.js] +var x = require('bar'); + +//// [/users/user/projects/project1/node_modules/bar/index.js] +export const x = 1 + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Info seq [hh:mm:ss:mss] request: + { + "command": "open", + "arguments": { + "file": "/users/user/projects/project1/app.js" + }, + "seq": 1, + "type": "request" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /users/user/projects/project1/jsconfig.json, currentDirectory: /users/user/projects/project1 +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/project1/app.js to open" + } + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1 1 undefined Config: /users/user/projects/project1/jsconfig.json WatchType: Wild card directory +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] ======== Resolving module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] Directory '/home/src/Library/Caches/typescript/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/users/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/package.json' does not exist. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/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/user/projects/project1/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: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/node_modules/@types 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + node_modules/bar/index.js + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: Creating typing installer + +PolledWatches:: +/users/user/projects/node_modules: *new* + {"pollingInterval":500} +/users/user/projects/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/project1/package.json: *new* + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: *new* + {} +/users/user/projects/project1/jsconfig.json: *new* + {} + +FsWatchesRecursive:: +/users/user/projects/project1: *new* + {} +/users/user/projects/project1/node_modules: *new* + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *new* + projectStateVersion: 1 + projectProgramVersion: 0 + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json + +TI:: [hh:mm:ss:mss] Global cache location '/home/src/Library/Caches/typescript', safe file path '/home/src/tslibs/TS/Lib/typingSafeList.json', types map path /home/src/tslibs/TS/Lib/typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Trying to find '/home/src/Library/Caches/typescript/package.json'... +TI:: [hh:mm:ss:mss] Finished processing cache location '/home/src/Library/Caches/typescript' +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Npm config file: '/home/src/Library/Caches/typescript/package.json' is missing, creating new one... +TI:: [hh:mm:ss:mss] Updating types-registry npm package... +TI:: [hh:mm:ss:mss] npm install --ignore-scripts types-registry@latest +TI:: [hh:mm:ss:mss] Updated types-registry npm package +TI:: typing installer creation complete +//// [/home/src/Library/Caches/typescript/package.json] +{ "private": true } + +//// [/home/src/Library/Caches/typescript/node_modules/types-registry/index.json] +{ + "entries": { + "bar": { + "latest": "1.3.0", + "ts2.0": "1.0.0", + "ts2.1": "1.0.0", + "ts2.2": "1.2.0", + "ts2.3": "1.3.0", + "ts2.4": "1.3.0", + "ts2.5": "1.3.0", + "ts2.6": "1.3.0", + "ts2.7": "1.3.0" + } + } +} + + +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Installing typings ["bar"] +TI:: [hh:mm:ss:mss] Npm config file: /home/src/Library/Caches/typescript/package.json +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/users/user/projects/project1/jsconfig.json" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "beginInstallTypes", + "body": { + "eventId": 1 + } + } +TI:: [hh:mm:ss:mss] #1 with cwd: /home/src/Library/Caches/typescript arguments: [ + "@types/bar@tsFakeMajor.Minor" +] +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a24ce251bb636300af6d4777b3f4b21687a6424baa3ae50af422af2a5b2dd7f0", + "fileStats": { + "js": 2, + "jsSize": 41, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/app.js", + "configFile": "/users/user/projects/project1/jsconfig.json", + "diagnostics": [] + } + } +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After request + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 1 + projectProgramVersion: 1 *changed* + autoImportProviderHost: false *changed* + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json +2: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + }, + "typeAcquisition": { + "enable": false + } +} + + +Timeout callback:: count: 2 +1: /users/user/projects/project1/jsconfig.json *new* +2: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: undefined *changed* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Closing file watchers for project '/users/user/projects/project1/jsconfig.json' - done. +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /users/user/projects/project1/node_modules/bar/index.js Text-1 "export const x = 1" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +PolledWatches *deleted*:: +/users/user/projects/project1/bower_components: + {"pollingInterval":500} + +FsWatches:: +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 2 + projectProgramVersion: 2 *changed* + dirty: false *changed* + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running PendingInstalls callback:: count: 1 +1: #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] + +TI:: Installation #1 with arguments:: [ + "@types/bar@tsFakeMajor.Minor" +] complete with success::true +//// [/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts] +export const x = 1; + + +TI:: [hh:mm:ss:mss] Installed typings ["@types/bar@tsFakeMajor.Minor"] +TI:: [hh:mm:ss:mss] Installed typing files ["/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts"] +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts" + ], + "unresolvedImports": [ + "bar" + ], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/users/user/projects/project1/jsconfig.json", + "packagesToInstall": [ + "@types/bar@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "endInstallTypes", + "body": { + "eventId": 1, + "packages": [ + "@types/bar@tsFakeMajor.Minor" + ], + "success": true + } + } +After running PendingInstalls callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Info seq [hh:mm:ss:mss] Scheduled: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /users/user/projects/project1/app.js ProjectRootPath: undefined:: Result: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* +Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/user/projects/project1/jsconfig.json 1:: WatchInfo: /users/user/projects/project1/jsconfig.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Config file +Before running Timeout callback:: count: 2 +3: /users/user/projects/project1/jsconfig.json +4: *ensureProjectForOpenFiles* +//// [/users/user/projects/project1/jsconfig.json] +{ + "compilerOptions": { + "allowJs": true, + "traceResolution": true + } +} + + +Timeout callback:: count: 2 +3: /users/user/projects/project1/jsconfig.json *new* +4: *ensureProjectForOpenFiles* *new* + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 2 + dirty: true *changed* + +Info seq [hh:mm:ss:mss] Running: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "reason": "Change in config file detected" + } + } +Info seq [hh:mm:ss:mss] Config: /users/user/projects/project1/jsconfig.json : { + "rootNames": [ + "/users/user/projects/project1/app.js" + ], + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json" + } +} +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/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 module 'bar' from '/users/user/projects/project1/app.js'. ======== +Info seq [hh:mm:ss:mss] Module resolution kind is not specified, using 'Node10'. +Info seq [hh:mm:ss:mss] Loading module 'bar' from 'node_modules' folder, target file types: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for preferred extensions: TypeScript, Declaration. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.tsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.d.ts' does not exist. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/project1/node_modules/@types' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/projects/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/user/node_modules' does not exist, skipping all lookups in it. +Info seq [hh:mm:ss:mss] Directory '/users/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] Loading module 'bar' from 'node_modules' folder, target file types: JavaScript. +Info seq [hh:mm:ss:mss] Searching all ancestor node_modules directories for fallback extensions: JavaScript. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.js' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar.jsx' does not exist. +Info seq [hh:mm:ss:mss] File '/users/user/projects/project1/node_modules/bar/index.js' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] Resolving real path for '/users/user/projects/project1/node_modules/bar/index.js', result '/users/user/projects/project1/node_modules/bar/index.js'. +Info seq [hh:mm:ss:mss] ======== Module name 'bar' was successfully resolved to '/users/user/projects/project1/node_modules/bar/index.js'. ======== +Info seq [hh:mm:ss:mss] Auto discovery for typings is enabled in project '/users/user/projects/project1/jsconfig.json'. Running extra resolution pass for module 'bar' using cache location '/home/src/Library/Caches/typescript'. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar.d.ts' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts' exists - use it as a name resolution result. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json' does not exist according to earlier cached lookups. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/@types/package.json' does not exist. +Info seq [hh:mm:ss:mss] File '/home/src/Library/Caches/typescript/node_modules/package.json' does not exist. +Info seq [hh:mm:ss:mss] Found 'package.json' at '/home/src/Library/Caches/typescript/package.json'. +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json 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: /users/user/projects/project1/jsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/bar/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/node_modules/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/project1/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /users/user/projects/package.json 2000 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/user/projects/project1/jsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.json' (Configured) +Info seq [hh:mm:ss:mss] Files (3) + /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" + /home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts Text-1 "export const x = 1;" + /users/user/projects/project1/app.js SVC-1-0 "var x = require('bar');" + + + ../../../../home/src/tslibs/TS/Lib/lib.d.ts + Default library for target 'es5' + ../../../../home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts + Imported via 'bar' from file 'app.js' + app.js + Matched by default include pattern '**/*' + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "fileNames": [ + "/home/src/tslibs/TS/Lib/lib.d.ts", + "/users/user/projects/project1/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/users/user/projects/project1", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Explicitly included types: [] +TI:: [hh:mm:ss:mss] Searching for typing names in /users/user/projects/project1/node_modules; all files: [] +TI:: [hh:mm:ss:mss] Found package names: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +TI:: [hh:mm:ss:mss] Sending response: + { + "kind": "action::watchTypingLocations", + "projectName": "/users/user/projects/project1/jsconfig.json", + "files": [ + "/users/user/projects/project1/bower_components", + "/users/user/projects/project1/node_modules" + ] + } +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/bower_components 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/user/projects/project1/node_modules 1 undefined Project: /users/user/projects/project1/jsconfig.json WatchType: Directory location for typing installer +TI:: [hh:mm:ss:mss] Sending response: + { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "setTypings", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "traceResolution": true, + "configFilePath": "/users/user/projects/project1/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "kind": "action::set" + } + } +TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/project1/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/project1/jsconfig.json", + "configFile": "/users/user/projects/project1/jsconfig.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 '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: +Info seq [hh:mm:ss:mss] Project '/users/user/projects/project1/jsconfig.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/user/projects/project1/app.js ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /users/user/projects/project1/jsconfig.json +Info seq [hh:mm:ss:mss] got projects updated in background /users/user/projects/project1/app.js +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/user/projects/project1/app.js" + ] + } + } +After running Timeout callback:: count: 0 + +PolledWatches:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/@types/package.json: *new* + {"pollingInterval":2000} +/home/src/Library/Caches/typescript/node_modules/package.json: *new* + {"pollingInterval":2000} +/users/user/projects/node_modules: + {"pollingInterval":500} +/users/user/projects/node_modules/@types: + {"pollingInterval":500} +/users/user/projects/project1/bower_components: *new* + {"pollingInterval":500} +/users/user/projects/project1/node_modules/@types: + {"pollingInterval":500} + +PolledWatches *deleted*:: +/users/user/projects/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/bar/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/node_modules/package.json: + {"pollingInterval":2000} +/users/user/projects/project1/package.json: + {"pollingInterval":2000} + +FsWatches:: +/home/src/Library/Caches/typescript/package.json: *new* + {} +/home/src/tslibs/TS/Lib/lib.d.ts: + {} +/users/user/projects/project1/jsconfig.json: + {} + +FsWatchesRecursive:: +/home/src/Library/Caches/typescript/node_modules: *new* + {} +/users/user/projects/project1: + {} +/users/user/projects/project1/node_modules: + {} + +Projects:: +/users/user/projects/project1/jsconfig.json (Configured) *changed* + projectStateVersion: 3 + projectProgramVersion: 3 *changed* + dirty: false *changed* + +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/@types/bar/index.d.ts *new* + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json +/users/user/projects/project1/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /users/user/projects/project1/jsconfig.json *default* +/users/user/projects/project1/node_modules/bar/index.js *changed* + version: Text-1 + containingProjects: 0 *changed* + /users/user/projects/project1/jsconfig.json *deleted* + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js index dd192abf97c9d..1f2a29f8e18ad 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects-discover-from-bower_components.js @@ -174,7 +174,6 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } @@ -182,7 +181,6 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslib TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/project/bower_components; all files: ["/user/username/projects/project/bower_components/jquery/bower.json"] TI:: [hh:mm:ss:mss] Found package names: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -380,7 +378,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/jsconfig.json @@ -409,7 +406,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -498,14 +494,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/project/bower_components; all files: ["/user/username/projects/project/bower_components/jquery/bower.json"] TI:: [hh:mm:ss:mss] Found package names: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -542,7 +536,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -569,7 +562,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js index 0d47258c726bc..122ef0645acb5 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js @@ -196,14 +196,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -403,7 +401,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/tsconfig.json @@ -428,7 +425,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -512,13 +508,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -552,7 +546,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -575,7 +568,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js index a708f3e5b4203..d4954eac4cc6b 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js @@ -173,14 +173,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/bower.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -383,7 +381,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/jsconfig.json @@ -412,7 +409,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -501,13 +497,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/bower.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -545,7 +539,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -572,7 +565,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js index 3b291952b6b9a..1f49e4c78cf2a 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types-has-import.js @@ -556,12 +556,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -589,7 +587,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/jsconfig.json @@ -617,7 +614,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -629,102 +625,8 @@ Info seq [hh:mm:ss:mss] Files (3) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" /home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts Text-1 "" /user/username/projects/project/app.js SVC-1-0 "import \"jquery\";" - - - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' - ../../../../home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts - Imported via "jquery" from file 'app.js' - app.js - Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request - { - "projectName": "/user/username/projects/project/jsconfig.json", - "fileNames": [ - "/home/src/tslibs/TS/Lib/lib.d.ts", - "/user/username/projects/project/app.js" - ], - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "types": [], - "configFilePath": "/user/username/projects/project/jsconfig.json", - "allowNonTsExtensions": true - }, - "typeAcquisition": { - "enable": true, - "include": [], - "exclude": [] - }, - "unresolvedImports": [], - "projectRootPath": "/user/username/projects/project", - "kind": "discover" - } -TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Finished typings discovery: - { - "cachedTypingPaths": [], - "newTypingNames": [], - "filesToWatch": [] - } -TI:: [hh:mm:ss:mss] Closing file watchers for project '/user/username/projects/project/jsconfig.json' -TI:: [hh:mm:ss:mss] No watchers are registered for project '/user/username/projects/project/jsconfig.json' -TI:: [hh:mm:ss:mss] Sending response: - { - "projectName": "/user/username/projects/project/jsconfig.json", - "typeAcquisition": { - "enable": true, - "include": [], - "exclude": [] - }, - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "types": [], - "configFilePath": "/user/username/projects/project/jsconfig.json", - "allowNonTsExtensions": true - }, - "typings": [], - "unresolvedImports": [], - "kind": "action::set" - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "setTypings", - "body": { - "projectName": "/user/username/projects/project/jsconfig.json", - "typeAcquisition": { - "enable": true, - "include": [], - "exclude": [] - }, - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true, - "types": [], - "configFilePath": "/user/username/projects/project/jsconfig.json", - "allowNonTsExtensions": true - }, - "typings": [], - "unresolvedImports": [], - "kind": "action::set" - } - } -TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery After running Timeout callback:: count: 2 PolledWatches:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js index b500cda94eaa5..06b657abf39de 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-empty-types.js @@ -212,13 +212,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -246,7 +244,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -272,7 +269,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js index 38fa11bd62bed..3cbc577609b81 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules-explicit-types.js @@ -231,13 +231,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -267,7 +265,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -295,7 +292,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js index b38cb198eea30..ae5bdf210dfcf 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js @@ -216,7 +216,6 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } @@ -225,7 +224,6 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/project/node_modules; all files: ["/user/username/projects/project/node_modules/jquery/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -469,7 +467,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/jsconfig.json @@ -498,7 +495,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -594,7 +590,6 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } @@ -602,7 +597,6 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/project/node_modules; all files: ["/user/username/projects/project/node_modules/jquery/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -640,7 +634,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -667,7 +660,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js b/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js index d8e9eb35ba958..96211b38ea7b5 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js @@ -184,14 +184,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -335,7 +333,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -363,7 +360,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -451,13 +447,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -496,7 +490,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -522,7 +515,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js index a92792f07d434..a205e12b3c22f 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js @@ -142,13 +142,11 @@ TI:: [hh:mm:ss:mss] Got install request ], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -303,7 +301,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/app/test.csproj @@ -328,7 +325,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } 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 cac56424035c7..0ee66c1ccc1cd 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js @@ -189,13 +189,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project/a/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -239,7 +237,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -259,7 +256,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js index 7fe5747b49bc4..8a0ab3d056e8d 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-no-type-acquisition.js @@ -203,7 +203,6 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -211,7 +210,6 @@ TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/home/src/tslibs/TS/Lib TI:: [hh:mm:ss:mss] Explicitly included types: ["lodash"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash"] TI:: [hh:mm:ss:mss] Inferred 'react' typings due to presence of '.jsx' extension -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -394,7 +392,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/react/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/app/test.csproj @@ -422,7 +419,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/react/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -519,14 +515,12 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["lodash"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash"] TI:: [hh:mm:ss:mss] Inferred 'react' typings due to presence of '.jsx' extension -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -566,7 +560,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/react/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -593,7 +586,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/react/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js index ce079830eb220..2e1e415200c9e 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition-with-disableFilenameBasedTypeAcquisition.js @@ -144,13 +144,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -197,7 +195,6 @@ TI:: [hh:mm:ss:mss] Sending response: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -220,7 +217,6 @@ Info seq [hh:mm:ss:mss] event: "noEmitForJsFiles": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js index 4d2e1258d992b..9bc4189a5848a 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js @@ -238,7 +238,6 @@ TI:: [hh:mm:ss:mss] Got install request "lodash" ] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -246,7 +245,6 @@ TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/home/src/tslibs/TS/Lib TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","moment","lodash","commander"] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["express"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Typing for lodash is in exclude list, will be ignored. TI:: [hh:mm:ss:mss] Finished typings discovery: { @@ -456,7 +454,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/express/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/app/test.csproj @@ -491,7 +488,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/express/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -604,14 +600,12 @@ TI:: [hh:mm:ss:mss] Got install request "lodash" ] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","moment","lodash","commander"] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["express"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Typing for lodash is in exclude list, will be ignored. TI:: [hh:mm:ss:mss] Finished typings discovery: { @@ -662,7 +656,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/express/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -696,7 +689,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/express/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js index 1bb3c38cecdf4..531f3255e0b0a 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js @@ -157,12 +157,10 @@ TI:: [hh:mm:ss:mss] Got install request "enable": true, "disableFilenameBasedTypeAcquisition": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -201,7 +199,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -224,7 +221,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js index f7cbf4a15265b..231a1bc11e99e 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js @@ -148,14 +148,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -302,7 +300,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -330,7 +327,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -418,13 +414,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -463,7 +457,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -489,7 +482,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js b/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js index 308e629ca3cd8..79c715e4768f0 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/install-typings-for-unresolved-imports.js @@ -452,12 +452,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -489,7 +487,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -515,7 +512,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -573,14 +569,16 @@ Projects:: ScriptInfos:: /home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts *new* version: Text-1 - containingProjects: 0 + containingProjects: 1 + /dev/null/inferredProject1* /home/src/Library/Caches/typescript/node_modules/@types/ember__component/index.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* /home/src/Library/Caches/typescript/node_modules/@types/node/index.d.ts *new* version: Text-1 - containingProjects: 0 + containingProjects: 1 + /dev/null/inferredProject1* /home/src/projects/project/app.js (Open) version: SVC-1-0 containingProjects: 1 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js index b309d1a093781..e78cb6fac6cbc 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions-with-trimmed-names.js @@ -473,14 +473,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /home/src/projects/project/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -512,7 +510,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -538,7 +535,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -612,7 +608,8 @@ ScriptInfos:: /dev/null/inferredProject1* /home/src/Library/Caches/typescript/node_modules/foo/index.d.ts *new* version: Text-1 - containingProjects: 0 + containingProjects: 1 + /dev/null/inferredProject1* /home/src/projects/project/app.js (Open) version: SVC-1-0 containingProjects: 1 @@ -672,14 +669,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /home/src/projects/project/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -711,7 +706,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -735,7 +729,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -754,6 +747,36 @@ Projects:: projectProgramVersion: 3 *changed* dirty: false *changed* +ScriptInfos:: +/home/src/Library/Caches/typescript/node_modules/foo/a/a.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/Library/Caches/typescript/node_modules/foo/a/b.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/Library/Caches/typescript/node_modules/foo/a/c.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/Library/Caches/typescript/node_modules/foo/index.d.ts *changed* + version: Text-1 + containingProjects: 0 *changed* + /dev/null/inferredProject1* *deleted* +/home/src/projects/project/app.js (Open) + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* +/home/src/projects/project/node_modules/fooo/index.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* + Info seq [hh:mm:ss:mss] request: { "command": "applyChangedToOpenFiles", diff --git a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js index 0292d083e02aa..3052f6619106a 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js @@ -451,14 +451,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /home/src/projects/project/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -490,7 +488,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -516,7 +513,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -576,7 +572,8 @@ Projects:: ScriptInfos:: /home/src/Library/Caches/typescript/node_modules/foo/index.d.ts *new* version: Text-1 - containingProjects: 0 + containingProjects: 1 + /dev/null/inferredProject1* /home/src/projects/project/app.js (Open) version: SVC-1-0 containingProjects: 1 @@ -598,106 +595,8 @@ Info seq [hh:mm:ss:mss] Files (4) /home/src/Library/Caches/typescript/node_modules/foo/index.d.ts Text-1 "export function a(): void;" /home/src/projects/project/node_modules/fooo/index.d.ts Text-1 "export var x: string;" /home/src/projects/project/app.js SVC-1-0 "import * as a from \"foo\";import * as x from \"fooo\";" - - - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' - ../../Library/Caches/typescript/node_modules/foo/index.d.ts - Imported via "foo" from file 'app.js' - node_modules/fooo/index.d.ts - Imported via "fooo" from file 'app.js' - app.js - Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request - { - "projectName": "/dev/null/inferredProject1*", - "fileNames": [ - "/home/src/tslibs/TS/Lib/lib.d.ts", - "/home/src/projects/project/app.js" - ], - "compilerOptions": { - "target": 1, - "jsx": 1, - "allowNonTsExtensions": true, - "allowJs": true, - "noEmitForJsFiles": true, - "maxNodeModuleJsDepth": 2 - }, - "typeAcquisition": { - "enable": true, - "include": [], - "exclude": [] - }, - "unresolvedImports": [], - "projectRootPath": "/home/src/projects/project", - "kind": "discover" - } -TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Searching for typing names in /home/src/projects/project/node_modules; all files: [] -TI:: [hh:mm:ss:mss] Found package names: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Finished typings discovery: - { - "cachedTypingPaths": [], - "newTypingNames": [], - "filesToWatch": [ - "/home/src/projects/project/bower_components", - "/home/src/projects/project/node_modules" - ] - } -TI:: [hh:mm:ss:mss] Sending response: - { - "kind": "action::watchTypingLocations", - "projectName": "/dev/null/inferredProject1*" - } -TI:: [hh:mm:ss:mss] Sending response: - { - "projectName": "/dev/null/inferredProject1*", - "typeAcquisition": { - "enable": true, - "include": [], - "exclude": [] - }, - "compilerOptions": { - "target": 1, - "jsx": 1, - "allowNonTsExtensions": true, - "allowJs": true, - "noEmitForJsFiles": true, - "maxNodeModuleJsDepth": 2 - }, - "typings": [], - "unresolvedImports": [], - "kind": "action::set" - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "setTypings", - "body": { - "projectName": "/dev/null/inferredProject1*", - "typeAcquisition": { - "enable": true, - "include": [], - "exclude": [] - }, - "compilerOptions": { - "target": 1, - "jsx": 1, - "allowNonTsExtensions": true, - "allowJs": true, - "noEmitForJsFiles": true, - "maxNodeModuleJsDepth": 2 - }, - "typings": [], - "unresolvedImports": [], - "kind": "action::set" - } - } -TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery Info seq [hh:mm:ss:mss] Resolution from : /home/src/projects/project/app.js for "fooo" goes to: { "resolvedFileName": "/home/src/projects/project/node_modules/fooo/index.d.ts", "extension": ".d.ts", @@ -712,24 +611,6 @@ Projects:: projectProgramVersion: 3 *changed* dirty: false *changed* -ScriptInfos:: -/home/src/Library/Caches/typescript/node_modules/foo/index.d.ts *changed* - version: Text-1 - containingProjects: 1 *changed* - /dev/null/inferredProject1* *new* -/home/src/projects/project/app.js (Open) - version: SVC-1-0 - containingProjects: 1 - /dev/null/inferredProject1* *default* -/home/src/projects/project/node_modules/fooo/index.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* - Info seq [hh:mm:ss:mss] request: { "command": "applyChangedToOpenFiles", diff --git a/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js b/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js index d29dd1f743bdf..280d2c2320a09 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/local-module-should-not-be-picked-up.js @@ -199,13 +199,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -246,7 +244,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -271,7 +268,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js index b437ee97d4694..b943664ff3676 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js @@ -139,14 +139,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["co } }"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -194,7 +192,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -218,7 +215,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -290,13 +286,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -385,7 +379,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -413,7 +406,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -500,13 +492,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -543,7 +533,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -569,7 +558,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js index 6e138bac171b1..30a7365fd2360 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js @@ -205,14 +205,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -414,7 +412,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/tsconfig.json @@ -439,7 +436,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -524,13 +520,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -564,7 +558,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -587,7 +580,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -824,13 +816,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project2", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project2/package.json' dependencies: ["commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], diff --git a/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js b/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js index b5610ff8a744c..8815374693aea 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js @@ -184,14 +184,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/Vscode/Projects/bin", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["jquery"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -246,7 +244,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -274,7 +271,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js index 3088d58c0645f..5da46c6b36296 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js @@ -143,14 +143,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], diff --git a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js index a5041614b5897..dd9243db7f601 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js @@ -163,14 +163,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -304,7 +302,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -332,7 +329,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -420,13 +416,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -463,7 +457,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -489,7 +482,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js b/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js index 807213af79cd5..012d11d9d9141 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/projectRootPath-is-provided-for-inferred-project.js @@ -199,13 +199,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/san2", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -248,7 +246,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -275,7 +272,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js b/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js index 91089cdc4b6ee..d4fc55adf7546 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/redo-resolutions-pointing-to-js-on-typing-install.js @@ -462,12 +462,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/a/b", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -499,7 +497,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -525,7 +522,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -595,7 +591,8 @@ Projects:: ScriptInfos:: /home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts *new* version: Text-1 - containingProjects: 0 + containingProjects: 1 + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.d.ts version: Text-1 containingProjects: 1 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js b/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js index 31a1adecb3b3d..b2233a830f6f1 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js @@ -211,7 +211,6 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } @@ -220,7 +219,6 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["@zkat/cacache"] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/project/node_modules; all files: ["/user/username/projects/project/node_modules/@zkat/cacache/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["@zkat/cacache"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -464,7 +462,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/zkat__cacache/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/jsconfig.json @@ -493,7 +490,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/zkat__cacache/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -589,7 +585,6 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } @@ -597,7 +592,6 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["@zkat/cacache"] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/project/node_modules; all files: ["/user/username/projects/project/node_modules/@zkat/cacache/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["@zkat/cacache"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -636,7 +630,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/jsconfig.json @@ -663,7 +656,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -710,7 +702,6 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project", "kind": "discover" } @@ -718,7 +709,6 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["@zkat/cacache"] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/project/node_modules; all files: ["/user/username/projects/project/node_modules/@zkat/cacache/package.json"] TI:: [hh:mm:ss:mss] Found package names: ["@zkat/cacache"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -757,7 +747,6 @@ TI:: [hh:mm:ss:mss] Sending response: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -782,7 +771,6 @@ Info seq [hh:mm:ss:mss] event: "allowNonTsExtensions": true }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js b/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js index e9e7832d72f73..5836e5e0aef41 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/should-handle-node-core-modules.js @@ -417,12 +417,10 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -454,7 +452,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -480,7 +477,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -532,7 +528,8 @@ Projects:: ScriptInfos:: /home/src/Library/Caches/typescript/node_modules/node/index.d.ts *new* version: Text-1 - containingProjects: 0 + containingProjects: 1 + /dev/null/inferredProject1* /home/src/projects/project/app.js (Open) version: SVC-1-0 containingProjects: 1 @@ -576,7 +573,8 @@ After request ScriptInfos:: /home/src/Library/Caches/typescript/node_modules/node/index.d.ts version: Text-1 - containingProjects: 0 + containingProjects: 1 + /dev/null/inferredProject1* /home/src/projects/project/app.js (Open) *changed* version: SVC-1-1 *changed* containingProjects: 1 @@ -598,14 +596,6 @@ Info seq [hh:mm:ss:mss] Files (3) /home/src/tslibs/TS/Lib/lib.d.ts Text-1 "/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };" /home/src/Library/Caches/typescript/node_modules/node/index.d.ts Text-1 "\ndeclare module \"net\" {\n export type n = number;\n}\ndeclare module \"stream\" {\n export type s = string;\n}" /home/src/projects/project/app.js SVC-1-1 "// @ts-check\n\nconst net = require(\"net\");\nconst stream = require(\"s tream\");" - - - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' - ../../Library/Caches/typescript/node_modules/node/index.d.ts - Imported via "net" from file 'app.js' - app.js - Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Got install request @@ -741,20 +731,6 @@ Projects:: projectProgramVersion: 3 *changed* dirty: false *changed* -ScriptInfos:: -/home/src/Library/Caches/typescript/node_modules/node/index.d.ts *changed* - version: Text-1 - containingProjects: 1 *changed* - /dev/null/inferredProject1* *new* -/home/src/projects/project/app.js (Open) - version: SVC-1-1 - containingProjects: 1 - /dev/null/inferredProject1* *default* -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* - Before request Info seq [hh:mm:ss:mss] request: @@ -815,107 +791,6 @@ Info seq [hh:mm:ss:mss] Files (3) /home/src/projects/project/app.js SVC-1-2 "// @ts-check\n\nconst bar = require(\"bar\");const net = require(\"net\");\nconst stream = require(\"s tream\");" Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request - { - "projectName": "/dev/null/inferredProject1*", - "fileNames": [ - "/home/src/tslibs/TS/Lib/lib.d.ts", - "/home/src/projects/project/app.js" - ], - "compilerOptions": { - "target": 1, - "jsx": 1, - "allowNonTsExtensions": true, - "allowJs": true, - "noEmitForJsFiles": true, - "maxNodeModuleJsDepth": 2 - }, - "typeAcquisition": { - "enable": true, - "include": [], - "exclude": [] - }, - "unresolvedImports": [ - "bar", - "s tream" - ], - "projectRootPath": "/home/src/projects/project", - "kind": "discover" - } -TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["bar","s tream"] -TI:: [hh:mm:ss:mss] Finished typings discovery: - { - "cachedTypingPaths": [], - "newTypingNames": [ - "bar", - "s tream" - ], - "filesToWatch": [ - "/home/src/projects/project/bower_components", - "/home/src/projects/project/node_modules" - ] - } -TI:: [hh:mm:ss:mss] Sending response: - { - "kind": "action::watchTypingLocations", - "projectName": "/dev/null/inferredProject1*" - } -TI:: [hh:mm:ss:mss] Installing typings ["bar","s tream"] -TI:: [hh:mm:ss:mss] 'bar':: Entry for package 'bar' does not exist in local types registry - skipping... -TI:: [hh:mm:ss:mss] 's tream':: 's tream' is in missingTypingsSet - skipping... -TI:: [hh:mm:ss:mss] All typings are known to be missing or invalid - no need to install more typings -TI:: [hh:mm:ss:mss] Sending response: - { - "projectName": "/dev/null/inferredProject1*", - "typeAcquisition": { - "enable": true, - "include": [], - "exclude": [] - }, - "compilerOptions": { - "target": 1, - "jsx": 1, - "allowNonTsExtensions": true, - "allowJs": true, - "noEmitForJsFiles": true, - "maxNodeModuleJsDepth": 2 - }, - "typings": [], - "unresolvedImports": [ - "bar", - "s tream" - ], - "kind": "action::set" - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "setTypings", - "body": { - "projectName": "/dev/null/inferredProject1*", - "typeAcquisition": { - "enable": true, - "include": [], - "exclude": [] - }, - "compilerOptions": { - "target": 1, - "jsx": 1, - "allowNonTsExtensions": true, - "allowJs": true, - "noEmitForJsFiles": true, - "maxNodeModuleJsDepth": 2 - }, - "typings": [], - "unresolvedImports": [ - "bar", - "s tream" - ], - "kind": "action::set" - } - } After program update Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js b/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js index 60b28324a7c06..9bfb1a411a033 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/should-not-initialize-invaalid-package-names.js @@ -131,14 +131,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["; say ‘Hello from TypeScript!’ #"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -186,7 +184,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -210,7 +207,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js index bfd2eec07c8b3..d57053ae5c38c 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js @@ -143,14 +143,12 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -284,7 +282,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* @@ -312,7 +309,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -400,13 +396,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "/home/src/projects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/home/src/projects/project/package.json' dependencies: ["commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -443,7 +437,6 @@ TI:: [hh:mm:ss:mss] Sending response: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -469,7 +462,6 @@ Info seq [hh:mm:ss:mss] event: "typings": [ "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js index e1df89a9bf4f9..4ae03d5fcddc7 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-run-install-requests.js @@ -246,14 +246,12 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","cordova","lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -467,12 +465,10 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["grunt","gulp"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -649,7 +645,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/app/test1.csproj @@ -682,7 +677,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -780,7 +774,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/app/test2.csproj @@ -809,7 +802,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -922,13 +914,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","cordova","lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -975,7 +965,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -1007,7 +996,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -1061,12 +1049,10 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["grunt","gulp"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -1105,7 +1091,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -1133,7 +1118,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js index 6a4dac81fee88..3453906f00fe2 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-delayed-typings-to-install.js @@ -243,7 +243,6 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -251,7 +250,6 @@ TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/home/src/tslibs/TS/Lib TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","moment","lodash","commander"] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["express"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -467,7 +465,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/express/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/app/test.csproj @@ -501,7 +498,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/express/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -619,14 +615,12 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","moment","lodash","commander"] TI:: [hh:mm:ss:mss] Typing names in '/user/username/projects/project/package.json' dependencies: ["express"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [ @@ -676,7 +670,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/express/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -709,7 +702,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/express/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-refreshed.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-refreshed.js index d55b4316d69ef..fb19685924f6e 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-refreshed.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-refreshed.js @@ -125,7 +125,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling throttled operation: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -283,7 +282,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling throttled operation: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/app", "kind": "discover" } @@ -439,7 +437,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling throttled operation: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/app", "kind": "discover" } @@ -497,7 +494,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Sending request: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -612,14 +608,12 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","cordova","commander"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -775,7 +769,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/cordova/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Received response: @@ -801,7 +794,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Received response: "/home/src/Library/Caches/typescript/node_modules/@types/cordova/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Skipping defunct request for: /user/username/projects/project/app/test2.csproj @@ -834,7 +826,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/cordova/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -922,7 +913,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Sending request: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/app", "kind": "discover" } @@ -949,13 +939,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["grunt","gulp","lodash"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -1115,7 +1103,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Received response: @@ -1141,7 +1128,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Received response: "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/app/test2.csproj @@ -1172,7 +1158,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-while-queuing-again.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-while-queuing-again.js index 7895e938e726c..cca21c98853b8 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-while-queuing-again.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-while-queuing-again.js @@ -123,7 +123,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling throttled operation: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -279,7 +278,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling throttled operation: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -433,7 +431,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling throttled operation: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -551,7 +548,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Sending request: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -665,14 +661,12 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","commander"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -814,7 +808,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Received response: @@ -838,7 +831,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Received response: "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling request for: /user/username/projects/app/test2.csproj @@ -868,7 +860,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/jquery/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -954,7 +945,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Sending request: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -979,12 +969,10 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["grunt","gulp"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -1096,7 +1084,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Received response: @@ -1120,7 +1107,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Received response: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling request for: /user/username/projects/app/test3.csproj @@ -1150,7 +1136,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -1240,7 +1225,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Sending request: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -1266,13 +1250,11 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["cordova","lodash"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -1394,7 +1376,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/cordova/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Received response: @@ -1418,7 +1399,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Received response: "/home/src/Library/Caches/typescript/node_modules/@types/cordova/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/app/test3.csproj @@ -1447,7 +1427,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/cordova/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer.js index cb600b44c9c09..b94f85e440fca 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer.js @@ -131,7 +131,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling throttled operation: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -287,7 +286,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling throttled operation: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -399,7 +397,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Sending request: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -516,14 +513,12 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","cordova","lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -685,7 +680,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Received response: @@ -713,7 +707,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Received response: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling request for: /user/username/projects/app/test2.csproj @@ -747,7 +740,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -836,7 +828,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Sending request: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -861,12 +852,10 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["grunt","gulp"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -978,7 +967,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Received response: @@ -1002,7 +990,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Received response: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/app/test2.csproj @@ -1031,7 +1018,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-without-reaching-limit.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-without-reaching-limit.js index d2e7ffd044f1e..602eb5417b896 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-without-reaching-limit.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-without-reaching-limit.js @@ -131,7 +131,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling throttled operation: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -249,7 +248,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Sending request: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } @@ -366,14 +364,12 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","cordova","lodash","commander"] TI:: [hh:mm:ss:mss] Inferred typings from file names: ["lodash","commander"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -535,7 +531,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Received response: @@ -563,7 +558,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Received response: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/app/test1.csproj @@ -596,7 +590,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/lodash/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/commander/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } @@ -723,7 +716,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Scheduling throttled operation: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/app", "kind": "discover" } @@ -862,7 +854,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Sending request: "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/app", "kind": "discover" } @@ -887,12 +878,10 @@ TI:: [hh:mm:ss:mss] Got install request "exclude": [], "enable": true }, - "unresolvedImports": [], "projectRootPath": "/user/username/projects/project/app", "kind": "discover" } TI:: [hh:mm:ss:mss] Explicitly included types: ["grunt","gulp"] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -1032,7 +1021,6 @@ TI:: [hh:mm:ss:mss] Sending response: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] TIAdapter:: Received response: @@ -1056,7 +1044,6 @@ Info seq [hh:mm:ss:mss] TIAdapter:: Received response: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/app/test2.csproj @@ -1085,7 +1072,6 @@ Info seq [hh:mm:ss:mss] event: "/home/src/Library/Caches/typescript/node_modules/@types/grunt/index.d.ts", "/home/src/Library/Caches/typescript/node_modules/@types/gulp/index.d.ts" ], - "unresolvedImports": [], "kind": "action::set" } } diff --git a/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js b/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js index 682c421f060ca..067c91998b76b 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/watching-files-with-network-style-paths.js @@ -125,13 +125,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "c:/myprojects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -171,7 +169,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -195,7 +192,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -355,13 +351,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "//vda1cs4850/myprojects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -399,7 +393,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -423,7 +416,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -581,13 +573,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "//vda1cs4850/c$/myprojects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -627,7 +617,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -651,7 +640,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -827,13 +815,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "c:/users/username/myprojects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -873,7 +859,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -897,7 +882,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } } @@ -1073,13 +1057,11 @@ TI:: [hh:mm:ss:mss] Got install request "include": [], "exclude": [] }, - "unresolvedImports": [], "projectRootPath": "//vda1cs4850/c$/users/username/myprojects/project", "kind": "discover" } TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/home/src/tslibs/TS/Lib/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] TI:: [hh:mm:ss:mss] Finished typings discovery: { "cachedTypingPaths": [], @@ -1119,7 +1101,6 @@ TI:: [hh:mm:ss:mss] Sending response: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } Info seq [hh:mm:ss:mss] event: @@ -1143,7 +1124,6 @@ Info seq [hh:mm:ss:mss] event: "maxNodeModuleJsDepth": 2 }, "typings": [], - "unresolvedImports": [], "kind": "action::set" } }